Question Deleting/Reindexing Files

2002-03-20 Thread Joe Hajek
Hi, I am using Lucene for indexing a relatively large article based system where articles change from time to time so i have to reindex them. reindexing had the effekt that a query would return the hit for a file multiple times (according to the number of updates. The only solution to that

RE: Question Deleting/Reindexing Files

2002-03-20 Thread Spencer, Dave
[1] There's no update so delete and then add is what you want. [2] I have had the same problems w/ using an IndexWriter and IndexReader at the same time and getting a locking problem when deleting. I think I sent mail to the list w/ a test case a week ago [disclaimer: this is not a complaint!]

RE: Multiple field searching

2002-03-20 Thread Aruna Raghavan
I use a BooleanQuery and add individual queries to it, it is working for me. -Original Message- From: Otis Gospodnetic [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 20, 2002 1:59 AM To: Lucene Users List; [EMAIL PROTECTED] Subject: Re: Multiple field searching I'm using

RE: Question Deleting/Reindexing Files

2002-03-20 Thread Otis Gospodnetic
The standard answer is try deleting/adding in batches instead of individually. Seems more efficient, too, if you can write your application that way. That is what you are essentially doing by writing to a separate index and then doing a bunch of deletions, followed by re-additions. I know I'm

Retrieving Field info from an index

2002-03-20 Thread Lex Lawrence
Greetings- I am interested in getting information about the available Fields in an index. Once I get hold of a Field object, it can provide everything I need, but I'm having trouble getting all of them. I can use Document.fields() to get the stored Fields from an arbitrary document in the

Re: Question Deleting/Reindexing Files

2002-03-20 Thread Ype Kingma
Joe, Hi, I am using Lucene for indexing a relatively large article based system where articles change from time to time so i have to reindex them. reindexing had the effekt that a query would return the hit for a file multiple times (according to the number of updates. The only solution to

Re: Multiple field searching

2002-03-20 Thread Tate Jones
Thanks for all your help. The only way i could get it to work was the following BooleanQuery bQuery = new BooleanQuery(); TermQuery tSubject = new TermQuery( new Term( SUBJECT_KEY, subject )); TermQuery tKeyword = new TermQuery( new Term( KEYWORD_KEY, keyword ));

searching with a '/'

2002-03-20 Thread Tate Jones
If i attempt a search that contains a forward slash '/' the following exception occurs -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: searching with a '/'

2002-03-20 Thread Tate Jones
Gee KMail is crazy at times On Thu, 21 Mar 2002 11:08, Tate Jones wrote: If i attempt a search that contains a forward slash '/' the following exception occurs testcase name=testFullTextStringPool time=3.59 error type=java.lang.NullPointerExceptionjava.lang.NullPointerException at

[OT] Extracting text from PDF via Etymon Pj

2002-03-20 Thread Kelvin Tan
I've received a couple of private mails from users on how to extract text from PDF files using the Etymon lib. I thought I'd just post it for the archives in case anyone's interested. If you still need help just holler! The references to cat are Log4j's category. You can remove it without

Re: Multiple field searching

2002-03-20 Thread Kelvin Tan
Tate, snip Could not see how the MultiFieldQueryParser could take in multiple queries. ie. SUBJECT, KEYWORD CONTENT field have different values to be queried. It only takes a single query. You're right in that it doesn't. What I'm wondering right now, is if that's a reasonably common

Re: Multiple field searching

2002-03-20 Thread Kelvin Tan
- Original Message - From: Otis Gospodnetic [EMAIL PROTECTED] To: Lucene Users List [EMAIL PROTECTED]; Kelvin Tan [EMAIL PROTECTED] Sent: Thursday, March 21, 2002 2:13 PM Subject: Re: Multiple field searching Kelvin, Right now I can't imagine a situation where one would need to pass