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 4E163D040 for ; Thu, 2 Aug 2012 08:42:03 +0000 (UTC) Received: (qmail 33775 invoked by uid 500); 2 Aug 2012 08:41:59 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 33633 invoked by uid 500); 2 Aug 2012 08:41:59 -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 33620 invoked by uid 99); 2 Aug 2012 08:41:59 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Aug 2012 08:41:59 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests=FSL_RCVD_USER,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [78.47.156.132] (HELO mail.cms-agenten.de) (78.47.156.132) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Aug 2012 08:41:50 +0000 Received: by mail.cms-agenten.de (Postfix, from userid 5001) id 0A88E25148; Thu, 2 Aug 2012 10:41:29 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on vhs1.cms-agenten.de X-Spam-Level: Received: from [10.0.7.68] (ppp-46-244-141-102.dynamic.mnet-online.de [46.244.141.102]) by mail.cms-agenten.de (Postfix) with ESMTPSA id 52E0724FCA for ; Thu, 2 Aug 2012 10:41:24 +0200 (CEST) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Apple Message framework v1278) Subject: Re: matching with whole field From: Chantal Ackermann In-Reply-To: Date: Thu, 2 Aug 2012 10:41:25 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: References: To: solr-user@lucene.apache.org X-Mailer: Apple Mail (2.1278) X-Old-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, FSL_RCVD_USER autolearn=ham version=3.3.1 Hi Elisabeth, try adding the same tokenizer chain for "query", as well, or simply = remove the type=3D"index" from the analyzer element. Your chain is analyzing the input of the indexer and removing diacritics = and lowercasing. With your current setup, the input to the search is not = analyzed likewise so inputs that are not lowercased or contain = diacritics will not match. You might want to use the analysis frontend in the Admin UI to see how = input to the indexer and the searcher is transformed and matched. Cheers, Chantal Am 02.08.2012 um 09:56 schrieb elisabeth benoit: > Hello, >=20 > I am using Solr 3.4. >=20 > I'm trying to define a type that it is possible to match with only if > request contains exactly the same words. >=20 > Let's say I have two different values for ONLY_EXACT_MATCH_FIELD >=20 > ONLY_EXACT_MATCH_FIELD: salon de coiffure > ONLY_EXACT_MATCH_FIELD: salon de coiffure pour femmes >=20 > I would like to match only with the first ont when requesting Solr = with > fq=3DONLY_EXACT_MATCH_FIELD:(salon de coiffure) >=20 > As far has I understood, the solution is to do not tokenize on white > spaces, and use instead solr.KeywordTokenizerFactory >=20 >=20 > My actual type is defined as followed in schema.xml >=20 > omitNorms=3D"true" positionIncrementGap=3D"100"> > > > mapping=3D"mapping-ISOLatin1Accent.txt"/> > > > > > > >=20 > But matching with fields with more then one word doesn't work. Does = someone > have a clue what I am doing wrong? >=20 > Thanks, > Elisabeth