ExAliyunOts.Search.match_phrase_query

You're seeing just the function match_phrase_query, go back to ExAliyunOts.Search module for more information.
Link to this function

match_phrase_query(field_name, text)

View Source

Specs

match_phrase_query(field_name(), text :: String.t()) :: map()

Use MatchPhraseQuery as the nested :query option of :search_query option in ExAliyunOts.search/4.

Similar to MatchQuery, however, the location relationship of multiple terms after word segmentation will be considered, multiple terms after word segmentation must exist in the same order and location in the row data to be hit this query.

Official document in Chinese | English

Example

import MyApp.TableStore

search "table", "index_name",
  search_query: [
    query: match_phrase_query("content", "tablestore")
  ]