Issue with stopwords when searching with PhraseQuery
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   vicente_vastich
Posted On:   Thursday, July 27, 2006 01:37 AM

I Index the text "highlight the difference" using StandardAnalyzer. When searching using QueryParser with StandardAnaylyser, search strings - "highlight the difference", "highlight difference", both work.

However my search engine constructs the search using PhraseQuery and both sets of keywords fail to get the search result. There's no provision to specify the Analyzer type with the APi ... or is there ? Can someone suggest whats the best way to get this working using the APi (not QueryParser)?

Lucene version - 1.4.3

Thanks
~ Vicente

Re: Issue with stopwords when searching with PhraseQuery

Posted By:   vicente_vastich  
Posted On:   Saturday, July 29, 2006 04:48 AM

Mods please remove query from Thread ...
It was a gaffe on my part - the search string was tokenized and stored in a java 'set' collection before firing the phrase query; I ended up adding terms to PhraseQuery out of sequence since most set implementations do not maintain the storage sequence. Fixed issue by using a LinkedHashSet.
About | Sitemap | Contact