Quantcast
Channel: DataStax Support Forums » Recent Topics
Viewing all articles
Browse latest Browse all 387

Dipankar on "Issues while testing solr with dynamic fields of different data types:"

$
0
0

Issues while testing solr with dynamic fields of different data types:
we have a schema.xml
<schema name="dynamic_all" version="1.1">
<types>

<fieldType name="tdouble" class="solr.TrieDoubleField" precisionStep="8" positionIncrementGap="0"/>
<fieldType name="text" class="solr.TextField"/>
<fieldType name="text_general" class="solr.TextField" positionIncrementGap="100">
<analyzer type="index">
<tokenizer class="solr.StandardTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/>
</analyzer>
</fieldType>
</types>

<fields>
<field name="key" type="text_general" indexed="true" stored="true" />
<field name="Component" type="text_general" indexed="true" stored="true" />
<field name="MMU_ON" type="text_general" indexed="true" stored="false" />

<dynamicField name="dy_txt_*" type="text_general" indexed="true" stored="false" required="true" multiValued="true"/>
<dynamicField name="dy_dbl_*" type="tdouble" indexed="true" stored="false" required="true" multiValued="true"/>

</fields>
<uniqueKey>key</uniqueKey>
<defaultSearchField>Component</defaultSearchField>

For the static fields with index=true and stored=true/false ==> solr can fetch all the fields
For the dynamic fields with index=true and stored=false for double data type ===> all double fields are retreivable
For the dynamic fields with index=true and stored=false for text data type ===> fields are not retreivable

But with apache solr it is working fine.

Please suggest.


Viewing all articles
Browse latest Browse all 387

Trending Articles