Link Walking with Riak-js returns unexpected results

vvsanil vvsanilkumar at gmail.com
Mon Feb 4 09:12:07 EST 2013


Link walking with Riak-js (http://riakjs.com) returns unexpected results. 
For a given tag name it returns all the linked keys instead of returning
only keys that have been tagged.

Example:

db.save('airlines', 'KLM', {fleet: 111, country: 'NL'}, { links:
  [{ bucket: 'flights', key: 'KLM-8098', tag: 'cargo' },
   { bucket: 'flights', key: 'KLM-1196', tag: 'passenger' }]
})

Now for the following query:
    db.walk('airlines', 'KLM', [["flights", "cargo"]])

Expected result is KLM-8098
Actual result is KLM-8098, KLM-1196 (i.e. all keys are fetched irrespective
of tag name)

Is anybody facing the same issue? Any solutions?

Thank you, 






--
View this message in context: http://riak-users.197444.n3.nabble.com/Link-Walking-with-Riak-js-returns-unexpected-results-tp4026733.html
Sent from the Riak Users mailing list archive at Nabble.com.




More information about the riak-users mailing list