lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cam Bazz <camb...@gmail.com>
Subject Re: do i need a key if not going to query by key or update the document
Date Mon, 12 Sep 2016 09:51:33 GMT
Thank you for the quick response.

But I still can delete that document - based on docId right? I understand
docId may change from time to time,
but if I iterate a bunch of docs and then fetch the docId from the doc I
want to delete and then delete that doc will it still work?

Best regards,
C.

On Mon, Sep 12, 2016 at 12:47 PM, Michael McCandless <
lucene@mikemccandless.com> wrote:

> No, you don't need a key for append-only usage.
>
> Lucene itself doesn't care if you have a unique key per document, and
> in fact it's very costly, especially if your documents are otherwise
> tiny, to add one if you don't really need it.
>
> Mike McCandless
>
> http://blog.mikemccandless.com
>
> On Mon, Sep 12, 2016 at 5:42 AM, Cam Bazz <cambazz@gmail.com> wrote:
> > Hello,
> >
> > Do I need to add a key, if I will not be
> >
> > a. updating the document
> > b. will not fetch the document by key?
> >
> > What could be the possible downside of not using a key that uniquely
> > identifies the document?
> >
> > I am building a log processor, and all I will do is sort and iterate.
> >
> > Best regards,
> > C.
>

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