You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Thomas Krämer <kr...@smail.uni-koeln.de> on 2003/12/11 22:00:56 UTC

build a case insensitive index

Hello Lucene Users

i need a document term matrix to initialize a neural network, that i 
want to use to integrate user feedback in the retrieval process.

until now, i am using a slightly modified class of the IndexHTML example.

how can i create an index of all the terms in a collection without 
"term" and "Term" being indexed twice?

in the example, a standard analyzer is used, and in the documentation it 
sais :


Filters StandardTokenizer with StandardFilter, LowerCaseFilter and 
StopFilter.

So, why do i get double entries for terms in upper- and lower case writing?


Regards.

Thomas


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


Re: build a case insensitive index

Posted by Thomas Krämer <kr...@smail.uni-koeln.de>.
Hello,

Sorry for the delayed answer.

i attached you the code that i use to build a term document matrix.

i am rather surprised, because in the documentation it sais, that a 
LowerCaseFilter is included.

Thanks for your patience.

Thomas

Re: build a case insensitive index

Posted by Erik Hatcher <er...@ehatchersolutions.com>.
On Thursday, December 11, 2003, at 04:00  PM, Thomas Krämer wrote:
> how can i create an index of all the terms in a collection without 
> "term" and "Term" being indexed twice?
>
> in the example, a standard analyzer is used, and in the documentation 
> it sais :
>
>
> Filters StandardTokenizer with StandardFilter, LowerCaseFilter and 
> StopFilter.
>
> So, why do i get double entries for terms in upper- and lower case 
> writing?

Could you provide us some code that shows how you are indexing, and 
also how you are seeing the indexed terms?

	Erik


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