Restful json CherryPy server.
$ python server.py directory [-r|–read-only] [-c|–config filename]
Dispatch root with a delegated IndexSearcher.
Return ids or documents.
Return list of doc ids.
| return: | [int,... ] |
|---|
Return document mappings, optionally selected unique or multi-valued fields.
&fields=chars,...
&multifields=chars,...
| return: | {string: string|array,... } |
|---|
Return index information.
Return a mapping of the directory to the document count.
| return: | {string: int} |
|---|
Run query and return documents.
Return list of document objects and total doc count.
&q=chars
&count=int
&fields=chars,...
&multifields=chars,...
&sort=[-]*chars*[:chars],...
| return: | {“count”: int, “docs”: [{“__id__”: int, “__score__”: number, string: string|array,... },... ]} |
|---|
Return data about indexed terms.
Return field names, with optional selection.
&option=chars
| return: | [string,... ] |
|---|
Return term values for given field name.
| return: | [string,... ] |
|---|
Return slice of term values for given field name.
| return: | [string,... ] |
|---|
Return document count with given term.
| return: | int |
|---|
Return document ids with given term.
| return: | [int,... ] |
|---|
Return document ids and frequency counts for given term.
| return: | [[int, int],... ] |
|---|
Return document ids and positions for given term.
| return: | [[int, [int,... ]],... ] |
|---|
Bases: server.WebSearcher
Dispatch root which extends searcher to include write methods.
Commit write operations.
POST /commit
Add or return documents.
Add documents to index.
docs=[{string: string|array,... },... ]
Return or store a field’s parameters.
Return known field names.
| return: | [string,... ] |
|---|
Set and return parameters for given field name.
store=chars
index=chars
termvector=chars
| return: | {“store”: string, “index”: string, “termvector”: string} |
|---|
Run or delete a query.