The following documentation page from Datastax states:
DSE Search maps collections as follows:
Collection list and set: multi-valued field
Collection maps: dynamic field
The name of the dynamic field minus the wildcard is the map name. For example, a map column name dyna* is mapped to dyna. Inner keys are mapped to the full field name.
The last statement is not very clear to me. How exactly should the field definition look like? Assuming that I have a collection map defined as scores map<int,int>
in CQL3, is the following field definition correct?
<field name="scores*" type="int" indexed="true" stored="true"/>
And how do I query this? Assuming that the map's value is {201409 : 89, 201410 : 67}
and I want to filter on inner field '201410', is the following correct?:
fq=scores201410:[80 TO *]