lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Smiley (JIRA)" <>
Subject [jira] [Commented] (LUCENE-7623) Add FunctionScoreQuery and FunctionMatchQuery
Date Wed, 11 Jan 2017 04:08:58 GMT


David Smiley commented on LUCENE-7623:

Looks alright but I didn't review thoroughly. I noticed one problem: {{TwoPhaseIterator.matchCost}}
as implemented here isn't right.  It's supposed to be the match cost for a _single document_,
thus returning maxDocs is definitely not the right response.  See the javadocs.  Unfortunately
since DoubleValueSource has no similar cost, you can't propagate... so might as well return
some constant.  Judging from existing impls... anywhere between 10 and 100 is good to me.

> Add FunctionScoreQuery and FunctionMatchQuery
> ---------------------------------------------
>                 Key: LUCENE-7623
>                 URL:
>             Project: Lucene - Core
>          Issue Type: New Feature
>            Reporter: Alan Woodward
>            Assignee: Alan Woodward
>            Priority: Minor
>         Attachments: LUCENE-7623.patch, LUCENE-7623.patch
> We should update the various function scoring queries to use the new DoubleValues API

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message