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
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.
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
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
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
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
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
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
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
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
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
11 matches
Mail list logo