You can assign multiple values to text field and leverage positionIncrementGap https://lucene.apache.org/solr/guide/6_6/field-type-definitions-and-properties.html#general-properties
And why wouldn't you use your Lucene plugin in Solr? On Sun, Dec 17, 2017 at 8:45 AM, Amin Raeiszadeh <amin24march1...@gmail.com> wrote: > how is it possible to add custom gaps between terms of > TextFiled in solr documents. for example between term > number 1 and 2 we need 200 gap and between term number > 2 and 3 we need 1000 gap. > i can only send key-value pair as String to solr(then solr > index fields in different types according to schema ) and i can > not find a way to build field content manually and put them > to solr. > in lucene i create a custom position increment class and i > use it to add custom gaps between terms in token stream. > -- Sincerely yours Mikhail Khludnev