Searching Your Data with Amazon CloudSearch
You specify the terms or values you want to search for with the q
parameter. How you specify the search
criteria depends on which query parser you use. Amazon CloudSearch supports four query parsers:
-
simple
—search alltext
andtext-array
fields for the specified string. The simple query parser enables you to search for phrases, individual terms, and prefixes. You can designate terms as required or optional, or exclude matches that contain particular terms. To search particular fields, you can specify the fields you want to search with theq.options
parameter. Thesimple
query parser is used by default if theq.parser
parameter is not specified. structured
—search specific fields, construct compound queries using Boolean operators, and use advanced features such as term boosting and proximity searching.lucene
—specify search criteria using the Apache Lucene query parser syntax. If you currently use the Lucene syntax, using thelucene
query parser enables you to migrate your search services to an Amazon CloudSearch domain without having to completely rewrite your search queries in the Amazon CloudSearch structured search syntax.dismax
—specify search criteria using the simplified subset of the Apache Lucene query parser syntax defined by the DisMax query parser. If you are currently using the DisMax syntax, using thedismax
query parser enables you to migrate your search services to an Amazon CloudSearch domain without having to completely rewrite your search queries in the Amazon CloudSearch structured search syntax.
You can use additional search parameters to control how search results are returned and include additional information such as facets, highlights, and suggestions with your search results.
For information about all of the Amazon CloudSearch search parameters, see the Search API.
Topics
- Submitting Search Requests to an Amazon CloudSearch Domain
- Constructing Compound Queries in Amazon CloudSearch
- Searching for Text in Amazon CloudSearch
- Searching for Numbers in Amazon CloudSearch
- Searching for Dates and Times in Amazon CloudSearch
- Searching for a Range of Values in Amazon CloudSearch
- Searching and Ranking Results by Geographic Location in Amazon CloudSearch
- Searching DynamoDB Data with Amazon CloudSearch
- Filtering Matching Documents in Amazon CloudSearch
- Tuning Search Request Performance in Amazon CloudSearch