I have a SOLR DB with ca. 70M documents. Certain query returns about 300 documents. With
- facet.field=A it takes only 4 ms,
- facet.field=B needs 800 ms to return!
Are there errors in my schema? Can it be done faster?
<fieldtype name="B_type" class="solr.TextField" positionIncrementGap="100"
sortMissingLast="true" omitNorms="true">
<analyzer type="index">
<tokenizer class="solr.KeywordTokenizerFactory" />
<filter class="solr.StandardFilterFactory" ignoreCase="true" />
</analyzer>
<analyzer type="query">
<tokenizer class="solr.KeywordTokenizerFactory" />
<filter class="solr.StandardFilterFactory" ignoreCase="true" />
</analyzer>
</fieldtype>
<field name="A" type="string" indexed="true" stored="true" multiValued="false" />
<field name="B" type="B_type" indexed="true" stored="false" multiValued="true" />