SOLR Multivalue - set custom "space" between lines

69 views Asked by At

Can I set some SOLR Multivalue field to have custom word space between them.

for example

"SomeMultiValueField":[
   "Word1",
   "Word2",
   "Word3"
]

How can I set in the schema that "distance" between each line is for example 20 words - so

 "Word1 Word2"~3

will yeild nothing but

 "Word1 Word2"~20 

will contain result

1

There are 1 answers

1
MatsLindh On

Use the positionIncrementGap setting on your field to set the distance between each token in a multivalued field.

<fieldType name="someMultiValueFieldType" class="solr.TextField" positionIncrementGap="20">