I have a requirement in solr to search for data in the following order for field name: exact match string begins with the word string has the exact word in it fuzzy match - for this i am using ~ operator. e.g. dave~1
The query term can have 1 or more words. Right now i am using fuzzy match operator. danny~1 boyle~1. Also i have created multiple fields for
1) exact name (the name as it is captured)
2) words in the name are captured
3) ngrams from front are generated
4) edgengram from front , middle are generated.
I am using edismax query with boost in qf.
My issue is that i want to use separate queries for different fields. Right now fuzzy search query is sent to all the fields. e.g. danny~1 boyle~1 is used across all the fields. If i can put different queries for different fields, then the problem should get solved. I tried using the 2nd suggestion at
Solr search query over multiple fields with OR. But it didn't work. Can you suggest what is wrong or any new option alltogether? My solr version is 6.6