Hello, Kendall. You can read about Token Position Increments at https://lucene.apache.org/core/9_2_0/core/org/apache/lucene/analysis/package-summary.html#package.description Usually position is a number of word and offset is a number of symbol. Modeling entries via positions is boilerplate, I suppose. Nowadays we either denormalize by copying values across children into a single parent document. Also, here are more relational options https://lucene.apache.org/core/9_2_0/join/org/apache/lucene/search/join/package-summary.html
On Fri, Jul 22, 2022 at 7:02 AM Kendall Shaw <ks...@kendallshaw.com> wrote: > Hi, > > I'm trying to figure out if I should be learning to use Lucene. I > imagine wanting to provide a user with a way to search for something and > present that found thing, in some way. If what is ultimately searched is > text files, then position would be an offset into the text file, I > think. But, that seems like a pretty unlikely scenario. > > If I have stored structured data into a database of some sort, does > Lucene provide some way to associate a position with an entry in a > database? Or is that left to the programmer to implement, outside of > Lucene? > > Kendall > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org > > -- Sincerely yours Mikhail Khludnev