Monday, January 1, 2018
cassandra Indexing and querying CQL3 collection map in Solr
cassandra Indexing and querying CQL3 collection map in Solr
cassandra - Indexing and querying CQL3 collection map in Solr -
the next documentation page datastax states:
dse search maps collections follows: collection list , set: multi-valued field collection maps: dynamic field name of dynamic field minus wildcard map name. example, map column name dyna* mapped dyna. inner keys mapped total field name.
the lastly statement not clear me. how should field definition like? assuming have collection map defined scores map<int,int>
in cql3, next field definition correct?
<field name="scores*" type="int" indexed="true" stored="true"/>
and how query this? assuming maps value {201409 : 89, 201410 : 67}
, want filter on inner field 201410, next correct?:
fq=scores201410:[80 *]
the name of dynamic field minus wildcard map name means next dynamic field corresponds next map name in cql:
dynamic field: <dynamicfield name="lang_*" . . . >
map name: create table hits ( . . .lang_ map<text, text>, . . .);
in example, dynamic field name = scores_*.
the query depends on values insert fields. if insert these values cql scores_ column:
{ scores_100 : 5000} { scores_200 : 10000} { scores_100 : 300}
then, think query scores_100 in collection be:
http://:8983/solr/mykeyspace.myscores/select?q=scores_100%3a*&wt=xml&indent=true
solr cassandra cql3 datastax-enterprise datastax
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.