lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Cline <pcl...@pobox.upenn.edu>
Subject Re: facet.offset with facet.sort=lex and shards problem?
Date Thu, 24 Feb 2011 19:58:08 GMT
On 02/24/2011 12:37 PM, Yonik Seeley wrote:
> On Thu, Feb 24, 2011 at 10:57 AM, Peter Cline<pcline@pobox.upenn.edu>  wrote:
>> Hi all,
>>
>> I'm having a problem using distributed search in conjunction with the
>> facet.offset parameter and lexical facet value sorting.  Is there an
>> incompatibility between these?  I'm using Solr 1.41.
>>
>> I have a facet with ~100k values in one index.  I'm wanting to page through
>> them alphabetically.  When not using distributed search, everything works
>> just fine, and very quick.  A query like this works, returning 10 facet
>> values starting at the 50,001st:
>>
>> http://server:port/solr/select/?q=*:*&facet.field=subject_full_facet&facet=true&f.subject_full_facet.facet.limit=10&facet.sort=lex&facet.offset=50000
>> # Butterflies - Indiana !
>>
>> However, if I enable distributed search, using a single shard (which is the
>> same index), I get no facet values returned.
>>
>> http://server:port/solr/select/?q=*:*&facet.field=subject_full_facet&facet=true&f.subject_full_facet.facet.limit=10&facet.sort=lex&facet.offset=50000&shards=server:port/solr
>> # empty list :(
>>
>> Doing a little more testing, I'm finding that with sharding I often get an
>> empty list any time the facet.offset>= facet.limit.  Also, by example, if I
>> do facet.limit=100 and facet.offset=90, I get 10 facet values.  Doing so
>> without sharding, I get the expected (by me, at least) 100 values (starting
>> at what would normally be the 91st).
>>
>> Can anybody shed any light on this for me?
> Sounds like a bug.
> Have you tried a 3x or trunk development build to see if it's fixed there?
>
> -Yonik
> http://lucidimagination.com

I haven't.  I'll try the current trunk and get back to you.

Thanks,
Peter

Mime
View raw message