SOLR - indexing JSON

Damien Krotkine damien at krotkine.com
Tue Nov 17 03:13:19 EST 2015


Hi Joe,

I have a similar setup, and in my case, "indexed_s" is properly indexed. 
Are you sure that your data is really what you think it is ( i.e. real 
JSON, with the right mimetype, etc) ?

dams.

Joe Olson wrote:
> Using the default YZ index schema, I know I can index:
>
> dataset={
>     indexed_s:"Blah"
> }
>
> I also know I can index:
>
> dataset={
>     indexed_s:"Blah",
>     notindexed: 52
> }
>
> However, when I add:
>
> dataset={
>     indexed_s:"Blah",
>     notindexed: 52,
>     otherstuff:{"something":1, "something_else":2}
> }
>
> the indexing fails. Please note all I really want to index is field 
> 'indexed_s' - nothing else. Why would adding the sub dictionary 
> 'otherstuff' (not indexed) wreck the indexing of field 'indexed_s'? Is 
> there a way around this? I really want search to ignore 'otherstuff' - 
> and it should as it does not follow the *_* format.
>
> Thanks!
>
> _______________________________________________
> riak-users mailing list
> riak-users at lists.basho.com
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20151117/600e8021/attachment-0002.html>


More information about the riak-users mailing list