search-builder

command module
v0.0.0-...-ef3fce6 Latest Latest
Warning

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

Go to latest
Published: May 11, 2023 License: MIT Imports: 8 Imported by: 0

README

IMQS Search Server

This was created in order to serve up domain-specific searches for IMQS. Examples of what we're searching for are Water Meter ID, Stand ID, Municipal Account Number.

This server works by reading a set of fields from databases, splitting them up into tokens, and indexing those tokens in one giant index table.

The goal is not yet to do natural language search, nor to search documents. We'll likely use something like Lucene when we get around to that.

Run

To run the search server:

go run imqssearch.go -c=example-search.json run

Test

To run unit tests:

Postgres must be installed on localhost. Create a user called unit_test_user, with password unit_test_password. The user must be able to create databases.

go test github.com/IMQS/search/search -db_postgres

Docker Build

sudo docker build --build-arg SSH_KEY="cat ~/.ssh/id_rsa" -t imqs/search:master .

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package server implements a database text search engine appropriate to IMQS data.
Package server implements a database text search engine appropriate to IMQS data.

Jump to

Keyboard shortcuts

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