SOLR - indexing JSON

Joe Olson technology at nododos.com
Mon Nov 16 14:08:02 EST 2015


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! 

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


More information about the riak-users mailing list