You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by "Natarajan, Rajeswari" <ra...@sap.com> on 2018/08/30 21:32:00 UTC

Analyzer used if the field type has only index type specified

Hi ,

In case of fieldTypes which specify only  ‘index’ time analyzers , what will be the analyzer used during query time.


Example below specified only index time analyzer. So what will be used during query time


<fieldType name="freetext_en_ws" class="solr<https://opengrok.ariba.com/source/s?path=solr/&project=arches_rel>.TextField<https://opengrok.ariba.com/source/s?path=solr/TextField&project=arches_rel>"

                 positionIncrementGap="100" autoGeneratePhraseQueries="true">

          <analyzer type="index">

               <tokenizer class="solr<https://opengrok.ariba.com/source/s?path=solr/&project=arches_rel>.WhitespaceTokenizerFactory<https://opengrok.ariba.com/source/s?path=solr/WhitespaceTokenizerFactory&project=arches_rel>"/>

               <filter class="solr<https://opengrok.ariba.com/source/s?path=solr/&project=arches_rel>.WordDelimiterFilterFactory<https://opengrok.ariba.com/source/s?path=solr/WordDelimiterFilterFactory&project=arches_rel>"

                        generateWordParts="1" generateNumberParts="1" catenateWords="0"                        catenateNumbers="1" catenateAll="0" splitOnCaseChange="1" preserveOriginal="1"/>

               <filter class="solr<https://opengrok.ariba.com/source/s?path=solr/&project=arches_rel>.LowerCaseFilterFactory<https://opengrok.ariba.com/source/s?path=solr/LowerCaseFilterFactory&project=arches_rel>"/>

                <filter class="solr<https://opengrok.ariba.com/source/s?path=solr/&project=arches_rel>.StopFilterFactory<https://opengrok.ariba.com/source/s?path=solr/StopFilterFactory&project=arches_rel>"

                        words="lang<https://opengrok.ariba.com/source/s?path=lang/&project=arches_rel>/en<https://opengrok.ariba.com/source/s?path=lang/en/&project=arches_rel>/stopwords.txt<https://opengrok.ariba.com/source/s?path=lang/en/stopwords.txt&project=arches_rel>" enablePositionIncrements="true"/>

                <filter class="solr<https://opengrok.ariba.com/source/s?path=solr/&project=arches_rel>.EnglishPossessiveFilterFactory<https://opengrok.ariba.com/source/s?path=solr/EnglishPossessiveFilterFactory&project=arches_rel>"/>

               <filter class="solr<https://opengrok.ariba.com/source/s?path=solr/&project=arches_rel>.PorterStemFilterFactory<https://opengrok.ariba.com/source/s?path=solr/PorterStemFilterFactory&project=arches_rel>"/>

           </analyzer>

        </fieldType>


Regards
Rajeswari