lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erick Erickson" <>
Subject Re: user index sigature
Date Tue, 25 Sep 2007 23:38:18 GMT
Sure, just index a *very special* document with one field that is
shared by no other documents in your index. Put your
custom signature in there.

You can even get it very efficiently with TermEnum if you
don't want to search for it, but searching would also be very
fast. Put, say, two fields in the doc. "field_version" and "value".
Always set the *field* field_version to the string "version". Now, search
for field_version:version, get the one and only resulting doc
and get it's value field.


On 9/25/07, John Wang <> wrote:
> Hi:
>    Is there a way to added custom signature data to a lucene index, e.gdata
> version etc?
> Thanks
> -John

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message