I need to create two fields for Lucene documents populated
1) by numbers
2) by other strings
3) by values of another specific format

What kind of Analyzer would do it?

Using the customized analyzer, the current code is like

IndexWriter indexWriter = new IndexWriter(indexDir, analyzer, true);
Document doc = new Document();
doc.add(new Field("numeric_contents", new FileReader(f))); // numeric tokens doc.add(new Filed("other_contents", new FileReader(f))); //the same file but other than numeric tokens

Thanks
--
Boris Galitsky.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to