A mini search server based on mini_search
gem that uses postgres as secure storage and mini search
to implement textual searching.
- DATABASE_URL: Postgresql database url.
- DEFAULT_CORE_LANG: Default core lang support.
- DOCUMENT_TABLE_NAME: The name of table used by mini search server to store documents in postgres default 'documents'.
- AUTH_TOKEN: Authentication token passed via http header
AuthToken
.
Mini Search Server follows restful style in its endpoints.
POST /cores/:core/document/:id
Params:
- core: The core where the document lives.
- id: Document id
- content: Document content.
PUT /cores/:core/document/:id
Params:
- core: The core where the document lives.
- id: Document id
- content: Document content.
DELETE /cores/:core/document/:id
Params:
- core: The core where the document lives.
- id: Document id.
GET /cores/:core/documents -d "terms=Doge"
Params:
- core: The core where the document lives.
- terms: Terms of search.
GET /cores/:core/document/:id
Params:
- core: The core where the document lives.
- id: Document id.