TermsComponent terms.regex and terms.upper does not always work
---------------------------------------------------------------

                 Key: SOLR-2751
                 URL: https://issues.apache.org/jira/browse/SOLR-2751
             Project: Solr
          Issue Type: Bug
          Components: SearchComponents - other
    Affects Versions: 3.3
         Environment: Solr 3.3
            Reporter: Stephan Meisinger


TermComponent with a regex does check upper bound only on regexp success.

example:

terms.regex.flag=case_insensitive
terms.fl=suggest_fr
terms.limit=10
terms.regex=a.*
terms.lower=A
terms.upper=b

will also check terms starting with 'b' up to 'z'. But this wouldn't be needed. 
For this example upper is ignored. Currently checks are done:

[lower] -> start loop at
[regexp] -> miss: continue
[upper] -> miss: break
[freq] -> miss: continue

should be done:

[lower] -> start loop at
[upper] -> miss: break
[freq] -> miss: continue (I think double compare is much faster then a std 
regexp)
[regexp] -> miss: continue





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