Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Phrase fuzzy search on solr

Solved Go to solution

Phrase fuzzy search on solr

Expert Contributor

i am able to do fuzzy search on single word in solr for example the paragraph indexed in solr is :

my name is tarek abouzeid and i am testting the big data technology .

 

for example i can apply fuzzy search on the word testing like this :
testing~0.6     ==> i get the paragraph normally 

 

but what if i want to apply fuzzy search on the phrase "tarek abouzeid" with fuzzy value 0.6 ?

thanks in advance  

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Phrase fuzzy search on solr

Expert Contributor

i found out that's practically imposible to do so using solr's default query parser , we can use a custom query parser that tokenize the query and apply fuzzy for each work individually , as solr's default query parser handle the following query :
"testing big data"~SLOPE_VALUE

 

where slope is the distance between each word not fuzzy value for each word

1 REPLY 1

Re: Phrase fuzzy search on solr

Expert Contributor

i found out that's practically imposible to do so using solr's default query parser , we can use a custom query parser that tokenize the query and apply fuzzy for each work individually , as solr's default query parser handle the following query :
"testing big data"~SLOPE_VALUE

 

where slope is the distance between each word not fuzzy value for each word