mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-19 05:55:19 +00:00
update search api
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user