Re: Query syntax on Keyword field question

2004-03-24 Thread Incze Lajos
On Tue, Mar 23, 2004 at 08:48:11PM -0600, Chad Small wrote: > Thanks-you Erik and Incze. I now understand the issue > and I'm trying to create a "KeywordAnalyzer" as suggested > from you book excerpt, Erik: > > http://issues.apache.org/eyebrowse/[EMAIL PROTECTED]&msgNo=6727 > > However, not be

RE: Query syntax on Keyword field question

2004-03-24 Thread Chad Small
Ahh, without the bin on the javacc.home - 3.2 seems to work for me to. -Original Message- From: Chad Small Sent: Wed 3/24/2004 8:34 AM To: Lucene Users List Cc: Subject: RE: Query syntax on Keyword field question

RE: Query syntax on Keyword field question

2004-03-24 Thread Morus Walter
Chad Small writes: > I'm getting this with 3.2: > > javacc-check: > BUILD FAILED > file:D:/applications/lucene-1.3-final/build.xml:97: > ## > JavaCC not found. > JavaCC Home: /applications/javacc-3.2/bin > Jav

RE: Query syntax on Keyword field question

2004-03-24 Thread Chad Small
nal Message- From: Otis Gospodnetic [mailto:[EMAIL PROTECTED] Sent: Wed 3/24/2004 8:29 AM To: Lucene Users List Cc: Subject: RE: Query syntax on Keyword field question JavaCC 3.2 works for me.

RE: Query syntax on Keyword field question

2004-03-24 Thread Otis Gospodnetic
] > Sent: Wed 3/24/2004 8:00 AM > To: Lucene Users List > Cc: > Subject: RE: Query syntax on Keyword field question > > > > Hi Chad, > > > But I assume this fix won't come out for some time. I

RE: Query syntax on Keyword field question

2004-03-24 Thread Chad Small
Sent: Wed 3/24/2004 8:00 AM To: Lucene Users List Cc: Subject: RE: Query syntax on Keyword field question Hi Chad, > But I assume this fix won't come out

RE: Query syntax on Keyword field question

2004-03-24 Thread Chad Small
Query syntax on Keyword field question Hi Chad, > But I assume this fix won't come out for some time. Is there a way I can get this fix sooner? > I'm up against a deadline and would very much like this functionality.

RE: Query syntax on Keyword field question

2004-03-24 Thread Morus Walter
Hi Chad, > But I assume this fix won't come out for some time. Is there a way I can get this > fix sooner? > I'm up against a deadline and would very much like this functionality. Just get lucenes sources, change the line and recompile. The difficult part is to get a copy of JavaCC 2 (3 won'

RE: Query syntax on Keyword field question

2004-03-24 Thread Otis Gospodnetic
} > else > { > return true; > } > } > The test then returns with a space: > healthecare.domain.lucenesearch.KeywordAnalyzer: > [HW-NCI_TOPICS] > query.ToString = +category:"HW -NCI_TOPICS" +space > junit.

RE: Query syntax on Keyword field question

2004-03-24 Thread Chad Small
String = +category:"HW -NCI_TOPICS" +space junit.framework.ComparisonFailure: HW-NCI_TOPICS kept as-is Expected:+category:HW\-NCI_TOPICS +space Actual :+category:"HW -NCI_TOPICS" +space <note space where escape was. thanks, chad. -----Origina

RE: Query syntax on Keyword field question

2004-03-23 Thread Morus Walter
Chad Small writes: > Here is my attempt at a KeywordAnalyzer - although is not working? Excuse the > length of the message, but wanted to give actual code. > > With this output: > > Analzying "HW-NCI_TOPICS" > org.apache.lucene.analysis.WhitespaceAnalyzer: > [HW-NCI_TOPICS] > org.apache.

RE: Query syntax on Keyword field question

2004-03-23 Thread Chad Small
_TOPICS kept as-is Expected:+category:HW-NCI_TOPICS +space Actual :category:HW -"nci topics" +space See anything? thanks, chad. -Original Message- From: Chad Small Sent: Tue 3/23/2004 8:48 PM To: Lucene Users List Cc: Subject: RE: Query

RE: Query syntax on Keyword field question

2004-03-23 Thread Chad Small
3/23/2004 8:08 PM To: Lucene Users List Cc: Subject: Re: Query syntax on Keyword field question On Tue, Mar 23, 2004 at 08:10:15PM -0500, Erik Hatcher wrote: > QueryParser and Field.Keyword fields are a strange mix. For some

Re: Query syntax on Keyword field question

2004-03-23 Thread Incze Lajos
On Tue, Mar 23, 2004 at 08:10:15PM -0500, Erik Hatcher wrote: > QueryParser and Field.Keyword fields are a strange mix. For some > background, check the archives as this has been covered pretty > extensively. > > A quick answer is yes you can use MFQP and QP with keyword fields, > however you

Re: Query syntax on Keyword field question

2004-03-23 Thread Erik Hatcher
AIL PROTECTED] Cc: Subject: Query syntax on Keyword field question Hello, How can I format a query to get a hit? I'm using the StandardAnalyzer() at both index and search time. If

RE: Query syntax on Keyword field question

2004-03-23 Thread Chad Small
Sent: Tue 3/23/2004 10:57 AM To: [EMAIL PROTECTED] Cc: Subject: Query syntax on Keyword field question Hello, How can I format a query to get a hit? I'm using the StandardAnalyzer() at b

Query syntax on Keyword field question

2004-03-23 Thread Chad Small
Hello, How can I format a query to get a hit? I'm using the StandardAnalyzer() at both index and search time. If I'm indexing a field like this: luceneDocument.add(Field.Keyword("category","HW-NCI_TOPICS")); I've tried the following with no success: // String searchArgs = "HW\\-NCI_