I'm trying to get my head around whether or not this is a configuration
issue or something else. In dspace 3.2 (using solr), when I browse a
collection by date, it is in descending order by default (by client
request).
If the user chooses to jump to a particular start date, say "2004", a solr
query is issued that looks something like this:
<response>
<responseHeader>
<status>0</status>
<QTime>1</QTime>
<lst name="params">
<str name="q">bi_sort_1_sort: ["2004" TO *]</str>
<arr name="fq">
<str>NOT(withdrawn:true)</str>
<str>location.comm:12</str>
<str>NOT(withdrawn:true)</str>
<str>search.resourcetype:2</str>
<str>read:(g0)</str>
</arr>
<str name="start">0</str>
<str name="rows">0</str>
<str name="wt">javabin</str>
<str name="version">2</str>
</lst>
</responseHeader>
<result name="response" numFound="271" start="0"/>
</response>
Which tells me that there are 271 records with bi_sort_1_sort >= "2004"
So far, so good. The second step issues the following query, using the
numFound attribute of the 1st query:
<responseHeader>
<status>0</status>
<QTime>2</QTime>
<lst name="params">
<str name="fl">bi_sort_1_sort</str>
<str name="q">*:*</str>
<arr name="fq">
<str>NOT(withdrawn:true)</str>
<str>location.comm:12</str>
<str>NOT(withdrawn:true)</str>
<str>search.resourcetype:2</str>
<str>read:(g0)</str>
</arr>
<str name="start">271</str>
<str name="rows">20</str>
<str name="sort">bi_sort_1_sort desc</str>
<str name="wt">javabin</str>
<str name="version">2</str>
</lst>
</responseHeader>
which says about the same thing, except to start at the 272nd record which
effectively eats up those items with a
bi_sort_1_sort of 2004 and up and starts displaying records beginning with
2003-12-31 and lower; clearly not what the user expects.
When the sort order is reversed, everything works fine.
Is this a bug, or am I misunderstanding or mis-configuring something?
Thanks for any pointers!
Bill
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette