RE: Query syntax on Keyword field question

2004-03-24 Thread Chad Small
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);

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't

RE: Query syntax on Keyword field question

2004-03-24 Thread Chad Small
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

RE: Query syntax on Keyword field question

2004-03-24 Thread Chad Small
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

RE: Query syntax on Keyword field question

2004-03-24 Thread Otis Gospodnetic
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

RE: Query syntax on Keyword field question

2004-03-24 Thread Chad Small
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:

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 JavaCC JAR:

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

lucene usage without website

2004-03-24 Thread Pleasant, Tracy
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?

RE: lucene usage without website

2004-03-24 Thread Cocula Remi
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

multiple indices seacher

2004-03-24 Thread hui
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

analyzer for word perfect?

2004-03-24 Thread Charlie Smith
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]

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 being all

Searching for a phrase that contains quote character

2004-03-24 Thread danrapp
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

Cannot access hits

2004-03-24 Thread Russell S Koonts
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

Changes to QueryParser.jj: Status?

2004-03-24 Thread Ravi Rao
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

Re: Cannot access hits

2004-03-24 Thread Otis Gospodnetic
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

Re: analyzer for word perfect?

2004-03-24 Thread Otis Gospodnetic
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

Re: Changes to QueryParser.jj: Status?

2004-03-24 Thread Otis Gospodnetic
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

RE: Zero hits for queries ending with a number

2004-03-24 Thread Morris Mizrahi
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

possible parse problem

2004-03-24 Thread Surowiec, William
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

Re: Zero hits for queries ending with a number

2004-03-24 Thread Erik Hatcher
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

RE: Zero hits for queries ending with a number

2004-03-24 Thread Morris Mizrahi
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

How to order search results by Field value?

2004-03-24 Thread Chad Small
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

Re: How to order search results by Field value?

2004-03-24 Thread Joachim Schreiber
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