Ahmet Arslan created SOLR-4382:
----------------------------------

             Summary: edismax, qf, multiterm analyzer, wildcard query bug
                 Key: SOLR-4382
                 URL: https://issues.apache.org/jira/browse/SOLR-4382
             Project: Solr
          Issue Type: Bug
          Components: query parsers, Schema and Analysis, search
    Affects Versions: 4.1, 4.0
            Reporter: Ahmet Arslan


If I fire a wildcard query o*t*v*h using edismax, and add a non existed field 
to qf parameter, i get this phrase query at the end. (with 
autoGeneratePhraseQueries="true")

http://localhost:8983/solr/collection1/select?q=O*t*v*h&wt=xml&debugQuery=on&defType=edismax&qf=sku%20doesNotExit

parsedquery = (+DisjunctionMaxQuery((sku:"o t v h")))/no_coord
parsedquery_toString = +(sku:"o t v h")

Existing field(s) works as expected :

http://localhost:8983/solr/collection1/select?q=O*t*v*h&wt=xml&debugQuery=on&defType=edismax&qf=sku

yields

(+DisjunctionMaxQuery((sku:o*t*v*h)))/no_coord
+(sku:o*t*v*h)


For a workaround I enabled following dynamic field :

<dynamicField name="*" type="ignored" />

User list link : http://search-lucene.com/m/zB104LKTRI

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
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