lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Naber <daniel.na...@t-online.de>
Subject Re: StopWord elimination pls. HELP
Date Sun, 17 Oct 2004 11:03:52 GMT
On Sunday 17 October 2004 05:23, Miro Max wrote:

> d.add(Field.Text("cont", cont));
> writer.addDocument(d);
>
> to get results from a database into lucene index. but
> when i check println(d) i can see the german stopwords
> too. how can i eliminate this?

Field.Text("field", cont) where cont is a String will also store the 
original text, additionally to indexing it. toString() will then show the 
stored text. In the index you won't have any stopwords.

Regards
 Daniel

-- 
http://www.danielnaber.de

---------------------------------------------------------------------
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