Re: lucene index parser problem

2004-09-07 Thread Patrick Burleson
Why oh why did you send this to the tomcat lists? Don't cross post! Especially when the question doesn't even apply to one of the lists. Patrick On Tue, 7 Sep 2004 16:35:35 -0400, hui liu [EMAIL PROTECTED] wrote: Hi, I have such a problem when creating lucene index for many html files:

Re: lucene locks index, tomcat has to stop and restart

2004-09-07 Thread Patrick Burleson
This isn't a Tomcat specific problem, but sounds like a problem with how you the reader is being used. Somewhere in the JSP a IndexReader variable was probably assigned to. A line something like: IndexReader ir = IndexReader.open(somepath); To close the reader, and thus solve the problem,

Re: lucene locks index, tomcat has to stop and restart

2004-09-07 Thread Patrick Burleson
tried to change it to static, but got even more errors. I am wondering how do you use lucene? Has anyone met with the same thing? Thanks a lot. Ivy. On Tue, 7 Sep 2004 17:03:00 -0400, Patrick Burleson [EMAIL PROTECTED] wrote: This isn't a Tomcat specific problem, but sounds

Re: AnalyZer HELP Please

2004-08-17 Thread Patrick Burleson
Karthik, What you would want to do with the split tokens ( New and Year ) is then create a PhraseQuery containing a Term object for each token. This should do what you want. As Erik said, QueryParser would have done this internally, only if you actually sent in the quotes...not just New Year, but

[OT] Re: Restoring a corrupt index

2004-08-17 Thread Patrick Burleson
Hmm, while I agree that UltraEdit is the best on Windows, since they were using KHexEdit, I doubt it's an option for them on Linux (although I do know it runs fine under Wine). Patrick On Tue, 17 Aug 2004 10:39:27 -0400, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: http://www.ultraedit.com/ is

Re: AnalyZer HELP Please

2004-08-17 Thread Patrick Burleson
I believe that is correct. So, the word new is never being indexed since it is a stop word. Patrick On Tue, 17 Aug 2004 20:26:19 +0530, Karthik N S [EMAIL PROTECTED] wrote: Hi Guys Apologies.. Correct me If I am wrong... During Indexing process, if the Analyzer has a word

Re: Swapping Indexes?

2004-08-17 Thread Patrick Burleson
Forward back to list. -- Forwarded message -- From: Patrick Burleson [EMAIL PROTECTED] Date: Tue, 17 Aug 2004 11:30:19 -0400 Subject: Re: Swapping Indexes? To: Stephane James Vaucher [EMAIL PROTECTED] Stephane, Thank you for the ideas. I'm going about implenting idea 1 (I like

Re: Swapping Indexes?

2004-08-17 Thread Patrick Burleson
On Tue, 17 Aug 2004 13:17:10 -0400 (EDT), Stephane James Vaucher Actually, I use a IndexWriter in overwrite mode on the master dir and merge the temp dir. This cleans up the old master. I'm a bit of a Lucene newbie here, and I am trying to understand what you mean by merge the temp dir? Do

Re: Finding All?

2004-08-16 Thread Patrick Burleson
Thanks very much for all of the replies. I have gone for the ALL field trick. Works very well for me. Patrick On Fri, 13 Aug 2004 21:02:49 -0400, Erik Hatcher [EMAIL PROTECTED] wrote: On Aug 13, 2004, at 4:01 PM, [EMAIL PROTECTED] wrote: A ranged query that covers the full range does the

Swapping Indexes?

2004-08-16 Thread Patrick Burleson
I've read in the docs about updating an index and its suggestion reguarding swapping out indexes with a directory rename. Here's my question, how to do this when searches are running live? Say I have a directory that holds the current valid index: C:\myindex and when I'm running my nightly

Snowball Analyzer thread-safe?

2004-08-16 Thread Patrick Burleson
I don't know if this is the appropriate place to ask this, but does anyone know if the Snowball Analyzers (or analyzers in general) are thread-safe? Or should I create a new one every time I need to tokenize a String? Thanks, Patrick

Re: Snowball Analyzer thread-safe?

2004-08-16 Thread Patrick Burleson
Pardon the reply to self, but it would appear looking at the source of SnowballAnalyzer.java, that it is thread-safe as it uses all locally defined variables for the tokenStream() method. Or am I missing something? Thanks, Patrick On Mon, 16 Aug 2004 17:45:48 -0400, Patrick Burleson [EMAIL

Finding All?

2004-08-13 Thread Patrick Burleson
Is there a way for lucene to find all documents? Say if I have a search input and someone puts nothing in I want to go ahead and return everything. Passing * to QueryParser was not pretty. Thanks, Patrick - To unsubscribe,

Re: Finding All?

2004-08-13 Thread Patrick Burleson
in which they were indexed. T p.s. You can probably do something using IndexReader directly... but the nice thing about this approach is that you are still just using a simple query. -Original Message- From: Patrick Burleson [mailto:[EMAIL PROTECTED] Sent: Friday, August 13

Searching without a specified field

2004-08-11 Thread Patrick Burleson
I would like to build a search that takes a string and parses it, then uses that string to search all fields available in the index. Is that possible without building up a huge boolean query of all my fields? I may not know the field names at runtime. Thanks, Patrick

Re: Searching without a specified field

2004-08-11 Thread Patrick Burleson
, Patrick Burleson wrote: I would like to build a search that takes a string and parses it, then uses that string to search all fields available in the index. Is that possible without building up a huge boolean query of all my fields? I may not know the field names at runtime. Thanks