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 = {
"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
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:[EMAIL PROTECTED]
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:[EMAIL PROTECTED]
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]