There is no error as such.

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


Regards,
Rajani

On Mon, Nov 14, 2011 at 2:23 PM, Michael Kuhlmann <k...@solarier.de> wrote:

> Am 14.11.2011 09:33, schrieb rajini maski:
>
>> query :
>> http://localhost:8091/Group/**select?/&indent=on&q=studyid:**
>> 120&sort=studyidasc,groupid<http://localhost:8091/Group/select?/&indent=on&q=studyid:120&sort=studyidasc,groupid>
>> asc,subjectid asc&start=0&rows=100000
>>
>
> Is it a copy-and-paste error, or did you realls sort on "studyidasc"?
>
> I don't think you have a field studyidasc, and Solr should've given an
> exception that either asc or desc is missing.
>
> -Kuli
>

Reply via email to