The default sort is on relevance. I want to give an option to users to sort the 
results by date (latest on top). 
This works fine for queries which have few results (upto 100). However, it 
brings inaccurate results as soon as the figure reaches 1000s.
I am trying to limit the sorting to top few results only. Hoping through frange 
I will be able to define the lower limit of relevance score and get better 
results on date sort.

Is there any other way to do this?

Hope its clear.
- Amit

On 10-Aug-2011, at 7:52 PM, simon wrote:

> I meant the frange query, of course
> 
> On Wed, Aug 10, 2011 at 10:21 AM, simon <mtnes...@gmail.com> wrote:
>> Could you tell us what you're trying to achieve with the range query ?
>> It's not clear.
>> 
>> -Simon
>> 
>> On Wed, Aug 10, 2011 at 5:57 AM, Amit Sawhney <sawhney.a...@gmail.com> wrote:
>>> Hi All,
>>> 
>>> I am trying to sort the results on a unix timestamp using this query.
>>> 
>>> http://url.com:8983/solr/db/select/?indent=on&version=2.1&q={!frange%20l=0.25}query($qq)&qq=nokia&sort=unix-timestamp%20desc&start=0&rows=10&qt=dismax&wt=dismax&fl=*,score&hl=on&hl.snippets=1
>>> 
>>> When I run this query, it says 'no field name specified in query and no 
>>> defaultSearchField defined in schema.xml'
>>> 
>>> As soon as I remove the frange query and run this, it starts working fine.
>>> 
>>> http://url.com:8983/solr/db/select/?indent=on&version=2.1&q=nokia&sort=unix-timestamp%20desc&start=0&rows=10&qt=dismax&wt=dismax&fl=*,score&hl=on&hl.snippets=1
>>> 
>>> Any pointers?
>>> 
>>> 
>>> Thanks,
>>> Amit
>> 

Reply via email to