[ 
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.

Reply via email to