I have a search case where it's desirable to anchor the query at the
beginning and end of the string but allow slop in the middle. For example,
I have field "friends" with a list of names in it as strings:
"A B User"
"C User D"
The user needs to be able to enter a query like "A User" and have it match
"A User" and "A B User" but not others (the reason for this is that they
typically get the first initial correct and last name but may not know any
middle initials). A search for "C User" should not match "C User D". This
is in an application I'm porting from solr to Elasticsearch, in solr I had
written a span query plugin to construct these and then surrounded each
name with tokens: "^^^ A User $$$" so I could anchor span terms on the
beginning and end of the strings.
I'm wondering what the translation of this is to elasticsearch, any help
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to email@example.com.
For more options, visit https://groups.google.com/groups/opt_out.