In Riak, I have this basic user
schema with an accompanying user
index (I've omitted the riak-specific fields like _yz_id
etc.):
<?xml version="1.0" encoding="UTF-8" ?>
<schema name="user" version="1.5">
<fields>
<field name="email" type="string" indexed="true" stored="false"/>
<field name="name" type="string" indexed="true" stored="false"/>
<field name="groups" type="string" indexed="true" stored="false" multiValued="true"/>
<dynamicField name="*" type="ignored" indexed="false" stored="false" multiValued="true"/>
..riak-specific fields..
</fields>
<uniqueKey>_yz_id</uniqueKey>
<types>
<fieldType name="string" class="solr.StrField" sortMissingLast="true"/>
<fieldType name="_yz_str" class="solr.StrField" sortMissingLast="true"/>
<fieldtype name="ignored" class="solr.StrField"/>
</types>
</schema>
My user JSON looks like this:
{
"name" : "John Smith",
"email" : "jsmith@gmail.com",
"groups" : [
"3304cf79",
"abe155cf"
]
}
When I attempt to search using this query:
curl http://localhost:10018/search/query/user?wt=json&q=groups:3304cf79
I get no docs
back.
Why is this? Is the JSON extractor creating index entries for the groups?