lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gal Nitzan" <gal.nitza...@gmail.com>
Subject sorting problem
Date Tue, 08 May 2007 09:15:57 GMT
Hi,

I have 2 fields which I would like to sort by, one is a "date" field and the 
other is "sint".

My query tries to search all entries which their ctype is video sorted by 
tstamp descending and then sorted by popularity:

q=ctype:video;tstamp desc;popularity desc&fl=tstamp,popularity

However the results returned are sorted only by the tstamp.

<doc>
<int name="popularity">0</int>
<date name="tstamp">2007-05-08T12:58:45,023Z</date>
</doc>
<doc>
<int name="popularity">0</int>
<date name="tstamp">2007-05-08T12:58:39,062Z</date>
</doc>
<doc>
<int name="popularity">4923</int>
<date name="tstamp">2007-05-08T12:58:37,710Z</date>
</doc>
<doc>
<int name="popularity">0</int>
<date name="tstamp">2007-05-08T12:58:37,651Z</date>
</doc>

Any idea what I'm missing?

TIA,

Gal




Mime
View raw message