Solr
  1. Solr
  2. SOLR-757

SolrQueryParser should support escaping of characters in lieu of analysis for prefix & wildcard & fuzzy searches.

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.3
    • Fix Version/s: 3.6, 4.0-ALPHA
    • Component/s: search
    • Labels:
      None

      Description

      In Lucene and Solr, query words that are prefix or wildcard or fuzzy do not go through analyzer processing. This is for well known understood reasons. However, for my data for a field I might want certain processing to occur. Lowercasing has already been identified in SOLR-219. Another which I address in the attached patch file is the ability to remove characters that meet a supplied regular expression. I've implemented this as part of SolrQueryParser but there should probably be a more thorough plan such as an analyzer chain expressly for the purpose of being applied to prefix, wildcard, and fuzzy queries.

        Issue Links

          Activity

          David Smiley created issue -
          Hide
          David Smiley added a comment -

          Apply this patch to the directory src/java/org/apache/solr/search and it will modify just SolrQueryParser.java (I've tested this using TextMate's diff plugin).

          Note that this patch also calls setLowercaseExpandedTerms(true) because I found that more to my liking.

          Show
          David Smiley added a comment - Apply this patch to the directory src/java/org/apache/solr/search and it will modify just SolrQueryParser.java (I've tested this using TextMate's diff plugin). Note that this patch also calls setLowercaseExpandedTerms(true) because I found that more to my liking.
          David Smiley made changes -
          Field Original Value New Value
          Attachment SolrQueryParser_wildcardescape.patch [ 12389585 ]
          David Smiley made changes -
          Link This issue is related to SOLR-219 [ SOLR-219 ]
          Shalin Shekhar Mangar made changes -
          Fix Version/s 1.5 [ 12313566 ]
          David Smiley made changes -
          Link This issue is depended upon by SOLR-758 [ SOLR-758 ]
          Hide
          Hoss Man added a comment -

          Bulk updating 240 Solr issues to set the Fix Version to "next" per the process outlined in this email...

          http://mail-archives.apache.org/mod_mbox/lucene-dev/201005.mbox/%3Calpine.DEB.1.10.1005251052040.24672@radix.cryptio.net%3E

          Selection criteria was "Unresolved" with a Fix Version of 1.5, 1.6, 3.1, or 4.0. email notifications were suppressed.

          A unique token for finding these 240 issues in the future: hossversioncleanup20100527

          Show
          Hoss Man added a comment - Bulk updating 240 Solr issues to set the Fix Version to "next" per the process outlined in this email... http://mail-archives.apache.org/mod_mbox/lucene-dev/201005.mbox/%3Calpine.DEB.1.10.1005251052040.24672@radix.cryptio.net%3E Selection criteria was "Unresolved" with a Fix Version of 1.5, 1.6, 3.1, or 4.0. email notifications were suppressed. A unique token for finding these 240 issues in the future: hossversioncleanup20100527
          Hoss Man made changes -
          Fix Version/s Next [ 12315093 ]
          Fix Version/s 1.5 [ 12313566 ]
          Hoss Man made changes -
          Fix Version/s 3.2 [ 12316172 ]
          Fix Version/s Next [ 12315093 ]
          Hide
          Robert Muir added a comment -

          Bulk move 3.2 -> 3.3

          Show
          Robert Muir added a comment - Bulk move 3.2 -> 3.3
          Robert Muir made changes -
          Fix Version/s 3.3 [ 12316471 ]
          Fix Version/s 3.2 [ 12316172 ]
          Robert Muir made changes -
          Fix Version/s 3.4 [ 12316683 ]
          Fix Version/s 4.0 [ 12314992 ]
          Fix Version/s 3.3 [ 12316471 ]
          Hide
          Robert Muir added a comment -

          3.4 -> 3.5

          Show
          Robert Muir added a comment - 3.4 -> 3.5
          Robert Muir made changes -
          Fix Version/s 3.5 [ 12317876 ]
          Fix Version/s 3.4 [ 12316683 ]
          Hide
          Erick Erickson added a comment -

          I'm pretty sure this is taken care of by SOLR-2438, so marking closed.

          Show
          Erick Erickson added a comment - I'm pretty sure this is taken care of by SOLR-2438 , so marking closed.
          Erick Erickson made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Assignee Erick Erickson [ erickerickson ]
          Fix Version/s 3.6 [ 12319065 ]
          Fix Version/s 3.5 [ 12317876 ]
          Resolution Fixed [ 1 ]
          Erick Erickson made changes -
          Link This issue relates to SOLR-2438 [ SOLR-2438 ]
          Uwe Schindler made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Resolved Resolved
          1175d 21h 1 Erick Erickson 25/Nov/11 17:26
          Resolved Resolved Closed Closed
          531d 17h 14m 1 Uwe Schindler 10/May/13 10:40

            People

            • Assignee:
              Erick Erickson
              Reporter:
              David Smiley
            • Votes:
              2 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development