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

Nick Shanin commented on SOLR-3008:
-----------------------------------

>From code reading against apache/main b73f03976fa, explicit quoted phrases are 
>not shingled into `pf` 
>(solr/core/src/java/org/apache/solr/search/ExtendedDismaxQParser.java:306-313).
> A candidate is to keep that and document it in the edismax `pf` section, 
>rather than change scoring. Is that the behaviour you want?

🤖 AI-generated 🤖

> edismax pf clause makes no sense when query already has quoted subphrase
> ------------------------------------------------------------------------
>
>                 Key: SOLR-3008
>                 URL: https://issues.apache.org/jira/browse/SOLR-3008
>             Project: Solr
>          Issue Type: Bug
>          Components: query parsers
>            Reporter: Chris M. Hostetter
>            Priority: Major
>
> As noted by ldavid2020 on the solr-user mailing list (Tue, 20 Dec 2011) the 
> behavior of edismax when the pf param is used and the query string contains 
> quotes arround part of the query makes no sense at all...
> {quote}
> For the same query: 2012 "japan airlines" flight status
> dismax...
> [http://localhost:8983/solr/select?q=2012+"japan+airlines"+flight+status&qf=TTL&pf=TTL&debugQuery=true&defType=dismax]
> outputs:
> {noformat}
> +((DisjunctionMaxQuery((TTL:2012)~0.1)
>    DisjunctionMaxQuery((TTL:"japan airlin"~3)~0.1)
>    DisjunctionMaxQuery((TTL:flight)~0.1)
>    DisjunctionMaxQuery((TTL:status)~0.1)
>   )~3) 
> DisjunctionMaxQuery((TTL:"2012 japan airlin flight status"~3)~0.1)
> {noformat}
> The parsedquery has DisjunctionMaxQuery((TTL:"2012 japan airlin flight 
> status"~3)~0.1).
> While edismax...
> [http://localhost:8983/solr/select?q=2012+"japan+airlines"+flight+status&qf=TTL&pf=TTL&debugQuery=true&defType=edismax]
> outputs:
> {noformat}
> +((DisjunctionMaxQuery((TTL:2012)~0.1)
>    DisjunctionMaxQuery((TTL:"japan airlin"~3)~0.1)
>    DisjunctionMaxQuery((TTL:flight)~0.1)
>    DisjunctionMaxQuery((TTL:status)~0.1)
>   )~3) 
> DisjunctionMaxQuery((TTL:"2012 flight status"~3)~0.1)
> {noformat}
> The parsedquery has DisjunctionMaxQuery((TTL:"2012 flight status"~3)~0.1).
> ...
> So it seems edismax ignores "japan airlines" for the pf matching. This could 
> cause some issues, in that a document with exactly phrase "2012 japan 
> airlines flight status" will have the same relevancy score with another one 
> with two phrases "japan airlines", "2012 flight status" far away. 
> {quote}



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to