FAQ
I want to use lucene with some additional info,like:

1.index
Document additionalDoc=ew Document()

additionalDoc.add(new Field("field","AA BB","Addtional info ..............."));
additionalDoc.add(new Field("field","BB CC","Addtional info 222222222222222222222222..............."));

writer.addDocument(additionalDoc)

........


2. search

Searcher searcher;
....

searcher.search(termQuery("field","BB"));




in this condition, I want lucene returns the additionalDoc , also know which fileds were matched, then I will get the additional info from the matched fields.

Can lucene make it in version 2.3.1?
if cannot, Can you give me some advice?

Thanks.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupjava-user @
categorieslucene
postedApr 21, '08 at 8:15a
activeApr 21, '08 at 8:15a
posts1
users1
websitelucene.apache.org

1 user in discussion

王建新: 1 post

People

Translate

site design / logo © 2022 Grokbase