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 4651B110C7 for ; Fri, 18 Apr 2014 14:36:43 +0000 (UTC) Received: (qmail 17102 invoked by uid 500); 18 Apr 2014 14:36:37 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 17017 invoked by uid 500); 18 Apr 2014 14:36:36 -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 17009 invoked by uid 99); 18 Apr 2014 14:36:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Apr 2014 14:36:36 +0000 X-ASF-Spam-Status: No, hits=0.6 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of erickerickson@gmail.com designates 209.85.128.170 as permitted sender) Received: from [209.85.128.170] (HELO mail-ve0-f170.google.com) (209.85.128.170) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Apr 2014 14:36:32 +0000 Received: by mail-ve0-f170.google.com with SMTP id pa12so3009238veb.15 for ; Fri, 18 Apr 2014 07:36:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=dCdPRsAVCZwvzGxNrxPs4MiI+fPFBuGiKxdOaTm5ZGY=; b=h0JX5bkkR0++myWDpIAIu3WmvTIoadHpMkpjtri4YrdblvbfxFa4PEqmObfTxq79aS fJidHqbp+rw6fLANXkP6sc+O+yQZj+5gSeFJFJtBJYhK1h2hT+3O/oY/yrEqVJaFMcRP w65l2yau5Gg6M8TJITzlLxSoHoBqMv6poe7YxHOuUdHYVdjC5Oso9nCRg0NHdXxU4HFs QqyieQ+YJoH/8lLJYpdYu0baNUEegxgZ1A/WvxiraGGYsXFhWaAdRU37nqYioLBrFFkC y/kxhBdbP7Buo6ZbWHNwE9GVEpP391Jz7FCoOBGQF4YaiPQ0zakv6zG5ZFNIwV9/iAdT xPBA== MIME-Version: 1.0 X-Received: by 10.52.241.106 with SMTP id wh10mr12308109vdc.16.1397831771473; Fri, 18 Apr 2014 07:36:11 -0700 (PDT) Received: by 10.52.69.234 with HTTP; Fri, 18 Apr 2014 07:36:11 -0700 (PDT) In-Reply-To: <1397796453338-4131924.post@n3.nabble.com> References: <1397796453338-4131924.post@n3.nabble.com> Date: Fri, 18 Apr 2014 07:36:11 -0700 Message-ID: Subject: Re: Filtering Solr Queries From: Erick Erickson To: solr-user@lucene.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Is this a manageable list? That is, not a zillion names? If so, it seems like you could do this with synonyms. Assuming your string_ci bit is a "string" type, you'd need to change that to something like KeywordTokenizerFactory followed by filters, and you might want to add something like LowercaseFilterFactory to the chain. Best, Erick On Thu, Apr 17, 2014 at 9:47 PM, kumar wrote: > Hi, > > I am indexing the data using title, city and location fields. > > but different cities are having same location names like "rajaji nagar", > "rajajinagar". > > When user types > > computers in rajaji nagar--------It has to display results like "computer= s > in rajajinagr" as well as "computers in rajaji nagr". > > I am using the following schema. > > > > > multiValued=3D"true" omitNorms=3D"true" omitTermFreqAndPositions=3D"true"= /> > > > > > > > > mapping=3D"mapping-ISOLatin1Accent.txt"/> > > > replacement=3D" " replace=3D"all"/> > minGramSize=3D"2"/> > pattern=3D"([^\w\d\*=C3=A6=C3=B8=C3=A5=C3=86=C3=98=C3=85 ])" replacement= =3D"" replace=3D"all"/> > words=3D"stopwords.txt" enablePositionIncrements=3D"true" /> > > > mapping=3D"mapping-ISOLatin1Accent.txt"/> > > > > replacement=3D" " replace=3D"all"/> > pattern=3D"([^\w\d\*=C3=A6=C3=B8=C3=A5=C3=86=C3=98=C3=85 ])" replacement= =3D"" replace=3D"all"/> > replacement=3D"$1" replace=3D"all"/> > synonyms=3D"synonyms_fsw.txt" expand=3D"true" /> > words=3D"stopwords.txt" enablePositionIncrements=3D"true" /> > > > > > > > > > > > -- > View this message in context: http://lucene.472066.n3.nabble.com/Filterin= g-Solr-Queries-tp4131924.html > Sent from the Solr - User mailing list archive at Nabble.com.