EctoTablestore.Repo.search
You're seeing just the callback
search
, go back to EctoTablestore.Repo module for more information.
Specs
search(schema(), index_name :: String.t(), options()) :: {:ok, search_result()} | {:error, term()}
Provide search index features for the following scenarios:
- MatchAllQuery
- MatchQuery
- MatchPhraseQuery
- TermQuery
- TermsQuery
- PrefixQuery
- RangeQuery
- WildcardQuery
- BoolQuery
- NestedQuery
- ExistsQuery
- GeoBoundingBoxQuery
- GeoDistanceQuery
- GeoPolygonQuery
Please refer ExAliyunOts.Search query section for details, they are similar options for use, for example:
MyRepo.search(MySchema, "index_name",
search_query: [
query: exists_query("comment")
]
)