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 1E6C04DC7 for ; Tue, 17 May 2011 14:01:02 +0000 (UTC) Received: (qmail 10325 invoked by uid 500); 17 May 2011 14:00:58 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 10277 invoked by uid 500); 17 May 2011 14:00:58 -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 10269 invoked by uid 99); 17 May 2011 14:00:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 May 2011 14:00:58 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of anujsays@gmail.com designates 209.85.214.48 as permitted sender) Received: from [209.85.214.48] (HELO mail-bw0-f48.google.com) (209.85.214.48) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 May 2011 14:00:52 +0000 Received: by bwz8 with SMTP id 8so795663bwz.35 for ; Tue, 17 May 2011 07:00:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=prKCaXUpC6nRD4BMtkwbasGKIEpj097zPuLtO3D8Fso=; b=KzI5r6ie1emMqs+4b2wfES97lt1ud83JMm+NWNZ69jyNJaPATt7sqOBgVrVu67DMt1 /xDJKgLJYRLwIMuQWaYWxYYIKLxrNimt8frVtj6vzcR+UrLCO8/jBco84nxyxd9d8xem UAoV2hrMRPGAp8FXAJvIIX2K4ppFANeYHtl2g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=CvEc8aiohMgJ2it57UVDywIXPD+myKX4dQ9THa7Ik/aC5dVgqbB1A583iRRkXTqEqm Nt8HSUcHQksMRyzY7JyFOqjc8HIMyK8vv11enoVRM0KtBNh6RNxe1oPozaQmxZ1zvObB 11tmXR7+sAchV9KheYTOSRKKZIg2HdiSaBmLU= MIME-Version: 1.0 Received: by 10.204.82.166 with SMTP id b38mr631640bkl.207.1305640831835; Tue, 17 May 2011 07:00:31 -0700 (PDT) Received: by 10.204.102.138 with HTTP; Tue, 17 May 2011 07:00:31 -0700 (PDT) In-Reply-To: References: Date: Tue, 17 May 2011 19:30:31 +0530 Message-ID: Subject: Re: Exact match From: Anuj Kumar To: solr-user@lucene.apache.org Content-Type: multipart/alternative; boundary=0016e68deb3dfc5d3304a37931c8 X-Virus-Checked: Checked by ClamAV on apache.org --0016e68deb3dfc5d3304a37931c8 Content-Type: text/plain; charset=ISO-8859-1 Hi Alex, You need to define that field of type String in the schema and then search for it. That will give you an exact match. Regards, Anuj On Tue, May 17, 2011 at 7:21 PM, Alex Grilo wrote: > Hi, > > Can I make a query that returns only exact match or do I have to change the > fields to achieve that? > > Thanks in advance > > Alex Grilo > --0016e68deb3dfc5d3304a37931c8--