Elasticsearch & OpenSearch

Generate powerful search queries with natural language

Seek Your Query

Results

Enter your search query request above to generate Elasticsearch queries

Examples

Search for products with 'laptop' in the title

{ "query": { "match": { "title": "laptop" } } }

Uses match query to find documents with 'laptop' in the title field

Find products with price between $100 and $500

{ "query": { "range": { "price": { "gte": 100, "lte": 500 } } } }

Uses range query to filter products within a price range

Search for products in electronics category with high rating

{ "query": { "bool": { "must": [ { "term": { "category": "electronics" } }, { "range": { "rating": { "gte": 4.0 } } } ] } } }

Combines multiple conditions using bool query with must clause

Get product count by category

{ "size": 0, "aggs": { "categories": { "terms": { "field": "category" } } } }

Uses aggregation to count products grouped by category

QueryBoss: AI-Powered Formula & Query Generator