Re: Riak Search having issues with custom schema

2015-01-09 Thread Santi Kumar
Cool I'll check that. Appreciate your timely help Luke On Jan 9, 2015 11:53 PM, "Luke Bakken" wrote: > Hi Santi, > > This means that the extractor is working. Your next step is to ensure > that the field names returned by the extractor match the field names > in your Solr schema. Also, please che

Re: Riak Search having issues with custom schema

2015-01-09 Thread Luke Bakken
Hi Santi, This means that the extractor is working. Your next step is to ensure that the field names returned by the extractor match the field names in your Solr schema. Also, please check to ensure that your schema has all required _yz_* fields. -- Luke Bakken Engineer lbak...@basho.com On Fri,

Re: Riak Search having issues with custom schema

2015-01-09 Thread Santi Kumar
I ran the command as shown below but I was getting wierd errors. In the place of @object.json, I used the actual json content. Output was curl -XPUT http://localhost:8098/search/extract -H 'Content-Type: application/json' --data-binary @{"id":null,"tenantId":"eb0a1917-9762-3dd3-a48f-a681d3061212

Re: Riak Search having issues with custom schema

2015-01-09 Thread Luke Bakken
Please run your JSON document through the extractor to ensure that it's being parsed correctly: http://docs.basho.com/riak/latest/dev/advanced/search/#Extractors curl -XPUT http://localhost:8098/search/extract \ -H 'Content-Type: application/json' \ --data-binary @object.json If that w

Re: Riak Search having issues with custom schema

2015-01-09 Thread Santi Kumar
Luke It's application/json Here is the curl command and output dump with content-type in bold curl -v http://127.0.0.1:8098/buckets/junit_MASTER-Policies/keys/2d29e759-8e30-499a-8ecc-98eb09eeaa9f * About to connect() to 127.0.0.1 port 8098 (#0) * Trying 127.0.0.1... * Adding handle: conn: 0x

Re: Riak Search having issues with custom schema

2015-01-09 Thread Luke Bakken
Can you retrieve the object using "curl" and let me know what the "Content-Type" header is when returned? -- Luke Bakken Engineer lbak...@basho.com On Fri, Jan 9, 2015 at 8:44 AM, Santi Kumar wrote: > No content type is specified explicitly. Directly object is passed to > StoreValue.Builder(). S

Re: Riak Search having issues with custom schema

2015-01-09 Thread Santi Kumar
No content type is specified explicitly. Directly object is passed to StoreValue.Builder(). Some where I read that pojo is extracted as json. Am I missing something? . Here is the code. Location user_locaiton = new Location(nameSpace, key); StoreValue storeUserOp = new StoreValue.Builder(

Re: Riak Search having issues with custom schema

2015-01-09 Thread Luke Bakken
How are you storing these objects? What "Content-Type" is being used? -- Luke Bakken Engineer lbak...@basho.com On Fri, Jan 9, 2015 at 7:04 AM, Santi Kumar wrote: > Hi, > We are having issues with Riak Search custom schema. Application has > multiple POJO's and we are using Java client to write

Riak Search having issues with custom schema

2015-01-09 Thread Santi Kumar
Hi, We are having issues with Riak Search custom schema. Application has multiple POJO's and we are using Java client to write into RIakKV. Configured custom solr schema with indexed fields from all POJOs. After adding the "Catch-All" field, solr is not indexing any fields from any of the Pojo. No