Hi ,I am using lucene search engine in my applicaiton.I am facing trouble to search a particular word like "AWT-T" . I want only match data with this particular word "AWT-T" should be shown. But right now all the data matching with AWT is also showing.
The simple umbSearch doesn't handle dashes very well. The dash in the search term forces lucene to use a different search algorithm, which causes peculiar results sometimes. There are a couple ways to handle this but they all require some code changes to the search tool to get the lucene behavior you want. I don't think there is a simple way to resolve it without a code change; though if you put the search term in single or double quotes you might get what you're looking for.
Lucene query syntax
Hi ,I am using lucene search engine in my applicaiton.I am facing trouble to search a particular word like "AWT-T" . I want only match data with this particular word "AWT-T" should be shown. But right now all the data matching with AWT is also showing.
Please help me.
Hi,
I'd check the lucene.net documentation for that. Don't see any umbraco relevance atm, but you could proof me wrong of course.
Cheers,
/Dirk
Rimi,
Download luke and try syntax documentation here
Regards
Ismail
The simple umbSearch doesn't handle dashes very well. The dash in the search term forces lucene to use a different search algorithm, which causes peculiar results sometimes. There are a couple ways to handle this but they all require some code changes to the search tool to get the lucene behavior you want. I don't think there is a simple way to resolve it without a code change; though if you put the search term in single or double quotes you might get what you're looking for.
Try searching for:
AWT-T
'AWT-T'
"AWT-T"
Do any of those return what you want?
cheers,
doug.
No Drobar,It's not showing the right data.It's showing the AWT related data also.I want only AWT-T data.Please help me.
is working on a reply...