Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@apache.org Received: (qmail 69302 invoked from network); 11 Jun 2003 19:54:16 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 11 Jun 2003 19:54:16 -0000 Received: (qmail 25712 invoked by uid 97); 11 Jun 2003 19:56:36 -0000 Delivered-To: qmlist-jakarta-archive-lucene-user@nagoya.betaversion.org Received: (qmail 25705 invoked from network); 11 Jun 2003 19:56:36 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 11 Jun 2003 19:56:36 -0000 Received: (qmail 69026 invoked by uid 500); 11 Jun 2003 19:54:12 -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 69015 invoked from network); 11 Jun 2003 19:54:12 -0000 Received: from unknown (HELO sba03.sba.cj.com) (207.71.241.81) by daedalus.apache.org with SMTP; 11 Jun 2003 19:54:12 -0000 X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: query question "in trouble" Date: Wed, 11 Jun 2003 12:54:17 -0700 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: query question "in trouble" Thread-Index: AcMwUqNvpDaFuXyRSHy09ckACowdVwAABdLgAAAeeGA= From: "Ryan Clifton" To: "Lucene Users List" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Ok, well you were right. public class StandardAnalyzer extends Analyzer { private Hashtable stopTable; /** An array containing some common English words that are usually = not useful for searching. */ public static final String[] STOP_WORDS =3D { "a", "and", "are", "as", "at", "be", "but", "by", "for", "if", "in", "into", "is", "it", "no", "not", "of", "on", "or", "s", "such", "t", "that", "the", "their", "then", "there", "these", "they", "this", "to", "was", "will", "with" }; Thanks. -----Original Message----- From: Ryan Clifton=20 Sent: Wednesday, June 11, 2003 12:52 PM To: Lucene Users List Subject: RE: query question "in trouble" Actually, I'm using the StandardAnalyzer. I pretty much using an = off-the-shelf implementation of Lucene. -----Original Message----- From: Aviran Mordo [mailto:amordo@infosciences.com] Sent: Wednesday, June 11, 2003 12:50 PM To: 'Lucene Users List' Subject: RE: query question "in trouble" In is probably a STOP word in your analyzer -----Original Message----- From: Ryan Clifton [mailto:rclifton@cj.com]=20 Sent: Wednesday, June 11, 2003 3:13 PM To: Lucene Users List Subject: query question "in trouble" Hello, Upon reviewing the results of some queries recently I noticed that the query: "in trouble" always searches for "trouble". Is 'in' a keyword that I'm not aware of? I searched the whole query syntax page and didn't see it mentioned. I tried "an trouble" and the query worked fine. The query parser appears to be stripping out 'in', but not doing anything with it. Here's my log: ******Query: "in trouble" 2003-06-11 12:08:50,540 DEBUG Searching for: textcontent:trouble (Query.toString()) 2003-06-11 12:08:50,569 DEBUG 6582 total matching documents ******Query: "an trouble" 2003-06-11 12:06:11,275 DEBUG Searching for: textcontent:"an trouble" (Query.toString()) 2003-06-11 12:06:12,342 DEBUG 1 total matching documents Any ideas? Thanks. --------------------------------------------------------------------- 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 --------------------------------------------------------------------- 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