But I dont want it to make an "hard" search for the searchstring.. f.ex if I search for "title on page" I will find the page but with "title on pa" I will not find the page. I figure I need to have fuzzy option to extend the area of the search but I can't figure out where to insert it ".Fuzzy()".
You don't need fuzzy in this instance you need wildcard so where you are searchString change that to
searchString.MultipleCharacterWildcard()
Also if the index is built using standard analyzer the word "on" will not be in the index as its a stop word. Also in examine if your search term contains spaces you need to separate out the words so you would need code like
Also you would need to do it for each field you are searching on. One thing I would recommend is to use ezSearch package http://our.umbraco.org/projects/website-utilities/ezsearch it handles all this kind of stuff and just works out of the box.
Examine Search, how to use fuzzy ?
Hi,
I'm using this query which is working fine.
But I dont want it to make an "hard" search for the searchstring.. f.ex if I search for "title on page" I will find the page but with "title on pa" I will not find the page. I figure I need to have fuzzy option to extend the area of the search but I can't figure out where to insert it ".Fuzzy()".
Any suggestions would be appreciated !
Hi,
You don't need fuzzy in this instance you need wildcard so where you are searchString change that to
Also if the index is built using standard analyzer the word "on" will not be in the index as its a stop word. Also in examine if your search term contains spaces you need to separate out the words so you would need code like
Also you would need to do it for each field you are searching on. One thing I would recommend is to use ezSearch package http://our.umbraco.org/projects/website-utilities/ezsearch it handles all this kind of stuff and just works out of the box.
Regards
Ismail
Thank you Ismail !
I don't get the option for "MultipleCharacterWildcard()" and get there for an error, I'm using Umbraco 6.1.6.
No problem, found it :)
Thank you
is working on a reply...