update search api

This commit is contained in:
Asim Aslam
2022-02-21 13:08:32 +00:00
parent 8adc4da930
commit 8fd2f2bc19
6 changed files with 262 additions and 174 deletions

View File

@@ -2,16 +2,13 @@ Indexing and full text search
# Search Service
Store and search JSON documents. The Search API provides full indexing and text search.
Store and search JSON records. The Search API provides indexing and full text search.
Search for a word or phrase in a particular field of a record. Combine multiple with
either `AND` or `OR` boolean operators to create complex queries.
Powered by [OpenSearch](https://opensearch.org/).
Search for a given word or phrase in a particular field of a document. Combine multiple with either `AND` or `OR` boolean operators to create complex queries.
## Usage
Documents are inserted using the `/search/index` endpoint. Document fields are automatically indexed with no need to define which fields to index ahead of time. Documents are logically grouped in to `indexes` so you may have an index for customers and one for products. Once documents are inserted you are ready to search, simple as that.
## Search query language
## Query Language
The search API supports a simple query language to let you get to your data quickly without having to learn a complicated language.
@@ -41,7 +38,7 @@ or booleans
verified == true
```
You can search on fields that are nested in the document using dot (`.`) as a separator
You can search on fields that are nested in the record using dot (`.`) as a separator
```sql
address.city == 'London'