Hi,

I am using a 'text_general' fieldType (class = solr.TextField) in my
schema. And I have a master/slave setup,
where I index on the master and read from the slaves. In the text_general
field I am using 2 analyzers. One for
indexing and one for querying with stopword-filters.

What I am thinking is if it would make sense to have a different schema on
the master than on the slave? So just the
index-analyzer on the master's schema and the query-analyzer on the slave's
schema?


<fieldType name="text_general" class="solr.TextField"
positionIncrementGap="100">
 <analyzer type="index">
<tokenizer class="solr.StandardTokenizerFactory"/>
 <filter class="solr.StopFilterFactory" ignoreCase="true"
words="stopwords.txt, stopwords_en.txt" enablePositionIncrements="true" />
 <filter class="solr.LowerCaseFilterFactory"/>
</analyzer>
 <analyzer type="query">
<tokenizer class="solr.StandardTokenizerFactory"/>
 <filter class="solr.StopFilterFactory" ignoreCase="true"
words="stopwords.txt, stopwords_en.txt" enablePositionIncrements="true" />
 <filter class="solr.LowerCaseFilterFactory"/>
</analyzer>
 </fieldType>

What do you think?

Thanks & best regards

Daniel

Reply via email to