|« PreviousNext »|
|Did this page help you? Yes | No | Tell us about it...|
You submit search requests to your domain's search endpoint as HTTP/HTTPS GET requests. You can perform free text and Boolean searches, and specify a variety of options to constrain your search, request facet information, control ranking, and specify what you want to be returned in the results. You can get search results in either JSON or XML. By default, Amazon CloudSearch returns results in JSON.
When you submit a search request, Amazon CloudSearch performs text-processing on the search terms. The search terms are tokenized, stopwords are removed, and stems are mapped according to the domain configuration.
Once this preprocessing is complete, Amazon CloudSearch looks up the search terms in the index and identifies all of the documents that match the request. To generate a response, Amazon CloudSearch processes this list of search hits to filter and rank the matching documents and compute facets. Amazon CloudSearch then returns the response in JSON or XML.
By default, Amazon CloudSearch returns search results ranked according to the hits' text_relevance scores. Alternatively, your request can specify the index field or rank expression that you want to use to sort the hits. For example, you might want to rank hits by an index field that contains the price or a rank expression that calculates popularity.
For more information about searching, ranking, and paginating results, see Searching Your Data with Amazon CloudSearch.