Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@www.apache.org Received: (qmail 34688 invoked from network); 7 Jul 2004 20:16:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 7 Jul 2004 20:16:47 -0000 Received: (qmail 58113 invoked by uid 500); 7 Jul 2004 20:16:48 -0000 Delivered-To: apmail-jakarta-lucene-user-archive@jakarta.apache.org Received: (qmail 58047 invoked by uid 500); 7 Jul 2004 20:16:48 -0000 Mailing-List: contact lucene-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Lucene Users List" Reply-To: "Lucene Users List" Delivered-To: mailing list lucene-user@jakarta.apache.org Received: (qmail 58030 invoked by uid 99); 7 Jul 2004 20:16:48 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_80_90,HTML_MESSAGE X-Spam-Check-By: apache.org Received: from [209.167.138.140] (HELO tango.casebank.com) (209.167.138.140) by apache.org (qpsmtpd/0.27.1) with ESMTP; Wed, 07 Jul 2004 13:16:46 -0700 Received: from plitvak ([172.17.200.95]) by tango.casebank.com with Microsoft SMTPSVC(5.0.2195.6713); Wed, 7 Jul 2004 16:16:30 -0400 From: "Polina Litvak" To: Subject: Problem with match on a non tokenized field. Date: Wed, 7 Jul 2004 16:19:40 -0400 Message-ID: <017b01c4645f$bb903f40$5fc811ac@plitvak> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_017C_01C4643E.347E9F40" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2616 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 Importance: Normal X-OriginalArrivalTime: 07 Jul 2004 20:16:30.0843 (UTC) FILETIME=[4A89C4B0:01C4645F] X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N ------=_NextPart_000_017C_01C4643E.347E9F40 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit I have a Lucene Document with a field named Code which is stored and indexed but not tokenized. The value of the field is ABC5-LB. The only way I can match the field when searching is by entering Code:"ABC5-LB" because when I drop the quotes, every Analyzer I've tried using breaks my query into Code:ABC5 -Code:LB. I need to be able to match this field by doing something like Code:ABC5-L*, therefore always using quotes is not an option. How would I go about writing my own analyzer that will not tokenize the query ? Thanks, Polina ------=_NextPart_000_017C_01C4643E.347E9F40--