lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-1871) Function Query "map" variant that allows "target" to be an arbitrary ValueSource
Date Mon, 02 Dec 2013 08:36:35 GMT

    [ https://issues.apache.org/jira/browse/SOLR-1871?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13836366#comment-13836366
] 

ASF subversion and git services commented on SOLR-1871:
-------------------------------------------------------

Commit 1546927 from shalin@apache.org in branch 'dev/branches/branch_4x'
[ https://svn.apache.org/r1546927 ]

SOLR-1871: The 'map' function query accepts a ValueSource as target and default value

> Function Query "map" variant that allows "target" to be an arbitrary ValueSource
> --------------------------------------------------------------------------------
>
>                 Key: SOLR-1871
>                 URL: https://issues.apache.org/jira/browse/SOLR-1871
>             Project: Solr
>          Issue Type: Improvement
>          Components: search
>    Affects Versions: 1.4
>            Reporter: Chris Harris
>            Assignee: Shalin Shekhar Mangar
>             Fix For: 5.0, 4.7
>
>         Attachments: ASF.LICENSE.NOT.GRANTED--SOLR-1871.patch, SOLR-1871.patch, SOLR-1871.patch,
SOLR-1871.patch, SOLR-1871.patch
>
>
> Currently, as documented at http://wiki.apache.org/solr/FunctionQuery#map, the "target"
of a map must be a floating point constant. I propose that you should have at least the option
of doing a map where the target is an arbitrary ValueSource.
> The particular use case that inspired this is that I want to be able to control how missing
date fields affected boosting. In particular, I want to be able to use something like this
in my function queries:
> {code}
> map(mydatefield,0,0,ms(NOW))
> {code}
> But this might have other uses.
> I'll attach an initial implementation.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message