Solr search advance

35 views
Skip to first unread message

nhan tam

unread,
Feb 12, 2014, 9:56:16 PM2/12/14
to php-sol...@googlegroups.com
I want to search pharse such as

1. "iphone"
2. "iphon"

How do I query or config to search same results from 2 words above ?


Thank you

Naga Sundaram

unread,
Feb 14, 2014, 8:26:46 AM2/14/14
to php-sol...@googlegroups.com
Hi ,

you can do this using Fuzzy Search  in solr .To do a fuzzy search use the tilde, "~", symbol at the end of your search keyword.

like  'iphon~' 

now you can get both  "iphone" and "iphon"

Also you can pass value in fuzzy search. this value mention the similarity range.
 
The value is between 0 and 1, with a value closer to 1 only terms with a higher similarity will be matched

Try like this  'iphon~0.5'

I hope above things will be help ;)
Reply all
Reply to author
Forward
0 new messages