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 -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -