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
Post a Comment