lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zac Smith (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SOLR-3128) When terms are removed from the query analysis, dismax creates an empty required query
Date Sun, 12 Feb 2012 08:14:59 GMT
When terms are removed from the query analysis, dismax creates an empty required query
--------------------------------------------------------------------------------------

                 Key: SOLR-3128
                 URL: https://issues.apache.org/jira/browse/SOLR-3128
             Project: Solr
          Issue Type: Bug
          Components: Schema and Analysis, search
    Affects Versions: 3.5
            Reporter: Zac Smith


Consider the following situation:
A field type is setup with the following query analyzer:
<analyzer type="query">
  <tokenizer class="solr.WhitespaceTokenizerFactory" />				
  <filter class="solr.ShingleFilterFactory" outputUnigrams="false" maxShingleSize="2" />

</analyzer> 
The text 'chicken stock' is used as a search term. The WhitespaceTokenizerFactory will create
two terms: 'chicken' and 'stock'. Then the ShingleFilterFactory will join them back into a
single term 'chicken stock'.
Now the resulting dismax query will be:
+() DisjunctionMaxQuery((ingredient_synonyms:chicken stock)~0.01)

Note the empty required query: +()



--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


Mime
View raw message