lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Materna, Wolf-Dietrich (empolis B)" <Wolf-Dietrich.Mate...@empolis.com>
Subject AW: Phrase Query
Date Tue, 15 Apr 2003 09:49:37 GMT
Hello,
[Chandrashekhar Gupta]
> I am stuck up in searching a phrase in HTML document.The 
> problem is like this:
This question should be dealt on the lucene user list
(lucene-user@jakarta.apache.org).

> If I search "Last Will" phrase in the documents the search 
> results are those which contain only "Last" Term.
> I am using StopAnalyzer as the analyzer. I then realized that 
> the cause may be due to the fact that "will" is there in the 
> stop list for this analyzer. I removed the word "will"
> and run the search again..now it is not giving any results 
> fot the same phrase.The Query object I am getting is of type 
> PhraseQuery.
> 
> Any other phrase which does not contain any stop words works 
> fine..Could you please suggest how to deal with this problem..
> 
> Any sort of help will be extremely helpful..
You have forgotten to rebuild your index after changing the stopword list.
Note that all stopwords will be ignored while indexing. That's why there are
no information available which documents contains the word "will" (and
where). 
You should always rebuild your index after changing something in the
analyser.
Regards,
	Wolf-Dietrich Materna

-- 
Wolf-Dietrich Materna
Development
 
empolis GmbH -  arvato knowledge management 
Kekul├ęstr. 7 
12489 Berlin, Germany
 
phone :  +49-30-6780-6510
fax :    +49-30-6780-6549
 
<<mailto:Wolf-Dietrich.Materna@empolis.com>> <<http://www.empolis.com>>

---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Mime
View raw message