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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to