The other answers are fine; I've done this a couple times before to play tricks with span queries. It's a PITA if you want to integrate this with Solr; you may end up writing an URP that puts together the merged TokenStream then passes along a Field instance with this TS. Solr's DocumentBuilder will pass this straight through to the Lucene document and skip the FieldType. Alternatively if you really want to do the majority of the work in a custom FieldType, you could write an URP that just wraps up the values into something custom that will get passed into FieldType.createFields by the DocumentBuilder.
Good luck. On Mon, Jun 20, 2016 at 5:27 PM Mikhail Khludnev <m...@apache.org> wrote: > Hello! Devs, > > I'm sure it's discussed many times or were in it air. If I have a few > 3-tokens values in a multivalued field, how I can assign positions: > 0,1,2...10,11,12,...20,21,22... > instead of > 0,1,2, 12,13,14, 24,25,26.. giving that positionIncrementGap=10 ? > > -- > Sincerely yours > Mikhail Khludnev > Principal Engineer, > Grid Dynamics > -- Lucene/Solr Search Committer, Consultant, Developer, Author, Speaker LinkedIn: http://linkedin.com/in/davidwsmiley | Book: http://www.solrenterprisesearchserver.com