# Search Engine (Elasticsearch)

NoSQL, document-oriented database.

To handle advanced search requirements, e.g. e-commerce with search functionality.

When using search functionality in an e-commerce platform, we usually can filter by location, type, category, rating, name, description, and other filters. It is not possible to create indexes for all of column with all of the possible combinations on relational DB. We should use elasticsearch instead.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://note.levelcode.org/software-engineering-notes/database/search-engine-elasticsearch.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
