On Wed, Nov 26, 2008 at 5:43 PM, Naomi Dushay <[EMAIL PROTECTED]> wrote: > sortCallNum["A123 B34 1970" TO *]&rows=10.
If you really just want to get call numbers X through X+10, then you are in luck: https://issues.apache.org/jira/browse/SOLR-877 http://wiki.apache.org/solr/TermsComponent But looking at what Hoss wrote you might actually want the first 10 results sorted by field myField, that meet the restriction that callNumer>X (a filter). If so, this is a long standing problem that isn't solved yet (slowness of range queries with many terms), but we do know methods of fixing it, most involving indexing prefixes. -Yonik > > Call numbers are squirrelly, so we can't predict the string that will > appropriately grab at least 10 subsequent documents. They are certainly not > consecutive! > > so from > A123 B34 1970 > > we're unable to predict if any of these will return at least 10 results: > > A123 B34 1980 or > A123 B34 V.8 or > A123 B44 or > A123 B67 or > A123 C27 or > A124* or > A22* or > AA* or > > You get the idea. > > I have not figured out a way to efficiently query for "the next 10 call > numbers in sort order". I have also mucked about with the cache > initialization, but that's not working either: > > <listener event="firstSearcher" class="solr.QuerySenderListener"> > <arr name="queries"> > <!-- populate query result cache for sorted queries --> > <lst> > <str name="q">shelfkey:[0 TO *]</str> > <str name="sort">shelfkey asc</str> > </lst> > </arr> > > Can anyone help me with this? > > - Naomi > >