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 <sa...@veradocs.com> wrote:
> 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(object)
>
>         .withLocation(user_locaiton)
>
>         .withOption(StoreValue.Option.W, Quorum.allQuorum())
>
>         .build();
>
> RiakFuture<com.basho.riak.client.api.commands.kv.StoreValue.Response,
> Location> storeValueOpFuture = client.executeAsync(storeUserOp);
>
> storeValueOpFuture.await();
>
> logger.debug("Stroed Values for "+key+" in Bucket "+bucket);
>
> if(!storeValueOpFuture.isSuccess() || storeValueOpFuture.isCancelled() ||
> !storeValueOpFuture.isDone()){
>
> throw new
> InternalServerException(InternalServerException.ErrorCode.RIAK_EROR,"Exception
> while storing object against key "+key+" in Bucket "+bucket);
>
> }
>
>
> On Jan 9, 2015 9:42 PM, "Luke Bakken" <lbak...@basho.com> wrote:
>>
>> 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 <sa...@veradocs.com> wrote:
>> > 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 errors in solr log also. Not having any clues why nothing is indexed
>> > except the Riak fields. Here is how the fields are specified in solr
>> > schema,
>> > not attaching everything. We have multiple indexes and buckets for
>> > different
>> > pojos, but difined only one schema for all the indexes. Same schema is
>> > being
>> > configured for each index. Would that be an issue? For example for
>> > Access
>> > has seperate index and condition has seperate index. But both fields for
>> > both of them are defined in one schema and passed to both the indexes.
>> >
>> >   <!--  Acess fields -->
>> >
>> >     <field name="docId"  type="string"  indexed="true" stored="false" />
>> >
>> >     <field name="resourceName"   type="string"  indexed="true"
>> > stored="false" />
>> >
>> >     <field name="resourceId"   type="string"  indexed="true"
>> > stored="false"
>> > />
>> >
>> >     <field name="grantor"   type="string"  indexed="true" stored="false"
>> > />
>> >
>> >     <field name="policies"   type="string"  indexed="true"
>> > stored="false" />
>> >
>> >     <field name="grantTime"   type="access_dt"  indexed="true"
>> > stored="false" />
>> >
>> >     <field name="state"   type="string"  indexed="true" stored="false"
>> > />
>> >
>> >     <!--  Acess fields -->
>> >
>> >   <!-- AvailablePoclies -->
>> >
>> >   <field name="policiesId"   type="string"  indexed="true"
>> > stored="false" />
>> >
>> >   <field name="type"   type="string"  indexed="true" stored="false" />
>> >
>> >   <!-- AvailablePoclies -->
>> >
>> >   <!-- Condition -->
>> >
>> >   <field name="ruleId"   type="string"  indexed="true" stored="false" />
>> >
>> >   <field name="object"   type="string"  indexed="true" stored="false" />
>> >
>> >   <field name="verb"   type="string"  indexed="true" stored="false" />
>> >
>> >   <!-- Condition -->
>> >
>> > Thanks
>> > Santi
>> >
>> >
>> > _______________________________________________
>> > 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

Reply via email to