View Source ExAws.CloudSearch.QueryParser (ex_aws_cloud_search v0.3.0)
A wrapper for query parsers. The base case is that the query is a string, in which case the query is passed through unmodified.
Link to this section Summary
Functions
Attempt to parse the query provided. If the parser sets a particular mode,
that value will be returned with the query; otherwise the query mode will be
nil
, indicating that the parser cannot determine the type of query.
Link to this section Types
@type query_mode() :: nil | :simple | :structured | :lucene | :dismax
Link to this section Functions
@spec parse(nil | String.t() | struct()) :: {String.t(), query_mode()}
Attempt to parse the query provided. If the parser sets a particular mode,
that value will be returned with the query; otherwise the query mode will be
nil
, indicating that the parser cannot determine the type of query.