[ 
https://issues.apache.org/jira/browse/SOLR-219?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13051789#comment-13051789
 ] 

Mike Sokolov commented on SOLR-219:
-----------------------------------

Yes, I've implemented anagram querying as you indicated, by sorting the 
letters, but the query I have in mind would allow some wildcards as well.  An 
example comes up in scrabble with the blanks, and we've been asked to implement 
this for some dictionary sites.  I was wondering if that could be implemented 
in Lucene as an FST: I suspect it could, but my brain went numb trying to come 
up with a regex as a way to get there, and then I ended up building using a 
direct hand-coded term scanning approach.

Re: the question of mapping queries, I may very well be missing something here. 
 Maybe I've misunderstood your plan: isn't it that Phrase-type queries go 
through the phrase-analyzer, TermQuery goes through the regular (query) 
analyzer, and MultiTermQueries go through the wildcard-analyzer?

It just seemed to me that there might be new Queries written in the future that 
might not easily be categorized into one of those classes, or that it might not 
be obvious how to indicate which class is thr right one, and it could be handy 
to have a way to associate them with an analysis chain in the way you've 
described. Although it seems that my one example probably falls into the MTQ 
category and I guess (?) would just pick up the wildcard analysis chain, which 
is probably the right thing.



> Determine if prefix, wildcard, fuzzy queries should be lowercased
> -----------------------------------------------------------------
>
>                 Key: SOLR-219
>                 URL: https://issues.apache.org/jira/browse/SOLR-219
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: Yonik Seeley
>            Priority: Minor
>             Fix For: 3.3
>
>         Attachments: lowercase_prefix.patch, wildcardlowercase.patch
>
>
> Solr should be able to "do the right thing" when doing prefix/wildcard/fuzzy 
> queries on fields with respect to lowercasing or not.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to