Re: index fields with custom gaps between terms

2017-12-19 Thread Shawn Heisey
On 12/19/2017 4:16 AM, Amin Raeiszadeh wrote: i solve this problem by developing of DocumentBuilder.toDocument() and DocumentBuilder.addField() functions.i don't use multiValue feature and in shcema i change the condition of check for multi value fields(skip it in colde) then in necessary positio

Re: index fields with custom gaps between terms

2017-12-19 Thread Amin Raeiszadeh
i solve this problem by developing of DocumentBuilder.toDocument() and DocumentBuilder.addField() functions.i don't use multiValue feature and in shcema i change the condition of check for multi value fields(skip it in colde) then in necessary position i put my custom gap as a value for textField.

Re: index fields with custom gaps between terms

2017-12-18 Thread Amin Raeiszadeh
Shawn i think your way is good. i will study more about it. thanks, Amin On Tue, Dec 19, 2017 at 9:57 AM, Amin Raeiszadeh wrote: > Erick, in your example if first entry contains 10 term then i need to > start the second entry position from 100 not from 110. > thanks, > Amin > > On Tue, Dec 19, 2

Re: index fields with custom gaps between terms

2017-12-18 Thread Amin Raeiszadeh
Erick, in your example if first entry contains 10 term then i need to start the second entry position from 100 not from 110. thanks, Amin On Tue, Dec 19, 2017 at 3:25 AM, Shawn Heisey wrote: > On 12/18/2017 12:29 AM, Amin Raeiszadeh wrote: >> thanks too much Erick and mikhail. >> i change SloppyP

Re: index fields with custom gaps between terms

2017-12-18 Thread Shawn Heisey
On 12/18/2017 12:29 AM, Amin Raeiszadeh wrote: > thanks too much Erick and mikhail. > i change SloppyPhraseScorer class for my custom behavior with some fields. > so i need to index some fields with customized gap between terms of fields. > i'm not profession with solr and i think with schema.xml o

Re: index fields with custom gaps between terms

2017-12-18 Thread Erick Erickson
You probably are aware of this already, but I want to be sure. positionIncrementGap is _only_ applied between the last term of one multiValued entry and the first term of the next. So say I have a text field and the input looks like: some stuff other words and my positionIncrementGap is

Re: index fields with custom gaps between terms

2017-12-17 Thread Amin Raeiszadeh
thanks too much Erick and mikhail. i change SloppyPhraseScorer class for my custom behavior with some fields. so i need to index some fields with customized gap between terms of fields. i'm not profession with solr and i think with schema.xml only i can set fixed gap increment between terms of fiel

Re: index fields with custom gaps between terms

2017-12-17 Thread Mikhail Khludnev
On Sun, Dec 17, 2017 at 11:16 AM, Amin Raeiszadeh wrote: > 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. > There is a jira ticket regarding it, but

Re: index fields with custom gaps between terms

2017-12-17 Thread Erick Erickson
You might be able to do something with PreAnalyzedField, but I confess I've never really dug into it. Best, Erick On Sun, Dec 17, 2017 at 12:16 AM, Amin Raeiszadeh wrote: > thanks for your guides Mikhail. > in multiple values i can only set static positionIncrementGap but > considering my descri

Re: index fields with custom gaps between terms

2017-12-17 Thread Amin Raeiszadeh
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.se

Re: index fields with custom gaps between terms

2017-12-16 Thread Mikhail Khludnev
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 wrote: > ho