lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Timon Roth <timon.r...@digitalforce.ch>
Subject Re: wheres the word
Date Thu, 25 Jun 2009 07:42:25 GMT
hoi paul

i now tried with the hint from mark miller...disabling all the stopwords from 
standardanalyzer...

String stop_words[] = new String[0];
...StandardAnalyzer(stop_words);

this works perfect..;-)

gruess,
timon

Am Donnerstag, 25. Juni 2009 schrieb Paul Libbrecht:
> 
> Le 25-juin-09 à 01:28, Mark Miller a écrit :
> >> im figgering about the following problem. in my index i cant find  
> >> the word BE, but it exists in two documents. im usinglucene 2.4  
> >> with the standardanalyzer.
> >> other querys with words like de, et or de la works good. any ideas?
> > be is a stopword. Do yourself a favor and turn off stopwords. Best  
> > to remove them at query time if you really need to.
> 
> Timon, you spotted it: the analyzer. You need to care to take the  
> right analyzer and, if that language token (?) is a different field,  
> you neeeeed to use a different analyzer, e.g. whitespaceanalyzer...
> 
> paul


-- 
Timon Roth
Triemlistrasse 92
8047 Zürich
--
043 817 40 31
079 636 57 28
--
digitalforce.ch
timon.roth@digitalforce.ch
http://tel.search.ch/zuerich/triemlistrasse-92/timon-roth

Mime
  • Unnamed multipart/alternative (inline, 7-Bit, 0 bytes)
View raw message