{ "info": { "author": "MongoDB, Inc.", "author_email": "mongodb-user@googlegroups.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Operating System :: MacOS :: MacOS X", "Operating System :: Microsoft :: Windows", "Operating System :: POSIX", "Operating System :: Unix", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Database", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "Getting Started\n---------------\n\nInstallation\n~~~~~~~~~~~~\n\nThis package is a document manager for `mongo-connector `_.\n\nThe easiest way to get started is to install solr-doc-manager at the same time\nas mongo-connector with `pip `__::\n\n pip install mongo-connector[solr]\n\nIf you already have mongo-connector installed, install solr-doc-manager via::\n\n pip install solr-doc-manager\n\nYou can also install the development version of solr-doc-manager\nmanually::\n\n git clone https://github.com/mongodb-labs/solr-doc-manager\n cd solr-doc-manager\n python setup.py install\n\nYou may have to run ``python setup.py install`` with ``sudo``, depending\non where you're installing mongo-connector and what privileges you have.\n\nFor information on running mongo-connector with Solr, please see https://github.com/mongodb-labs/mongo-connector/wiki/Usage%20with%20Solr\n\n.. note:: Please note that before mongo-connector version 2.5.0, the Solr doc manager was packaged with mongo-connector.\n\nRunning the tests\n-----------------\nRequirements\n~~~~~~~~~~~~\n\n1. Copy of the solr-doc-manager Github repository\n\n The tests are not included in the package from PyPI and can only be acquired by cloning this repository on Github::\n\n git clone https://github.com/mongodb-labs/solr-doc-manager\n\n2. Solr\n\n The integration tests require Solr to be running. To set up and run Solr::\n\n curl -O http://archive.apache.org/dist/lucene/solr/4.9.1/solr-4.9.1.tgz\n tar -zxf solr-4.9.1.tgz\n cp mongo_connector/doc_managers/schema.xml solr-4.9.1/example/solr/collection1/conf/\n cd solr-4.9.1/example/ && java -Djetty.port=8983 -Dsolr.solr.home=solr -jar start.jar > /dev/null 2>&1 &\n\n Solr will be running on http://localhost:8983/solr\n\n3. Mongo Orchestration\n\n Mongo Connector runs MongoDB on its own using another tool called `Mongo Orchestration `__. This package should install automatically if you run ``python setup.py test``, but the Mongo Orchestration server still needs to be started manually before running the tests::\n\n mongo-orchestration --bind 127.0.0.1 --config orchestration.config start\n\n will start the server. To stop it::\n\n mongo-orchestration --bind 127.0.0.1 --config orchestration.config stop\n\n The location of the MongoDB server should be set in orchestration.config. For more information on how to use Mongo Orchestration, or how to use it with different arguments, please look at the Mongo-Orchestration README.\n\n4. Environment variables\n\n There are a few influential environment variables that affect the tests. These are:\n\n - ``DB_USER`` is the username to use if running the tests with authentication enabled.\n - ``DB_PASSWORD`` is the password for the above.\n - ``MONGO_PORT`` is the starting port for running MongoDB. Future nodes will be started on sequentially increasing ports.\n - ``SOLR_URL`` is the address on which Solr is running.\n - ``MO_ADDRESS`` is the address to use for Mongo Orchestration (i.e. hostname:port)\n\nAll the tests live in the `tests` directory.\n\nRunning tests on the command-line\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nWhile the tests take care of setting up and tearing down MongoDB clusters on their own, make sure to start Solr before doing a full test run!\n\nYou can run all the tests with one command (this works in all supported Python versions)::\n\n python setup.py test\n\nIn addition, you can be more selective with which tests you run (in Python > 2.6 only)! For example, if you only wanted to run the Solr doc manager tests::\n\n python -m unittest tests.test_solr_doc_manager\n\nError messages\n~~~~~~~~~~~~~~\n\nSome of the tests are meant to generate lots of ``ERROR``-level log messages, especially the rollback tests. mongo-connector logs exceptions it encounters while iterating the cursor in the oplog, so we see these in the console output while MongoDB clusters are being torn apart in the tests. As long as all the tests pass with an `OK` message, all is well.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/mongodb-labs/solr-doc-manager", "keywords": "mongo-connector,mongodb,solr,pysolr", "license": "Apache License, Version 2.0", "maintainer": null, "maintainer_email": null, "name": "solr-doc-manager", "package_url": "https://pypi.org/project/solr-doc-manager/", "platform": "any", "project_url": "https://pypi.org/project/solr-doc-manager/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/mongodb-labs/solr-doc-manager" }, "release_url": "https://pypi.org/project/solr-doc-manager/0.1.0/", "requires_dist": null, "requires_python": null, "summary": "Solr plugin for mongo-connector", "version": "0.1.0" }, "last_serial": 4382746, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "2a97fff5f5fa4d94e248a627da040206", "sha256": "a4d53f1669cc5ffb9854d65ccaf1b516273d24544e064321d2fa3f1d74557e80" }, "downloads": -1, "filename": "solr_doc_manager-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "2a97fff5f5fa4d94e248a627da040206", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 10910, "upload_time": "2016-12-23T00:51:18", "url": "https://files.pythonhosted.org/packages/51/7b/42fdc8fd4308efa0a09f07df31f7e6c9285a1aa9b86e773a0c536864ec47/solr_doc_manager-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "efd860a695cbd191606fa609d49e6d40", "sha256": "0509621741d9a4775ae027bf517a921a089f28ed41613b38d222e068a08734d8" }, "downloads": -1, "filename": "solr-doc-manager-0.1.0.tar.gz", "has_sig": false, "md5_digest": "efd860a695cbd191606fa609d49e6d40", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14211, "upload_time": "2016-12-23T00:51:17", "url": "https://files.pythonhosted.org/packages/b7/72/8441b708598776e147092c0a577adcba7ef0cf8e367225e43251624f99dd/solr-doc-manager-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "2a97fff5f5fa4d94e248a627da040206", "sha256": "a4d53f1669cc5ffb9854d65ccaf1b516273d24544e064321d2fa3f1d74557e80" }, "downloads": -1, "filename": "solr_doc_manager-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "2a97fff5f5fa4d94e248a627da040206", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 10910, "upload_time": "2016-12-23T00:51:18", "url": "https://files.pythonhosted.org/packages/51/7b/42fdc8fd4308efa0a09f07df31f7e6c9285a1aa9b86e773a0c536864ec47/solr_doc_manager-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "efd860a695cbd191606fa609d49e6d40", "sha256": "0509621741d9a4775ae027bf517a921a089f28ed41613b38d222e068a08734d8" }, "downloads": -1, "filename": "solr-doc-manager-0.1.0.tar.gz", "has_sig": false, "md5_digest": "efd860a695cbd191606fa609d49e6d40", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14211, "upload_time": "2016-12-23T00:51:17", "url": "https://files.pythonhosted.org/packages/b7/72/8441b708598776e147092c0a577adcba7ef0cf8e367225e43251624f99dd/solr-doc-manager-0.1.0.tar.gz" } ] }