Elasticsearch - startswith filter? -


I am trying to get a simple start-up functionality in elastic services. For example, I want to match the query "char" to "charlotte", but I do not want it to match "Darlolote". After using an edge Ngram filter gave me the results. I only want to match the results that start with the query terms, they have not only them with them

  {"query" 

: {"Prefix": {"name": "char"}}}


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

c# - Chart control: Design messed Up after clearing and re-adding Y-Values -

javascript - Bootstrap Modal won't close, previously appended to Body using JQuery -