- Type:
string - Default:
"" - Scope:
search
Usage
- Build the
similarQueryfrom relevant object metadata, such as tags, categories, or keywords. - This query isn’t generated automatically.
You must select meaningful terms manually.
For example, a
similarQueryfor a movie could include its genre, key actors, and tags, such as:Romance Comedy Gordon-Levitt NY.
-
Sets
queryTypetoprefixNone—turns off prefix matching. -
Enables
removeStopWords—removes common stop words like “the”, “a”, or “an”. - Sets Words as the first ranking criterion—results with more exact matches rank higher.
-
Treats all remaining words as
optionalWords:- Matches any (not all) of the words in the query (
ORbehavior). - Due to the broader match, you should apply filters to narrow the results.
- Long queries may trigger specific behavior related to
optionalWordswith four or more words.
- Matches any (not all) of the words in the query (
Example
Search with similarQuery
The following example demonstrates the construction of a similarQuery from a record for the movie “Fargo”:
similarQuery to extract words from genres, cast, and director as a long query string.
This search returns many results because all words are optional.
To ensure you get the best results, add a filter on release dates within five years of Fargo’s: filter = “year:1991 TO 2001”
Current API clients
Current API clients
Legacy API clients
Legacy API clients