Metadata-Version: 2.1
Name: dtool-lookup-server-search-plugin-mongo
Version: 0.2.0
Summary: Search plugin for dtool-lookup-server using mongodb
Home-page: https://github.com/jic-dtool/dtool-lookup-server-search-plugin-mongo
Download-URL: https://github.com/jic-dtool/dtool-lookup-server-search-plugin-mongo/tarball/0.2.0
Author: Tjelvar Olsson
Author-email: tjelvar.olsson@gmail.com
License: MIT
Description-Content-Type: text/x-rst
License-File: LICENSE.rst

README
======

Search plugin for dtool-lookup-server using mongodb

To install the dtool-lookup-server-search-plugin-mongo package.

.. code-block:: bash

    cd dtool-lookup-server-search-plugin-mongo
    python setup.py install

To configure the connection to the mongo database.

.. code-block:: bash

    export SEARCH_MONGO_URI="mongodb://localhost:27017/"
    export SEARCH_MONGO_DB="dtool_lookup_server"
    export SEARCH_MONGO_COLLECTION="datasets"

Testing
^^^^^^^

Testing requires a minimal ``dtool-lookup-server`` installation including a
functional retrieve plugin, i.e.

.. code-block:: bash

    pip install dtool-lookup-server
    pip install dtool-lookup-server-retrieve-plugin-mongo

Run tests from within repository root with ``pytest``.
