lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Boris Galitsky <>
Subject analyzer to populate more that one field of Lucene document
Date Fri, 22 Sep 2006 00:34:09 GMT
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

Boris Galitsky.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message