You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by petite_abeille <pe...@mac.com> on 2002/09/27 13:27:23 UTC

using lucene as a lookup table?

Hello,

I would like to use Lucene as a kind of lookup table (aka Map):

A document would have two fields:

- the first field would represent a random lookup key in the form of a 
Field.Keyword
- the second field would be an object id also stored as a Field.Keyword

Which sounds fine in theory. Unfortunately it doesn't seem to quiet 
work in practice: when inserting a new document and trying to look it 
up straight away I usually don't get any result back for a while.

Maybe I'm simply missing something very obvious, but how does one 
lookup a document that was just inserted in an index?

Though?

Thanks.

PA.


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: using lucene as a lookup table?

Posted by petite_abeille <pe...@mac.com>.
On Friday, Sep 27, 2002, at 13:27 Europe/Zurich, petite_abeille wrote:

> - the first field would represent a random lookup key in the form of a 
> Field.Keyword

Ooops... I should have mention that the key field is stored as Field( 
aKey, aValue, false, true, false): eg not stored, indexed, not 
tokenized. It it's basically only indexed as I don't need its value for 
lookup purpose.

PA.


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>