lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 王建新 <lieut...@gmail.com>
Subject Need addtional info for Field
Date Mon, 21 Apr 2008 08:15:02 GMT
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.
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message