Re: Suggestions for modeling an Index

2025-01-21 Thread Dawid Weiss
You could flatten the intervals into different documents. This would make retrieval of all of document's sectors a bit more clumsy but searching would be simpler and the number of fields would be constant. So each document would look like this: document_id: xyz sector_num: ... start: ... end: ...

Re: Suggestions for modeling an Index

2025-01-20 Thread Mikhail Khludnev
Hello Have you considered the range field https://lucene.apache.org/core/9_1_0/core/org/apache/lucene/document/IntRange.html ? On Mon, Jan 20, 2025 at 11:34 PM Cleber Muramoto wrote: > Hello. > > My model has the following Root structure, which consists of N > "TimeSpaceIntervals": > > { > id: