: 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
__
> 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
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
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
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
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
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
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
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
: 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
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
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
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
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
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.
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
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
17 matches
Mail list logo