Finder
Designed to provide search utilitites
Requires the following environment variables to be set:
- D5_HOSTNAME: mongodb hostname
- D5_DBNAME: mongodb database name
CLI
Finder provides a regular unix interface
Search query is expected as standard input in JSON format
Requires the following flags:
- **coll {collectionName} **
- **debug false ** (optional, false by default)
echo "limit=2&query={\"word.german\": \"solche\"}" | finder --coll=german
Server
Finder also provides a server
Requires the following flags:
- coll {collectionName}
- debug false (optional, false by default)
- server true
- port {portnumber} (optional, 17171 by default)
finder --coll=german --server=true --port=20202
curl --data 'query={"word.user":"peteraba","word.category":"verb","reflexive":"A"}&limit=2' http://localhost:20202/
Search query should be posted as JSON