Return-Path: Delivered-To: apmail-lucene-solr-dev-archive@minotaur.apache.org Received: (qmail 81376 invoked from network); 13 Oct 2009 21:57:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 13 Oct 2009 21:57:56 -0000 Received: (qmail 71400 invoked by uid 500); 13 Oct 2009 21:57:56 -0000 Delivered-To: apmail-lucene-solr-dev-archive@lucene.apache.org Received: (qmail 71344 invoked by uid 500); 13 Oct 2009 21:57:56 -0000 Mailing-List: contact solr-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-dev@lucene.apache.org Delivered-To: mailing list solr-dev@lucene.apache.org Received: (qmail 71334 invoked by uid 99); 13 Oct 2009 21:57:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Oct 2009 21:57:56 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Oct 2009 21:57:53 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 3965D234C4AC for ; Tue, 13 Oct 2009 14:57:32 -0700 (PDT) Message-ID: <1609769007.1255471052232.JavaMail.jira@brutus> Date: Tue, 13 Oct 2009 14:57:32 -0700 (PDT) From: "Hoss Man (JIRA)" To: solr-dev@lucene.apache.org Subject: [jira] Resolved: (SOLR-1505) Phrase query used when the value is not in quotas In-Reply-To: <1458342054.1255256071341.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/SOLR-1505?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Hoss Man resolved SOLR-1505. ---------------------------- Resolution: Invalid There's no bug here ... this is the expected behavior of the standard QueryParser -- when a "chunk" of input passed to an Analyzer produces multiple tokens with non-zero position offsets a phrase query is produced ... this is what makes NGrams, WordDelimiterFilter, and a host of other features work. If differnet behavior is desired, then an alternate QueryParser should be used (alternately: an Analyzer where all tokens produced have the same position could be used, since QueryParser interprets those as alternate tokens and produces a BooleeanQuery ... assuming that's what you want) --- In the future: if you see behavior that you don't understand, please send am email to solr-user describing your goal, what you've tried so far, and the results you've gotten before assuming it's a bug and opening a Jira issue. > Phrase query used when the value is not in quotas > ------------------------------------------------- > > Key: SOLR-1505 > URL: https://issues.apache.org/jira/browse/SOLR-1505 > Project: Solr > Issue Type: Bug > Components: Analysis > Affects Versions: 1.4 > Reporter: Alex Baranov > > Example: > In query specified the next criteria: _title:water,ground_ (note: the value is not in quotas). For "title" field solr.PatternTokenizerFactory used with pattern=", *". After analysis Solr applies the query as phrase query: title:"water ground" which requires the presents of both words, etc.. > So, basically _title:water,ground_ acts in the same way as _title:"water,ground"_. There is no way how to avoid phrase query. > When value is not in quotas then phrase query shouldn't be used. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.