lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ian Lea <>
Subject Re: Split index and store
Date Fri, 01 Mar 2013 11:16:13 GMT
Never rely on lucene internal doc ids.  Use your own.  Lucene searches
on unique ids are of course very fast.


On Fri, Mar 1, 2013 at 9:51 AM, Ramprakash Ramamoorthy
<> wrote:
> Hello team,
>           I have a query and I am explaining it as below.
> Objective : To split index and store, and combine it during query time
> Approach : Have two index writers, one will write a storedField and the
> other will write an indexed Field(Index.TRUE).
> The Question : This happens sequentially(Store and index a single doc, then
> move to the next one). Does this mean the docIds will be same in both the
> indexes stored and indexed (Assuming docIds are  sequential)? Am interested
> in this because, when I get the docIds from the indexed index during the
> query time, I can simply use reader.get(int docId) and retrieve the doc
> from the stored index. Please to note, I don't perform any update/delete on
> the indexes.
> Other solution : Can have an app supplied UUID, which will additionally be
> stored in the indexed index and also indexed in the stored index. But the
> problem is when I have fetched the UUIDs from the indexed index, I will
> have to do a .. UUIDn) on the stored field, which I
> feel is costly.
> Hope I am understandable and less ambiguous. Help appreciated.
> --
> With Thanks and Regards,
> Ramprakash Ramamoorthy,
> India
> +91 9626975420

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message