mmseg4j 1.9.0 在 lucene 4 下建不了索引

91 views
Skip to first unread message

travelogue

unread,
Oct 24, 2012, 11:02:29 PM10/24/12
to mms...@googlegroups.com
Document doc = new Document();
          
            doc.add(new TextField("content",  "This is the text to be indexed.", Field.Store.YES));
            doc.add(new TextField("addr", "河北", Field.Store.YES));
            indexWriter.addDocument(doc);
indexWriter.close();

travelogue

unread,
Oct 24, 2012, 11:05:18 PM10/24/12
to mms...@googlegroups.com


在 2012年10月25日星期四UTC+8上午11时02分29秒,travelogue写道:

只能建立 addr 的索引,不能创建content 的索引,不知道是什么原因。
Reply all
Reply to author
Forward
0 new messages