lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hoss Man (JIRA)" <>
Subject [jira] Commented: (SOLR-1297) Enable sorting by Function Query
Date Fri, 01 Oct 2010 00:38:35 GMT


Hoss Man commented on SOLR-1297:

In dependent of my previous patch, there is one other nuance i discoverd today that i wanted
to bring up...

The way localparams are currently supported in the sort param, they are independent for each
"segment" of the sort.  The easiest way to make sense of this is to look at the following
contrived example URL (you can try it against the example data on trunk) ...


...that URL (currently) results in a sort which is equivalent to "id asc" .. the localParam
value of "foo=2" at the begining of the sort param is only in scope for the first segment...

{!foo=2}sum($foo,0) asc

..the second segment of the sort param winds up getting the "global" value of "foo=0" ...

mul($foo,price) desc
{noformat} it becomes a NOOP (multiplication by zero)

This limited scoping of localParams in the sort param seems counter intuitive to me.  I don't
know that i have a better suggestion for how it *should* work, but i wanted to draw attention
to it in case other folks had any ideas

> Enable sorting by Function Query
> --------------------------------
>                 Key: SOLR-1297
>                 URL:
>             Project: Solr
>          Issue Type: New Feature
>            Reporter: Grant Ingersoll
>            Assignee: Grant Ingersoll
>            Priority: Minor
>             Fix For: 1.5, 3.1, 4.0
>         Attachments: SOLR-1297-2.patch,, SOLR-1297.patch,
SOLR-1297.patch, SOLR-1297.patch
> It would be nice if one could sort by FunctionQuery.  See also SOLR-773, where this was
first mentioned by Yonik as part of the generic solution to geo-search

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

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

View raw message