Search query - StartsWIth, Contains and Endswith

How to query elasticsearch with Startswith, contains and Endswith.
\Looks like it is not recommended to use wildcard * at the beginning of the search term considering the performance impact.

For content that has few unique values (thousands or less) then the keyword field is adequate. An example might be searching country names.
For content that has millions or more unique values e.g. machine-generated log messages then the new wildcard field is designed for efficient wildcard and regex searches.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.