On Nov 11, 2014, at 3:55 AM, Jason Ryan <jason.r...@trustev.com> wrote:
> Hi all, > > I have some quick (hopefully!) questions around Riak search. > > 1. I'm getting multiple documents returned in the search results for a query > - which I assume is based on the n_val of my bucket as I tried to change the > search index to have a n_val of 1 but got an error that it needed to match > the bucket n_val - is this expected behaviour, i.e. will the search return > multiples based from the n_val, and I need to code for that? You should only get multiple results if your values have siblings. You can tell if they're siblings because the duplicates will have different _yz_vtags. > 2. What is best practice if we required to change an index (e.g. adding a new > indexed field) and wanted to re-generate the index for a particular bucket? Currently, that requires you rewriting your dataset again. However, there is a PR in the works to allow incremental schema changes, as well as allowing AAE to automatically update indexed documented based on schema changes: https://github.com/basho/yokozuna/pull/427 > Thanks! > Jason > > > > This message is for the named person's use only. If you received this message > in error, please immediately delete it and all copies and notify the sender. > You must not, directly or indirectly, use, disclose, distribute, print, or > copy any part of this message if you are not the intended recipient. Any > views expressed in this message are those of the individual sender and not > Trustev Ltd. Trustev is registered in Ireland No. 516425 and trades from 2100 > Cork Airport Business Park, Cork, Ireland. > > _______________________________________________ > riak-users mailing list > riak-users@lists.basho.com > http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
_______________________________________________ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com