Return-Path: X-Original-To: apmail-lucene-solr-user-archive@minotaur.apache.org Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 76E0710E6C for ; Tue, 9 Dec 2014 18:19:07 +0000 (UTC) Received: (qmail 84030 invoked by uid 500); 9 Dec 2014 18:19:03 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 83956 invoked by uid 500); 9 Dec 2014 18:19:03 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 83925 invoked by uid 99); 9 Dec 2014 18:19:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Dec 2014 18:19:02 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of yseeley@gmail.com designates 209.85.220.170 as permitted sender) Received: from [209.85.220.170] (HELO mail-vc0-f170.google.com) (209.85.220.170) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Dec 2014 18:18:58 +0000 Received: by mail-vc0-f170.google.com with SMTP id hy4so563636vcb.29 for ; Tue, 09 Dec 2014 10:18:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:content-type; bh=o/R8ab88PpC/810Mib3L5ejkRlTD6GWTtL5/BZbghhQ=; b=uwpSStCUDbbUjJXX5O8MahnFUxTTIP/FL6roDe5Cl8slrterOVFQA3+m/JP2TLa5jJ PU15+qUD12tL2WizigMYOgb5r3QNJT3DW2MkDmlKqd4WBqt/jU3Fmnd8ojdqxh3iVP0h wpSaH5r9Zn3swmmB3d45ZwavqttwRKvu/7cpw1DfZA9iv/d4Lj+ANOwMjVBTGHKZzT8i mfgxHoRbk4phUhFebexhH660uWpWf67dBw+0rpRzgTlPF+NA6SXqe5oXtzQwbcbHXwoU q8LW9H7fO3VU8mZ5EYESDnpthU5/uHFq1xuXaPQ4CJZragNBV2pTWDUO/4ZijQS2GkIW mcdA== MIME-Version: 1.0 X-Received: by 10.52.238.233 with SMTP id vn9mr1635177vdc.12.1418149116882; Tue, 09 Dec 2014 10:18:36 -0800 (PST) Sender: yseeley@gmail.com Received: by 10.31.154.2 with HTTP; Tue, 9 Dec 2014 10:18:36 -0800 (PST) In-Reply-To: <2F73AE7E4C010149AB0F643C48617EF02C9DAC79@013-BR1MPN1-013.MGDPBI.global.pvt> References: <2F73AE7E4C010149AB0F643C48617EF02C9D6588@013-BR1MPN1-013.MGDPBI.global.pvt> <2F73AE7E4C010149AB0F643C48617EF02C9D68C5@013-BR1MPN1-013.MGDPBI.global.pvt> <92C13F65-CD32-4041-A3E1-6B02B8C19AAC@gmail.com> <2F73AE7E4C010149AB0F643C48617EF02C9D73A9@013-BR1MPN1-013.MGDPBI.global.pvt> <2F73AE7E4C010149AB0F643C48617EF02C9D9019@013-BR1MPN1-013.MGDPBI.global.pvt> <2F73AE7E4C010149AB0F643C48617EF02C9D9524@013-BR1MPN1-013.MGDPBI.global.pvt> <2F73AE7E4C010149AB0F643C48617EF02C9D969A@013-BR1MPN1-013.MGDPBI.global.pvt> <2F73AE7E4C010149AB0F643C48617EF02C9D9D2E@013-BR1MPN1-013.MGDPBI.global.pvt> <2F73AE7E4C010149AB0F643C48617EF02C9DAC79@013-BR1MPN1-013.MGDPBI.global.pvt> Date: Tue, 9 Dec 2014 13:18:36 -0500 X-Google-Sender-Auth: yR8CCU_JS2lUvNjLRm99pxxu7xg Message-ID: Subject: Re: How to stop Solr tokenising search terms with spaces From: Yonik Seeley To: "solr-user@lucene.apache.org" Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org On Tue, Dec 9, 2014 at 12:49 PM, Dinesh Babu wrote: > > But my requirement is A* B* to be A* B* . A* OR B*won't meet my requirement. The syntax is what it is... With the complexphrase parser, if you want at phrase, you need to surround the clauses with double quotes: "A* B*" -Yonik http://heliosearch.org - native code faceting, facet functions, sub-facets, off-heap data We have chosen the NGram solution and it is working for our rquirement at the moment. Thanks for your input and help Yonik > > Regards, > Dinesh Babu. > > > -----Original Message----- > From: yseeley@gmail.com [mailto:yseeley@gmail.com] On Behalf Of Yonik Seeley > Sent: 08 December 2014 17:58 > To: solr-user@lucene.apache.org > Subject: Re: How to stop Solr tokenising search terms with spaces > > On Mon, Dec 8, 2014 at 12:01 PM, Erik Hatcher wrote: >> debug output tells a lot. Looks like in the last two examples that the second part (Viewpoint*) is NOT parsed with the complex phrase parser - the whitespace thwarts it. > > Actually, it looks like it is, but you're not telling the complex phrase parser to put the two clauses in a phrase. You need the quotes. > > Even for complexphrase parser > A* B* is the same as A* OR B* > > -Yonik > http://heliosearch.org - native code faceting, facet functions, sub-facets, off-heap data