thanks for your guides Mikhail.
in multiple values i can only set static positionIncrementGap but
considering my description i need dynamic gap between terms and
i don't know how to do it.

i can only pass String value for fields like this:

SolrInputDocument sDoc = new SolrInputDocument();
sDoc.setField("a", "a1");

is there any way to create luceneDocument and commit it to solr
with solrj ? or put some Other Type of Value such as TextField instead
of String?

On Sun, Dec 17, 2017 at 10:43 AM, Mikhail Khludnev <m...@apache.org> wrote:
> 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

Reply via email to