For indexing my documents I use this code : writer = new IndexWriter(index, new StandardAnalyzer(), create);
I use 2 fields "content" and "title" but I would use diff�rents Analyzer for this 2 fields (one who could use numerical and the other not, for example)
Is there a way to do this?
You can only use one Analyzer per document and all tokenized fields will use that analyzer (an aside, you can change analyzers on a per document basis also).
But, you can create a custom Analyzer that does the right logic on a per-field basis easily by just copying the code from the Analyzers you want to use in there. The tokenStream method you override provides the field name as a parameter.
Erik
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
