You can check if your object has siblings by performing a key get, and see if 
two values return. If not, then it may be the index. Can you paste the response 
where you get two values?

Thanks,
Eric


On Nov 13, 2014, at 9:46 AM, Jason Ryan <[email protected]> wrote:

> Thanks Eric - I don't see the _yz_vtag returned in the search result set - so 
> not sure how to tell that?
> 
> 
> 
>       
> Jason Ryan
> VP Engineering
> 
> Trustev
> Real Time, Online Identity Verification
>  
> email: [email protected] 
> skype: jason_j_ryan
> web: www.trustev.com
> 
> Trustev Ltd, 2100 Cork Airport Business Park, Cork, Ireland. 
> 
> On 12 November 2014 17:53, Eric Redmond <[email protected]> wrote:
> 
> On Nov 11, 2014, at 3:55 AM, Jason Ryan <[email protected]> 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
>> [email protected]
>> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
> 
> 
> 
> 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
[email protected]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to