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
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
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
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.
]
> 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
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
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.
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'
}
> 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.
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
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.
_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
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
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
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
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
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_
17 matches
Mail list logo