Re: Getting all values for a specific dimension for SortedSetDocValues per document

2022-07-01 Thread Harald Braumann
Hi! Thanks a lot for your help. I will try both of you suggestions (taxo index and per-segment ord ranges). Thanks for clarifying, that I have to iterate the ords. I wasn't sure, if I didn't just overlook something obvious. Like some way to do an advanceExact on ords. Regards harry On 01.

Re: Getting all values for a specific dimension for SortedSetDocValues per document

2022-07-01 Thread Greg Miller
To address the last topic (building up ordinal ranges per-segment), what I'm thinking is that you'd iterate all unique ordinals in the SSDV field and "memorize" the ordinal range for each dimension up-front, but on a per-segment basis. This would be very similar to what DefaultSortedSetDocValuesRea

Re: Getting all values for a specific dimension for SortedSetDocValues per document

2022-07-01 Thread Harald Braumann
Hi! On 01.07.22 00:46, Greg Miller wrote: Have you considered taxonomy faceting for your use-case? Because the taxonomy structure is maintained in a separate index, it's (relatively) trivial to iterate all direct child ordinals of a given dimension. The cost of mapping to a global ordinal space

Re: Getting all values for a specific dimension for SortedSetDocValues per document

2022-06-30 Thread Greg Miller
Hi Harry- Have you considered taxonomy faceting for your use-case? Because the taxonomy structure is maintained in a separate index, it's (relatively) trivial to iterate all direct child ordinals of a given dimension. The cost of mapping to a global ordinal space is done when the index is merged.