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

Query "starts with" doesn't work on some fields with same type

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Invalid
    • None
    • 4.7
    • None
    • None
    • jetty server

    Description

      I've got field type called "text_lcase" (you can find details below)

      <fieldType name="text_lcase" class="solr.TextField" positionIncrementGap="100">
      <analyzer type="index">
      <tokenizer class="solr.StandardTokenizerFactory"/>
      <filter class="solr.LowerCaseFilterFactory"/> <!-- lowercases everything -->
      </analyzer>
      <analyzer type="query">
      <tokenizer class="solr.StandardTokenizerFactory"/>
      <filter class="solr.LowerCaseFilterFactory"/>
      </analyzer>
      </fieldType>

      So I use this field type for name and email. Before email field had type string. I reindexed solr, for some reasons it worked fine for a while but stopped working again.
      Example of queries:
      name:John* (works on all fields have got this value or if it starts with this value)
      email:example@hotmail.com* ( doesn't work)
      email:example@hotmail.com ( works)
      email:example@hotmail* (doesn't work)

      Attachments

        Activity

          People

            Unassigned Unassigned
            Gektor Alex
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: