Questions tagged [riak-search]

60 questions
1
vote
1 answer

Riak, How to delete an index that is already in use?

I am willing to delete an index that is already in use on a bucket, using python library: client.delete_search_index(index_name) But i get this error: Can't delete index with associate buckets [{<<"my_bucket_type">>,<<"my_bucket">>}]' I get it, I…
Guibod
  • 371
  • 1
  • 3
  • 13
1
vote
2 answers

Riak Yokuzuna Schema upload , create index and search query always result in error 60,56,27

public class RiakSearch { public static final String RIAK_SERVER = "10.11.172.17"; private static RiakCluster setUpCluster() throws UnknownHostException { // This example will use only one node listening on localhost:10017 RiakNode node =…
1
vote
1 answer

worker_limit_reached on parallel map reduce jobs

I have 50 hosts trying to run the map reduce job below on Riak. I am getting the error below where some of the hosts complain about the worker_limit being reached. Looking for some insights on whether I can tune the system to avoid this error?…
GSR
  • 11
  • 1
1
vote
1 answer

Multiple queries in Riak

I am querying my Riak database through the HTTP API like so: /select?q=+build:2702168+hypervisors:500&q.op=and&wt=json&sort=tstart_int%20desc" but all other query parameters than the first one gets ignored. So in this case, it returns all entries…
Daniel Larsson
  • 6,278
  • 5
  • 44
  • 82
1
vote
1 answer

Riak: search by key prefix

I'm a newcomer to Riak and I've been reading this chapter from riak's docs. It goes to show that by adding structure information to buckets and keys one can overcome some of the limitations of key/value operations. Though the article states an…
1
vote
1 answer

Is it possible to force Riak 2.0 to re-index data after changing a schema, without reloading the data?

I have a Riak Search index of about 5 million docs that I would like to experiment with making changes to the schema. Is it possible to have Riak re-index that data without having to insert those documents again? Does this happen automatically when…
chaimp
  • 16,897
  • 16
  • 53
  • 86
1
vote
1 answer

Riak Data Types and Search

I'm using Riak 2.0.2 and Riak-Erlang-Client 2.0.0 The documentation suggest that "Search is preferred for querying", here the full excerpt : In general, you should consider Search to be the default choice for nearly all querying needs that go…
toopay
  • 1,635
  • 11
  • 18
1
vote
1 answer

Riak: Feed MR with search result + apply limit

I know it's possible to feed Riak map/reduce job with results of Search. I have a bucket of items on which I want to search. Then, I need to process the top, let's say 100, with map/reduce. The naive solution is searching for the keyword, applying…
Pavel S.
  • 11,892
  • 18
  • 75
  • 113
1
vote
1 answer

Riak-How to filter objects of one bucket based on another bucket?

I am using a 3 node Riak Cluster with a number of buckets. I have a bucket called user_account which has user information like name, address etc. user_account = {"id" => 1,"name"=>"abc", "address"=>"xyz"} There is another bucket user_metadata…
Infant Dev
  • 1,659
  • 8
  • 24
  • 48
1
vote
1 answer

How to pass initial value to a reduce phase in riak?

I am trying to write a riak map reduce using riak-ruby-client. Javascript reduce function looks like this: arr.reduce(callback,[initialValue]); I am doing something like this: map_reduce = Riak::MapReduce.new(Ripple.client) map_reduce.add(bucket)…
Infant Dev
  • 1,659
  • 8
  • 24
  • 48
1
vote
3 answers

java.io.EOFException while retrieving data from Riak

I am trying to execute a simple fetching of data as a string from Riak. We are trying to execute a sample code and we are getting the error. It's a Java code written for fetching data from Riak I made sure riak is running by Sudo Riak Start Error as…
Dark Knight
  • 503
  • 2
  • 12
  • 25
1
vote
1 answer

Riak inserting a list and querying a list

I was wondering if there was a effecient way of handling arrays/lists in Riak. Right now I'm storing the whole array as a string and searching the string to find out if a element exists in the array. ID (key) : int[] (Value) And also How do I…
0
votes
1 answer

Riak Map/Reduce enableForSearch() error

I'm trying to use the Riak Java Client in an application, however I'm facing some errors. What I need is to perform a Riak Search query as input for a Map/Reduce. According to the official tutorial the search property must be enabled in the Bucket.…
0
votes
1 answer

Riak & memory backend: handling expiration and pruning

I am wondering what the best strategy is to manage expiration of session-related data stored in a memory Riak bucket type. It seems that this backend supports ttl (http://docs.basho.com/riak/kv/2.2.3/setup/planning/backend/memory/#ttl and…
Tangui
  • 3,626
  • 2
  • 26
  • 28
0
votes
1 answer

Riak search on CRDT data types - memory backend

I am using riak2.2.3, and trying to search in a map bucket type, but nothing is ever returned. I've configured a bucket type "dist_cache" on the memory backend: # riak-admin bucket-type status dist_cache dist_cache is active active:…
Tangui
  • 3,626
  • 2
  • 26
  • 28