lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nils Kaiser (Issue Comment Edited) (JIRA)" <j...@apache.org>
Subject [jira] [Issue Comment Edited] (SOLR-3385) Extended Dismax parser ignores all regular search terms when one search term is using + (dismax behaves differently)
Date Fri, 20 Apr 2012 16:24:40 GMT

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

Nils Kaiser edited comment on SOLR-3385 at 4/20/12 4:23 PM:
------------------------------------------------------------

Added explain queries for the cases explained in the description. Tried both dismax and edismax
parser. the file name format is: select_[used search terms (PLUS means +)]_[dismax / edismax]_[number
of results]results.xml

DISMAX:
As you can see, dismax behaves correctly (it always assumes a search term without a + behaves
as if it had + specified).

"+sales" -> 9600 results
"dev +sales" -> 553 results
"dev +sales miau" -> 0 results (miau is not in index).
 
EDISMAX:
On the other hand, edismax parser ignores the terms that do not start with + if another term
has + specified.

"+sales" -> 9600 results
"dev +sales" -> 9600 results
"dev +sales miau" -> 9600 results
"dev sales miau" -> 0 results (the bug only occurs if at least one search term uses + or
-)
                
      was (Author: nilskaiser):
    Added explain queries for the cases explained in the description. Tried both dismax and
edismax parser. the file name format is: select_[used search terms (PLUS means +)]_[dismax
/ edismax]_[number of results]results.xml

DISMAX:
As you can see, dismax behaves differently (it always assumes a search term without a + behaves
as if it had + specified).

"+sales" -> 9600 results
"dev +sales" -> 553 results
"dev +sales miau" -> 0 results (miau is not in index).
 
EDISMAX:
On the other hand, edismax parser ignores the terms that do not start with + if another term
has + specified.

"+sales" -> 9600 results
"dev +sales" -> 9600 results
"dev +sales miau" -> 9600 results
"dev sales miau" -> 0 results (the bug only occurs if at least one search term uses + or
-)
                  
> Extended Dismax parser ignores all regular search terms when one search term is using
+ (dismax behaves differently)
> --------------------------------------------------------------------------------------------------------------------
>
>                 Key: SOLR-3385
>                 URL: https://issues.apache.org/jira/browse/SOLR-3385
>             Project: Solr
>          Issue Type: Bug
>          Components: query parsers
>    Affects Versions: 3.5
>            Reporter: Nils Kaiser
>         Attachments: select_PLUSsales_dismax_9600results.xml, select_PLUSsales_edismax_9600results.xml,
select_dev_PLUSsales_dismax_553results.xml, select_dev_PLUSsales_edismax_9600results.xml,
select_dev_PLUSsales_miau_dismax_0results.xml, select_dev_PLUSsales_miau_edismax_9600results.xml,
select_dev_sales_miau_edismax_0results.xml
>
>
> When using the extended dismax parser with at least one term using + or -, all other
search terms are ignored.
> Example:
> (the terms dev and sales are found in the index, the term miau is not part of the index)
> "dev sales miau", "+dev +sales +miau", "dev +sales +miau" all give me 0 results (as expected)
> "dev +sales miau", "dev +sales" or "+sales" return the same number of results (dev and
miau terms are ignored)
> The standard dismax parser always treats search terms as +, so "dev sales miau", "+dev
+sales miau", "dev +sales miau" return the same number of results. 

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