[jira] Commented: (SOLR-1297) Enable sorting by Function Query

2010-12-13 Thread Hoss Man (JIRA)

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

Hoss Man commented on SOLR-1297:


Sorry, finally circled back on my SOLR-1297.better.field.support.patch ...

trunk: Committed revision 1045253.
3x: Committed revision 1045256.


> Enable sorting by Function Query
> 
>
> Key: SOLR-1297
> URL: https://issues.apache.org/jira/browse/SOLR-1297
> 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.better.field.support.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: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] Commented: (SOLR-1297) Enable sorting by Function Query

2010-12-02 Thread Grant Ingersoll (JIRA)

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

Grant Ingersoll commented on SOLR-1297:
---

Hoss, you going to commit?  Please backport to 3.x, too, as all of the other 
stuff has been.

> Enable sorting by Function Query
> 
>
> Key: SOLR-1297
> URL: https://issues.apache.org/jira/browse/SOLR-1297
> 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.better.field.support.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: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] Commented: (SOLR-1297) Enable sorting by Function Query

2010-11-04 Thread Yonik Seeley (JIRA)

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

Yonik Seeley commented on SOLR-1297:


Last patch looks good (aside from the javadoc typos ;-)

> Enable sorting by Function Query
> 
>
> Key: SOLR-1297
> URL: https://issues.apache.org/jira/browse/SOLR-1297
> 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.better.field.support.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: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] Commented: (SOLR-1297) Enable sorting by Function Query

2010-09-30 Thread Hoss Man (JIRA)

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

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) ...

{noformat}
?q=*:*&fl=price,id&foo=0&sort={!foo=2}sum($foo,0)+asc,+mul($foo,price)+desc,+id+asc
{noformat}

...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...

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

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

{noformat}
mul($foo,price) desc
{noformat}

...so 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: https://issues.apache.org/jira/browse/SOLR-1297
> 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.better.field.support.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: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] Commented: (SOLR-1297) Enable sorting by Function Query

2010-09-13 Thread Scott Kister (JIRA)

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

Scott Kister commented on SOLR-1297:


Bug report on this feature, if there is a wildcard entry in schema.xml such as 
the following.




then this feature does not work and an error is returned, ie

GET 'http://localhost:8983/solr/select?q=*:*&sort=sum(1,2)+asc'
Error 400 can not sort on unindexed field: sum(1,2)


> Enable sorting by Function Query
> 
>
> Key: SOLR-1297
> URL: https://issues.apache.org/jira/browse/SOLR-1297
> 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
>
>
> 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: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org