ZF2-319: Lucene, multi index, id and document
Description
In a multi index search, id are change with :
if ($indexShift != 0) {
foreach ($hits as $hit) {
$hit->id += $indexShift;
}
}
but id must be document id, so when i use
foreach($hits as $hit) {
$document = $hit->getDocument();
}
there are an error.
So, to fix that, i have submitted a PR with update unit test to cover this case. In Query\Hit, id is a unique hit (no based on id document) and document_id is the doc id. So, no confusion and multi search run good.
Comments
Posted by BLANCHON Vincent (blanchon_vincent) on 2012-05-25T20:28:50.000+0000
PR to fix : https://github.com/zendframework/zf2/pull/1374
Posted by Maks 3w (maks3w) on 2012-06-04T15:48:59.000+0000
PR Merged