Yokozuna unpredictable result count

Cezary Kosko koskocezarym at gmail.com
Thu Feb 19 10:35:12 EST 2015

I have the exact same issue with regular http search queries, so I guess
I'll just describe that part.

I've got a bucket of maps-of-sets, 2 of them are entityId_set and
timestamps_set. Its search index is called 'job' and it's only this bucket
that's indexed.

When I run


(that's a query that is supposed to return exactly one result), the
numFound field is either 0 or 1, it seems that I get both kinds of result
in 10 consecutive requests (and the timeAllowed parameter I wrote about, it
doesn't really help).

That's the way they're handled in the schema:

   <field name="entityId_set"      type="string"  indexed="true"
stored="false" multiValued="true" />
   <field name="timestamps_set"      type="string"  indexed="true"
stored="false" multiValued="true" />

Kind regards,

2015-02-19 16:04 GMT+01:00 Zeeshan Lakhani <zlakhani at basho.com>:

> Hello Cezary,
> Firstly, are you able to retrieve your search result consistently when not
> using doing a mapreduce job?
> To better help out, can you send a gist of the mapreduce code you’re
> running? Thanks.
> On Feb 18, 2015, at 9:13 PM, Cezary Kosko <koskocezarym at gmail.com> wrote:
> Hi,
> I've got a search index, and I'd like to run mapred job against that
> index. The thing is, for a search query that should return exactly one
> result, I sometimes (not always, yet not rarely) get none, i.e. the mapred
> job returns an empty list instead of, say, a list containing a single
> object. Did this only happen some time after uploading the data and then
> was consistently giving the right results, I wouldn't object. However, it's
> kind of an on-and-off situation - I get proper results, but then for a
> brief period of time I don't and so on.
> I've read on a solr doc page that specifying a timeAllowed parameter in
> the query can give it longer to gather results and help, but that can't be
> specified in a mapred definition, or can it?
> Is there anything else I can look for?
> The data I'm querying is of the CRDT map-of-sets type, should that be of
> any relevance.
> Kind regards,
> Cezary
> _______________________________________________
> riak-users mailing list
> riak-users at lists.basho.com
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20150219/91b0fa4d/attachment-0002.html>

More information about the riak-users mailing list