lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Høydahl (Commented) (JIRA) <j...@apache.org>
Subject [jira] [Commented] (SOLR-2988) edismax does not respect pf params using non-tokenized fields
Date Wed, 28 Dec 2011 22:41:30 GMT

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

Jan Høydahl commented on SOLR-2988:
-----------------------------------

I've been puzzled by this myself, but thought that it was because a non-tokenized string is
per definition one token and thus not a "phrase" but a word :) But since this worked with
"dismax" it now looks more like a bug?
                
> edismax does not respect pf params using non-tokenized fields
> -------------------------------------------------------------
>
>                 Key: SOLR-2988
>                 URL: https://issues.apache.org/jira/browse/SOLR-2988
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 3.5
>            Reporter: Hoss Man
>
> for reasons i don't fully understand, edismax ignores fields in the pf param if those
fields are non-tokenized.
> Consider this example *dismax* query in Solr 3.5...
> {noformat}
> http://localhost:8983/solr/select/?debugQuery=true&defType=dismax&qf=name^5+features^3&pf=features^2+cat^4&q=hard+drive
> <str name="parsedquery">
>   +((DisjunctionMaxQuery((features:hard^3.0 | name:hard^5.0))
>      DisjunctionMaxQuery((features:drive^3.0 | name:drive^5.0))
>     )~2)
>    DisjunctionMaxQuery((features:"hard drive"^2.0 | cat:hard drive^4.0))
> {noformat}
> ...compared to the equivalent *edismax* query...
> {noformat}
> http://localhost:8983/solr/select/?debugQuery=true&defType=edismax&qf=name^5+features^3&pf=features^2+cat^4&q=hard+drive
> <str name="parsedquery">
>   +((DisjunctionMaxQuery((features:hard^3.0 | name:hard^5.0))
>      DisjunctionMaxQuery((features:drive^3.0 | name:drive^5.0))
>     )~2)
>    DisjunctionMaxQuery((features:"hard drive"^2.0))
> {noformat}

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