lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adrien Grand <jpou...@gmail.com>
Subject Re: docid is just a signed int32
Date Fri, 19 Aug 2016 08:43:44 GMT
Le ven. 19 août 2016 à 03:32, Trejkaz <trejkaz@trypticon.org> a écrit :

> But hang on:
> * TopDocs#merge still returns a TopDocs.
> * TopDocs still uses an array of ScoreDoc.
> * ScoreDoc still uses an int doc ID.
>

This is why ScoreDoc has a `shardId` so that you can know which index a
document comes from.

I'm not saying we should not switch to long doc ids, but as outlined in
some other responses it would be a challenging change.

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