View a markdown version of this page

Converting Solr query parameters to OpenSearch DSL - AWS Prescriptive Guidance

Converting Solr query parameters to OpenSearch DSL

As an example, let's use the following Solr query:

http://localhost:8983/solr/books/select?q=*:*&fq=category:programming

The equivalent OpenSearch query is:

GET http://localhost:9200/books/_search { "query": { "bool": { "must": [ { "match_all": {} } ], "filter": [ { "term": { "category": "programming" } } ] } } }