Even though we are planning to restrict usage of id projection - https://hibernate.atlassian.net/browse/HSEARCH-4827 we still want to allow it with that fromRoot projection. Calling currentLeafIdDocValues.advance( doc ); inside of an accumulating function leads to unpredictable projection results. |