lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ahmet Arslan <iori...@yahoo.com>
Subject Re: Solr 3.3 Sorting is not working for long fields
Date Mon, 14 Nov 2011 13:53:53 GMT
> When I do a basic sort on *long *field. the sort doesn't
> happen.
> 
> 
> Query is :
> 
> -<http://blr-ws-195:8091/Solr3.3/select/?q=2%3A104+AND+526%3A27747&version=2.2&start=0&rows=10&indent=on&sort=469%20asc&fl=469#>
> <lst name="*responseHeader*">
>   <int name="*status*">0</int>
>   <int name="*QTime*">3</int>
>  -<http://blr-ws-195:8091/Solr3.3/select/?q=2%3A104+AND+526%3A27747&version=2.2&start=0&rows=10&indent=on&sort=469%20asc&fl=469#>
> <lst name="*params*">
>   <str name="*fl*">studyid</str>
>   <str name="*sort*">studyid asc</str>
>   <str name="*indent*">on</str>
>   <str name="*start*">0</str>
>   <str name="*q*">*:*</str>
>   <str name="*rows*">100</str>
>   <str name="*version*">2.2</str>
>  </lst>
>  </lst>
> 
> 
> 
> 
> <response>
> - <result name="response" numFound="216" start="0">
> - <doc>
>   <long name="studyid">53</long >
>   </doc>
> - <doc>
>   <long name="studyid">18</int>
>   </doc>
> - <doc>
>   <long name="studyid">14</long >
>   </doc>
> - <doc>
>   <int name="studyid">11</long >
>   </doc>
> - <doc>
>   <long name="studyid">7</long >
>   </doc>
> - <doc>
>   <int name="studyid">63</int>
>   </doc>
> - <doc>
>   <int name="studyid">35</long >
>   </doc>
> - <doc>
>   <int name="studyid">70</long >
>   </doc>
> - <doc>
>   <long name="studyid">91</long >
>   </doc>
> - <doc>
>   <int name="studyid">97</int>
>   </doc>
>   </result>
>   </response>
> 
> 
> The same case works with Solr1.4.1 but it is not working
> solr 3.3

Can you try with the following type?

  <fieldType name="tlong" class="solr.TrieLongField" precisionStep="8" omitNorms="true"
positionIncrementGap="0"/>

And studyid must be marked as indexed="true".

Mime
View raw message