SOLR - indexing JSON

Dmitri Zagidulin dzagidulin at basho.com
Tue Nov 17 11:02:46 EST 2015


Hi Joe,

My other suggestion (aside from checking the things Damien mentioned) is --
take a look at the solr.log in the riak error log directory, it often
provides clues for when objects are invalid and don't index.


On Tue, Nov 17, 2015 at 3:13 AM, Damien Krotkine <damien at krotkine.com>
wrote:

> 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 listriak-users at lists.basho.comhttp://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>
>
>
> _______________________________________________
> 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/1ff55441/attachment-0002.html>


More information about the riak-users mailing list