search
Search a collection with bm25
Performs a keyword (BM25F) search over the objects of a collection. Objects are scored against the query with the BM25F ranking function over the searchable text properties (all of them, or the queryProperties subset) and the best-scoring objects are returned, each as an envelope of its id, the selected properties, the selected references and, when requested, its retrieval metadata.
post/search/{collection}/bm25
Request
- Base URL: https://localhost:8080/v1
- URL: https://localhost:8080/v1/search/{collection}/bm25
- Auth: one of:
- none
- OAuth 2 (implicit, authorization URL http://to-be-configured-in-the-application-config)
Path parameters
collectionstring required
The name (or alias) of the collection to search. A lowercase first letter is normalized to the canonical uppercase form.
Request body
Example request
{
"where": {
"operator": "GreaterThanEqual",
"path": [
"inCity",
"city",
"name"
],
"valueInt": 2000,
"valueNumber": 3.14,
"valueString": "my search term",
"valueText": "my search term",
"valueDate": "TODO",
"valueNumberArray": [
3.14
],
"valueBooleanArray": [
true,
false
],
"valueStringArray": [
"my search term"
],
"valueTextArray": [
"my search term"
]
}
}Response
Search performed successfully.
Changes
No recorded changes to this operation across all 1 revision of this API.