From dev-return-75985-apmail-lucene-dev-archive=lucene.apache.org@lucene.apache.org Thu Jul 21 11:47:27 2011 Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 70ACC6C4C for ; Thu, 21 Jul 2011 11:47:27 +0000 (UTC) Received: (qmail 14042 invoked by uid 500); 21 Jul 2011 11:47:25 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 13614 invoked by uid 500); 21 Jul 2011 11:47:22 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 12821 invoked by uid 99); 21 Jul 2011 11:47:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Jul 2011 11:47:19 +0000 X-ASF-Spam-Status: No, hits=-2001.1 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Jul 2011 11:47:18 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 285344DE67 for ; Thu, 21 Jul 2011 11:46:58 +0000 (UTC) Date: Thu, 21 Jul 2011 11:46:58 +0000 (UTC) From: "Ahmet Arslan (JIRA)" To: dev@lucene.apache.org Message-ID: <795426476.11040.1311248818161.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <164301892.5691.1310472899883.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (SOLR-2649) MM ignored in edismax queries with operators MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SOLR-2649?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13068925#comment-13068925 ] Ahmet Arslan commented on SOLR-2649: ------------------------------------ I experienced the same issue. When i added one negative clause to the query string (that has two optional clauses), mm is ignored and default operator is used instead. q=word1 word2 -word3&mm=100%&defType=edismax and q=word1 word2 -word3&mm=100%&defType=dismax returns different result sets. edismax returns documents containing either word1 or word2, although there are two optional clauses in the query and mm is set to 100%. > MM ignored in edismax queries with operators > -------------------------------------------- > > Key: SOLR-2649 > URL: https://issues.apache.org/jira/browse/SOLR-2649 > Project: Solr > Issue Type: Bug > Components: search > Affects Versions: 3.3 > Reporter: Magnus Bergmark > Priority: Minor > > Hypothetical scenario: > 1. User searches for "stocks oil gold" with MM set to "50%" > 2. User adds "-stockings" to the query: "stocks oil gold -stockings" > 3. User gets no hits since MM was ignored and all terms where AND-ed together > The behavior seems to be intentional, although the reason why is never explained: > // For correct lucene queries, turn off mm processing if there > // were explicit operators (except for AND). > boolean doMinMatched = (numOR + numNOT + numPluses + numMinuses) == 0; > (lines 232-234 taken from tags/lucene_solr_3_3/solr/src/java/org/apache/solr/search/ExtendedDismaxQParserPlugin.java) > This makes edismax unsuitable as an replacement to dismax; mm is one of the primary features of dismax. -- This message is automatically generated by JIRA. 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