From lucene-user-return-6327-apmail-jakarta-lucene-user-archive=jakarta.apache.org@jakarta.apache.org Tue Dec 02 17:18:59 2003 Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@www.apache.org Received: (qmail 64978 invoked from network); 2 Dec 2003 17:18:59 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 2 Dec 2003 17:18:59 -0000 Received: (qmail 81326 invoked by uid 500); 2 Dec 2003 17:18:48 -0000 Delivered-To: apmail-jakarta-lucene-user-archive@jakarta.apache.org Received: (qmail 81300 invoked by uid 500); 2 Dec 2003 17:18: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 81287 invoked from network); 2 Dec 2003 17:18:47 -0000 Received: from unknown (HELO mtiwmhc13.worldnet.att.net) (204.127.131.117) by daedalus.apache.org with SMTP; 2 Dec 2003 17:18:47 -0000 Received: from dymhp (ool-4350967b.dyn.optonline.net[67.80.150.123]) by worldnet.att.net (mtiwmhc13) with SMTP id <200312021718501130043j8ie> (Authid: dym@worldnet.att.net); Tue, 2 Dec 2003 17:18:50 +0000 Message-ID: <009f01c3b8f8$5a5eac60$6401a8c0@dymhp> From: "Dmitri Mamrukov" To: "Lucene Users List" References: <5DC9DA3ED5A9B64086C7612AAEE3487C032019EB@nwb-corpmail.microfocus.com> Subject: Re: Searching for - Date: Tue, 2 Dec 2003 12:18:24 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi Iain, There was a discussion about Dash Confusion in QueryParser (search for "t-shirt" - with quota symbols! - or Dash Confusion). They suggested to escape such words by putting quota symbols around them. For instance, ask your application "DISP-NAME" instead of DISP-NAME. Dmitri ----- Original Message ----- From: "Iain Young" To: "Lucene mailing list (E-mail)" Sent: Tuesday, December 02, 2003 12:01 PM Subject: Searching for - > Hi folks, another newbie question for you. > > I'm using Lucene to index huges chunks of source code, (cobol, jcl, c, java, > text documents etc). In some of these languages (such as cobol) it is valid > to have a variable name of DISP-NAME for example. The problem I have is that > when you enter this search string into the lucene query engine, it reads the > - character as a "NOT" modifier rather than as part of the word, and so I'm > getting incorrect results, (it basically does a search for DISP NOT NAME). > > Anyone any ideas as to how to get around this (can you 'escape' the modifier > characters so that Lucene doesn't interpret them as such for example)? > > Thanks, > Iain Young > http://www.microfocus.com > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: lucene-user-help@jakarta.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: lucene-user-help@jakarta.apache.org