RE: sort by function error

2012-11-13 Thread Kuai, Ben
: Re: sort by function error I can't reproduce this with the example data. Here's an example of what I tried: http://localhost:8983/solr/query?q=*:*&sort=geodist(store,-32.123323,108.123323)+asc&group.field=inStock&group=true Perhaps this is an issue that's sin

Re: sort by function error

2012-11-12 Thread Yonik Seeley
__ > From: ysee...@gmail.com [ysee...@gmail.com] on behalf of Yonik Seeley > [yo...@lucidworks.com] > Sent: Tuesday, November 13, 2012 6:46 AM > To: solr-user@lucene.apache.org > Subject: Re: sort by function error > > On Mon, Nov 12, 2012 at 5:24 AM

RE: sort by function error

2012-11-12 Thread Kuai, Ben
r 13, 2012 6:46 AM To: solr-user@lucene.apache.org Subject: Re: sort by function error On Mon, Nov 12, 2012 at 5:24 AM, Kuai, Ben wrote: > more information, problem only happends when I have both sort by function > and grouping in query. I haven't been able to duplicate this with a

Re: sort by function error

2012-11-12 Thread Yonik Seeley
On Mon, Nov 12, 2012 at 5:24 AM, Kuai, Ben wrote: > more information, problem only happends when I have both sort by function > and grouping in query. I haven't been able to duplicate this with a few ad-hoc queries. Could you give your complete request (or at least all of the relevant grouping

RE: sort by function error

2012-11-11 Thread Kuai, Ben
more information, problem only happends when I have both sort by function and grouping in query. From: Kuai, Ben [ben.k...@sensis.com.au] Sent: Monday, November 12, 2012 2:12 PM To: solr-user@lucene.apache.org Subject: sort by function error Hi I am tr

Re: sort by function

2011-08-01 Thread Bill Bell
This seems like a bug. On 8/1/11 7:47 AM, "Jamie Johnson" wrote: >I've never tried but could it be sort=sum(field1,field2,field3)%20desc > >On Mon, Aug 1, 2011 at 9:43 AM, Gastone Penzo >wrote: >> Hi, >> i need to order by function like: >> >> sort=sum(field1,field2,field3)+desc >> >> but solr

Re: sort by function

2011-08-01 Thread Jamie Johnson
I've never tried but could it be sort=sum(field1,field2,field3)%20desc On Mon, Aug 1, 2011 at 9:43 AM, Gastone Penzo wrote: > Hi, > i need to order by function like: > > sort=sum(field1,field2,field3)+desc > > but solr gives me this error: > Missing sort order. > why is this possible? i read that

Re: Sort by function - 400 error

2011-04-15 Thread Yonik Seeley
On Fri, Apr 15, 2011 at 11:50 AM, Michael Owen wrote: > > Using solr 3.1. > When I do: >        sort=score desc > it works. >        sort=product(typeId,2) desc (typeId is a valid attribute in document) > it works. >        sort=product(score,typeId) desc > fails on 400 error? Also "sort=product(s

Re: sort by function problem

2011-04-06 Thread Yonik Seeley
The problem is "query(mothers day)" See http://wiki.apache.org/solr/FunctionQuery#query You can't directly include query syntax because the function parser wouldn't know how to get to the end of that syntax. You could either do "query($qq)" and then add a "qq=mothers day" to the request Or if

Re: Sort by function workaround for Solr 1.4

2010-05-28 Thread Chris Hostetter
: I have found a user comment at this page : https://issues.apache.org/jira/browse/SOLR-1297 (Enable sorting by function : query) where he has mentioned that there is a workaround "(main query)^0 : func(...)" that can be used to sort results by function without having to : install "SOLR-1297" patc

Re: Sort by function workaround for Solr 1.4

2010-05-28 Thread Martynas Miliauskas
The problem with using query functions is that I don't know how to equally scale similarity score and output of the function. What I mean is that query output would be in the range from 0..1 and function output would be in the range from 0..1. Well I think I do know how to scale function output to

Re: Sort by function workaround for Solr 1.4

2010-05-28 Thread Blargy
How would this be any different than simply using the function to alter the scoring of the final results and then sorting by score? -- View this message in context: http://lucene.472066.n3.nabble.com/Sort-by-function-workaround-for-Solr-1-4-tp851922p852471.html Sent from the Solr - User mailin

Re: sort by function

2010-05-24 Thread MitchK
Where is your query? You don't search for anything. The q-param is empty. You got two options (untested): remove the q-param or search for something special. I think removing is not a good idea. Instead search for *:* would retrive ALL results that match your filter-query. Kind regards - Mitch

Re: sort by function

2010-05-22 Thread MitchK
The score isn't computed when you try to access it. Furthermore your functionQuery needs to become part of the score. So what can you do??? The keyword is boosting. Do: {!func}product(0.88,rank)^x Where x is a boosting factor based on your experiences. Keep in mind that the result of your pro

Re: sort by function

2010-05-16 Thread MitchK
Forget what I said about the second case. The second case is a simple sort on your field. -- View this message in context: http://lucene.472066.n3.nabble.com/sort-by-function-tp814380p821252.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: sort by function

2010-05-16 Thread MitchK
Can you please do some math to show the principle? Do you want to do something like this: finalScore = score * rank finalScore = rank ??? If the first is the case, than it is done by default (have a look at the wiki-example for making more recent documents more relevant). If the second is the

Re: sort by function

2010-05-15 Thread MitchK
Can you provide us some more information on what you really want to do? Like the examples in the wiki said, the returned value of the function query is multiplied with the score - you can boost your returned value from the function query, if you like to do so. Kind regards - Mitch -- View this