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 Adriano Labate <la...@verticali.com> on 2003/05/14 15:08:04 UTC
Indexing documents for several languages
Hi,
I am new to Lucene, I know this is already discussed in the list,
but I haven't found a solution yet.
I have to index file documents in english, french, german, etc.
I know that the same analyzer used for indexing must be used for
the search. Ok, but how could I create an index that must use a
different analyzer for each different language document? Same
question for the search.
What the best practices?
Do I have to create one index per language?
Do I have to write a custom analyzer that dynamically detects the
Document language and apply the right stemming, stop word list, etc?
Thanks.
Adriano Labate
Vertical*i SA
Rue du Petit-ChĂȘne 38
1003 Lausanne, Switzerland
Phone +41 21 317 57 47
Fax +41 21 317 57 44
Web www.verticali.com
---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org
Re: Indexing documents for several languages
Posted by Otis Gospodnetic <ot...@yahoo.com>.
> What the best practices?
>
> Do I have to create one index per language?
That would be one option.
> Do I have to write a custom analyzer that dynamically detects the
> Document language and apply the right stemming, stop word list, etc?
This is more complex, but sounds more attractive to me.
One person had a language-recognition code that used a different
Analyzer depending on the language. He has not contributed the code
yet, unfortunately.
Otis
__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org