Great info Morus,
After making the escape the dash change to the QueryParser:
Query query = QueryParser.parse(+category:HW\\-NCI_TOPICS AND SPACE,
description,
analyzer);
Hits hits = searcher.search(query);
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't
thanks. I was in the process of getting javacc3.2 setup. I'll have to hunt for 2.x.
chad.
-Original Message-
From: Morus Walter [mailto:[EMAIL PROTECTED]
Sent: Wed 3/24/2004 8:00 AM
To: Lucene Users List
Cc:
Subject: RE: Query
For others reference - here is the old version url:
https://javacc.dev.java.net/servlets/ProjectDocumentList?folderID=212
-Original Message-
From: Chad Small
Sent: Wed 3/24/2004 8:07 AM
To: Lucene Users List
Cc:
Subject: RE: Query
JavaCC 3.2 works for me.
Otis
--- Chad Small [EMAIL PROTECTED] wrote:
thanks. I was in the process of getting javacc3.2 setup. I'll have
to hunt for 2.x.
chad.
-Original Message-
From: Morus Walter [mailto:[EMAIL PROTECTED]
Sent: Wed 3/24/2004 8:00 AM
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
JavaCC JAR:
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
JavaCC JAR:
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
I want to create a knowledgebase but it needs to be something that does
not require a server to run constantly (like with using jsp). I just
needs to run on the Windows platform. Lucene works well with Windows
using an applet right?
Lucene is not dedicated to a special application type.
Your can integrate it's fonctionnalities in any program that can invoke java APIs.
In particular I don't think that Lucene can be invoked from an applet as the applet
API does not permit to read and write local files.
-Message
Hi,
The MultiSearcher 1.3 final keeps throwing exception when rewriting query.
java.lang.UnsupportedOperationException
org.apache.lucene.search.Query:combine:139
org.apache.lucene.search.MultiSearcher:rewrite:203
I still use the Query object before the rewriting, so the search seems
working
Is there an analyzer for WordPerfect files?
I have a need to be able to index WP files as well as MS files, pdfs, etc.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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 being all
I'd like to search for a phrase that contains the quote character. I've tried
escaping the quote character, but am receiving a ParseException from the
QueryParser:
For example to search for the phrase:
this is a test
I'm trying the following
QueryParser.parse(field:\This is a
Greetings. I have recently had to re-install my web server. Once
completed, however, I cannot get the Lucene search to work. It worked
before the crash and it works on my laptop. When conducting searches now,
I get the following message:
org.apache.cocoon.ProcessingException: Cannot access
Dear All,
Some time ago there was a discussion on modifying the definitions of
tokens in QueryParser so that the character '-' (dash), and others,
will be treated as part of a word.
Can someone please tell me the status of that discussion. Will these
changes actually be reflected in the
The source of your problem is simple UNIX permission:
java.io.IOException: Permission denied
at java.io.UnixFileSystem.createFileExclusively(Native Method)
at java.io.File.createNewFile(File.java:688)
at org.apache.lucene.store.FSDirectory$1.obtain(Unknown Source)
Figure
I just finished writing a chapter for Lucene in Action that deals with
that.
PDF: pdfbox.org
MS Word/Excel: jakarta.apache.org/poi
WP: http://www.google.com/search?q=java+word+perfect+parser
Note that what you need are parsers. The term Analyzer has a special
meaning in Lucene realm.
Otis
I committed those changes to CVS today. There is a bug entry in
Bugzilla from Morus Walter, which is now marked as fixed.
Otis
--- Ravi Rao [EMAIL PROTECTED] wrote:
Dear All,
Some time ago there was a discussion on modifying the definitions of
tokens in QueryParser so that the character
Thanks to Otis, Morus, and Erik for their responses to my question.
I see that my question is also related to the posting: Query syntax on
Keyword field question.
I tried all of your suggestions.
When using:
a) the tokens generated by the analyzer and
b) the parsed query (using the to_string
I get distinctly different results (java exception versus request
completion) for two queries:
this AND is
this OR is
I realize these are dumb queries, but they illustrate the problem.
The first gets:
error: java.lang.ArrayIndexOutOfBoundsException: -1 at
On Mar 24, 2004, at 5:58 PM, Morris Mizrahi wrote:
I think the custom analyzer I created is not properly doing what a
KeywordAnalyzer would do.
Erik, could you please post what KeywordAnalyzer should look like?
It should simply tokenize the entire input as a single token. Incze
Lajos posted a
Thanks Erik and Incze.
Sorry for this lengthy post.
Here is the class:
import org.apache.lucene.analysis.*;
import org.apache.lucene.analysis.standard.StandardFilter;
import java.io.Reader;
import java.util.Hashtable;
public class KeywordAnalyzer extends Analyzer {
public static final
Was there any conclusion to message:
http://issues.apache.org/eyebrowse/[EMAIL PROTECTED]msgNo=6762
Regarding Ordering by a Field? I have a similar need and didn't see the resolusion
in that thread. Is it a current patch to the 1.3-final, I could see one?
My other option, I guess, is
Chad,
Was there any conclusion to message:
http://issues.apache.org/eyebrowse/[EMAIL PROTECTED]msgNo=6762
Regarding Ordering by a Field? I have a similar need and didn't see the
resolusion in that thread. Is it a current patch to the 1.3-final, I could
see one?
You can see the resolution
25 matches
Mail list logo