Re: SOLR - indexing JSON

2015-11-17 Thread Dmitri Zagidulin
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 
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@lists.basho.comhttp://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
>
>
___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


Re: SOLR - indexing JSON

2015-11-17 Thread Damien Krotkine

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@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


SOLR - indexing JSON

2015-11-16 Thread Joe Olson
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@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com