Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-2145

Give warning or error when StrField is used with analyzer definition

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Schema and Analysis
    • Labels:
      None

      Description

      This illustrates the problem <http://search.lucidimagination.com/search/document/c7faf8d497b94b08/case_insensitive_phrase_query_for_string_fields>

      <fieldType name="ci_string" class="solr.StrField">
            <analyzer>
               <filter class="solr.LowerCaseFilterFactory"/>
               <tokenizer class="solr.KeywordTokenizerFactory"/>
            </analyzer>
      </fieldType>
      

      StrField doesn't use the analyzer except improperly with the analysis.jsp tool currently.

      This mistake should be a startup error or warning.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                ehatcher Erik Hatcher
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: