lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shalin Shekhar Mangar (JIRA)" <j...@apache.org>
Subject [jira] Commented: (SOLR-966) Enhance the map() function to take in multiple tuples
Date Sat, 17 Jan 2009 17:40:59 GMT

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

Shalin Shekhar Mangar commented on SOLR-966:
--------------------------------------------

I'm using the map function (FunctionQuery).

Consider the following (hypothetical) use-case:
I want to boost up listings of a certain category over listings of another category. Say for
example, "SUV" and "Sedan". For each category, I've indexed a integer field, say "SUV" = 1
and "Sedan" = 2. Now I'm trying to boost SUVs over Sedans through function queries. This is
just one of the many different boosts I need to apply.

So I use q=_val_:map(category, 1, 1, 3) _val_:map(category, 2, 2, 1). The priorities of the
categories are not fixed i.e. they change at runtime. I cannot use a sort because of the many
different boosting criteria I have. I cannot use the normal boosts because I don't want TF/IDF
influencing the scores.

I hope the description makes sense.

> Enhance the map() function to take in multiple tuples
> -----------------------------------------------------
>
>                 Key: SOLR-966
>                 URL: https://issues.apache.org/jira/browse/SOLR-966
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: Noble Paul
>             Fix For: 1.4
>
>
> The map function currently takes in only one min,max target. This makes it impossible
to map it to multiple values . 
> It should be possible to pass on multiple sets of values
> example
> {code}
> map(x,0,0,10,1,1,20,2,2,50)
> {code}
> it should allow an n number of float values (where n%3 = 0)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message