lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erick Erickson <erickerick...@gmail.com>
Subject Re: Solr Search Inconsistent result
Date Tue, 23 Dec 2014 17:24:04 GMT
This really sounds like you _think_ you have two shards
in a single collection, but really you don't. I admit I'm not
quite sure how it got that way, but...

So try this: Add &distrib=false to the query and ping each
of your servers separately. My bet is that you'll find they
have wildly varying numbers of docs, specifically
11 and 12,471.

Next 'tail -f' the logs and send the query again. You should
see each shard get a sub-query, if you do NOT see the
sub-query at one node for each shard you don't really have
a sharded collection (or there's some other problem)....

But this is not supposed to happen in SolrCloud. You haven't
told us anything about your setup, what version of Solr? Old-style
master/slave or SolrCloud? How did you create your collection?
How are you indexing to that collection? In short, please review:

http://wiki.apache.org/solr/UsingMailingLists

Best,
Erick

On Tue, Dec 23, 2014 at 7:57 AM, Ankit Jain <ankitjaincs06@gmail.com> wrote:
> Hi Ahmet,
>
> We are using the *java.util.UUID* to generate the unique id for each
> document.
>
> Thanks,
> Ankit Jain
>
> On Tue, Dec 23, 2014 at 1:32 PM, Ahmet Arslan <iorixxx@yahoo.com.invalid>
> wrote:
>
>> Hi Ankit,
>>
>> So you are using solr.UUIDUpdateProcessorFactory to pupolate unique keys?
>>
>> Ahmet
>>
>> On Tuesday, December 23, 2014 7:13 AM, Ankit Jain <ankitjaincs06@gmail.com>
>> wrote:
>> Hi Ahmet,
>>
>> Thanks for the response.
>> Document ID is unique because we are using *UUID* to generate the document
>> ID.
>>
>> Thanks,
>> Ankit
>>
>> On Tue, Dec 23, 2014 at 12:16 AM, Ahmet Arslan <iorixxx@yahoo.com.invalid>
>> wrote:
>>
>> > Hi,
>> >
>> > Do you happen to have documents with with unique id in different shards?
>> > When unique ids are not unique across shards, people see inconsistent
>> > results.
>> > Please see : http://find.searchhub.org/document/2814183511b5a52
>> >
>> > Ahmet
>> >
>> >
>> >
>> > On Monday, December 22, 2014 8:06 PM, Ankit Jain <
>> ankitjaincs06@gmail.com>
>> > wrote:
>> > Hi Ahmet,
>> >
>> > Thanks for the response.
>> > I am running this query from Solr Search UI. The number of shards for a
>> > collection is two.
>> >
>> > Thanks,
>> > Ankit
>> >
>> > On Mon, Dec 22, 2014 at 8:34 PM, Ahmet Arslan <iorixxx@yahoo.com.invalid
>> >
>> > wrote:
>> >
>> > > Hi,
>> > >
>> > > Is this sharded  query?
>> > >
>> > > Ahmet
>> > >
>> > >
>> > > On Monday, December 22, 2014 4:47 PM, Ankit Jain <
>> > ankitjaincs06@gmail.com>
>> > > wrote:
>> > > Hi All,
>> > >
>> > > We are getting inconsistent search result on searching on *multivalued*
>> > > field:
>> > >
>> > > *Input Query:*
>> > > ( t : [ 0 TO 1419245069253 ] )AND(_all:"impetus-i0111.impetus.co.in")
>> > >
>> > > The "_all" field is multivalued field.
>> > >
>> > > The above query is returning sometimes 11 records and sometimes 12471
>> > > records.
>> > >
>> > > Please help.
>> > >
>> > > Thanks,
>>
>> > > Ankit
>> > >
>> >
>> >
>> >
>> > --
>> > Thanks,
>> >
>> > Ankit Jain
>> >
>>
>>
>>
>> --
>> Thanks,
>> Ankit Jain
>>
>
>
>
> --
> Thanks,
> Ankit Jain

Mime
View raw message