Hi all, I did few steps forward but still struggling in how read the field
value inside my custom DoubleValuesSource

                    final CustomValuesSource valuesSource = new
CustomValuesSource(data, req.getSchema().getField(field));
                    return FunctionScoreQuery.boostByValue(query,
valuesSource);

CustomValuesSource extends DoubleValuesSource

But, if I did right, I'm struggling with the getValues code.

public DoubleValues getValues(LeafReaderContext ctx, DoubleValues scores)
throws IOException {

The field I have to read is a binary field, and I can't find an example how
to read a binary field from LeafReaderContext

Any help appreciated.

Best regards,
Vincenzo

On Thu, Jul 2, 2020 at 1:19 PM Vincenzo D'Amore <v.dam...@gmail.com> wrote:

> Hi Mikhail, I was just trying to understand how to extend
> DoubleValuesSource class, now I'm looking around to find an inspiring
> example...
>
> On Thu, Jul 2, 2020 at 12:55 PM Mikhail Khludnev <m...@apache.org> wrote:
>
>> Hi, Vincenzo.
>>
>> Have you tried to implement DoubleValuesSource ?
>>
>> On Thu, Jul 2, 2020 at 9:58 AM Vincenzo D'Amore <v.dam...@gmail.com>
>> wrote:
>>
>> > Again, @Federico Pici or anybody, did you figure out how to
>> > port CustomScoreQuery in Solr8?
>> >
>> > On Tue, Jul 23, 2019 at 1:05 AM Xiaofei <m...@xiaofei.ca> wrote:
>> >
>> > > @Federico Pici, did you figure out on how to produce customized score
>> in
>> > > Solr
>> > > 8?
>> > >
>> > >
>> > >
>> > > --
>> > > Sent from:
>> > > http://lucene.472066.n3.nabble.com/Lucene-Java-Users-f532864.html
>> > >
>> > > ---------------------------------------------------------------------
>> > > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
>> > > For additional commands, e-mail: java-user-h...@lucene.apache.org
>> > >
>> > >
>> >
>> > --
>> > Vincenzo D'Amore
>> >
>>
>>
>> --
>> Sincerely yours
>> Mikhail Khludnev
>>
>
>
> --
> Vincenzo D'Amore
>
>

-- 
Vincenzo D'Amore

Reply via email to