Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id CFB302004CA for ; Wed, 11 May 2016 16:09:10 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id CE3A5160A14; Wed, 11 May 2016 14:09:10 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 23C3A160A09 for ; Wed, 11 May 2016 16:09:09 +0200 (CEST) Received: (qmail 6835 invoked by uid 500); 11 May 2016 14:09:08 -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 6823 invoked by uid 99); 11 May 2016 14:09:07 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 May 2016 14:09:07 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 6A0F1C33FB for ; Wed, 11 May 2016 14:09:07 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 4.192 X-Spam-Level: **** X-Spam-Status: No, score=4.192 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, KAM_LIVE=1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URI_HEX=1.313] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id oYJjEqj7U5eh for ; Wed, 11 May 2016 14:09:05 +0000 (UTC) Received: from mail-yw0-f175.google.com (mail-yw0-f175.google.com [209.85.161.175]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id C46765F2C5 for ; Wed, 11 May 2016 14:09:04 +0000 (UTC) Received: by mail-yw0-f175.google.com with SMTP id o66so48774026ywc.3 for ; Wed, 11 May 2016 07:09:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=axMsGh8TJTGAx5XUr+5fu34E9bYGPxFBQUJ3qZSNNBU=; b=PYcUYOANkeXOEAYZn1u7wnt6a08zBU112NVw9nRFyn0qT68yVFu2E4a7TVHBHFbXg5 N9b6kDRx86K8w+NHggOJ9D74WBn2QIG47Y7hETYXbogp9963CKHEj9WIs1TYcVE2/Mlr mSfFsXBvRpBxUuYmKvGIBkZYUzttDC2sl93TYygTdrBHy2vhFeTJXxRGchSX7wAknm/S FcjOBGlCa6dK4nOzH4Zj5dq700A/9Rv2EvBgroyfB+FdCG9AFGTYHgThf24d5OAsUJfR PQqUX+n61BpdslQESDOiEc2apw397Ur6gc/UodXIzF9B3DJdSTgXHKqLVjSWooGDXwNo HTug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=axMsGh8TJTGAx5XUr+5fu34E9bYGPxFBQUJ3qZSNNBU=; b=GEHP7aOU6BGVpsDSB3oPx+iMP4XBz3wUPO1CKePWxHvg80m2hKSNbrx4QCEJAbhzsx 6a4DorpKlIzVP04QSkTewxsmKyezppSiKLA7j9IHZ+yPy1Ox5RouMFeB7jers3dS6tYd jlVncxTawNFVIG3JqMfjsvc/iq34p75ef5/6afjjN7C2lRrjDRo7U1vELDDaGBlh2dju zuRPM+GpRYSAc1EuggjWfZA3cQ+qjn+wzmHQzkagI/ar4F8ba47Phr2zX6tXK5KSrHBE LWR74iVBG+LYQmu0LWN+7o0ySncbDDhKe57LBFb2Fm4HbQ3sLnZoC2leD4Id+sk3u46Y 9k8g== X-Gm-Message-State: AOPr4FV4JbA8Mjt+0gsGJKu/GZeGqY7WZB+7/MmkkBmdHXaqlA3N4GSWA7TdiSnlEr/nhBJ3RRdJzmEGOA1AAQ== X-Received: by 10.129.160.74 with SMTP id x71mr1645823ywg.131.1462975736914; Wed, 11 May 2016 07:08:56 -0700 (PDT) MIME-Version: 1.0 Received: by 10.37.108.11 with HTTP; Wed, 11 May 2016 07:08:37 -0700 (PDT) In-Reply-To: <2138569119.263033.1462961570243.JavaMail.yahoo@mail.yahoo.com> References: <1462947161405-4276052.post@n3.nabble.com> <2138569119.263033.1462961570243.JavaMail.yahoo@mail.yahoo.com> From: Lasitha Wattaladeniya Date: Wed, 11 May 2016 22:08:37 +0800 Message-ID: Subject: Re: How to search string To: solr-user@lucene.apache.org, Ahmet Arslan Content-Type: multipart/alternative; boundary=94eb2c089e581d2b2e053291951f archived-at: Wed, 11 May 2016 14:09:11 -0000 --94eb2c089e581d2b2e053291951f Content-Type: text/plain; charset=UTF-8 Hi Kishor, You can try escaping the search phrase "Garmin Class A" > Garmin\ Class\ A Lasitha Wattaladeniya Software Engineer Mobile : +6593896893 Blog : techreadme.blogspot.com On Wed, May 11, 2016 at 6:12 PM, Ahmet Arslan wrote: > Hi, > > You can be explicit about the field that you want to search on. e.g. > q=product_name:(Garmin Class A) > > Or you can use lucene query parser with default field (df) parameter. e.g. > q={!lucene df=product_name)Garmin Class A > > Its all about query parsers. > > Ahmet > > > On Wednesday, May 11, 2016 9:12 AM, kishor wrote: > I want to search a product and product name is "Garmin Class A" so I > expect > result is product name matching string "Garmin Class A" but it searches > separately i dont know why and how it happen.Please guide me how to search > a > string in only one field only not in other fields. "debug": { > "rawquerystring": "Garmin Class A", "querystring": "Garmin Class A", > "parsedquery": "(+(DisjunctionMaxQuery((product_name:Garmin)) > DisjunctionMaxQuery((product_name:Class)) > DisjunctionMaxQuery((product_name:A))) ())/no_coord", > "parsedquery_toString": "+((product_name:Garmin) (product_name:Class) > (product_name:A)) ()", "explain": {}, > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/How-to-search-string-tp4276052.html > Sent from the Solr - User mailing list archive at Nabble.com. > --94eb2c089e581d2b2e053291951f--