You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by "David Smiley (JIRA)" <ji...@apache.org> on 2008/09/05 22:26:44 UTC

[jira] Created: (SOLR-757) SolrQueryParser should support escaping of characters in lieu of analysis for prefix & wildcard & fuzzy searches.

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

                 Key: SOLR-757
                 URL: https://issues.apache.org/jira/browse/SOLR-757
             Project: Solr
          Issue Type: Improvement
          Components: search
    Affects Versions: 1.3
            Reporter: David Smiley


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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (SOLR-757) SolrQueryParser should support escaping of characters in lieu of analysis for prefix & wildcard & fuzzy searches.

Posted by "David Smiley (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-757?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Smiley updated SOLR-757:
------------------------------

    Attachment: SolrQueryParser_wildcardescape.patch

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.

> SolrQueryParser should support escaping of characters in lieu of analysis for prefix & wildcard & fuzzy searches.
> -----------------------------------------------------------------------------------------------------------------
>
>                 Key: SOLR-757
>                 URL: https://issues.apache.org/jira/browse/SOLR-757
>             Project: Solr
>          Issue Type: Improvement
>          Components: search
>    Affects Versions: 1.3
>            Reporter: David Smiley
>         Attachments: SolrQueryParser_wildcardescape.patch
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (SOLR-757) SolrQueryParser should support escaping of characters in lieu of analysis for prefix & wildcard & fuzzy searches.

Posted by "Shalin Shekhar Mangar (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-757?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shalin Shekhar Mangar updated SOLR-757:
---------------------------------------

    Fix Version/s: 1.5

> SolrQueryParser should support escaping of characters in lieu of analysis for prefix & wildcard & fuzzy searches.
> -----------------------------------------------------------------------------------------------------------------
>
>                 Key: SOLR-757
>                 URL: https://issues.apache.org/jira/browse/SOLR-757
>             Project: Solr
>          Issue Type: Improvement
>          Components: search
>    Affects Versions: 1.3
>            Reporter: David Smiley
>             Fix For: 1.5
>
>         Attachments: SolrQueryParser_wildcardescape.patch
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.