finder

command
v0.0.0-...-fb119ec Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 12, 2018 License: Apache-2.0 Imports: 13 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL