Re: When are deletions permanent?

2005-02-07 Thread yahootintin . 1247688
When you close the IndexReader you know the delete is commited to disk. I believe calling the commit method will also guarantee that all changes are written to disk. --- Lucene Users List lucene-user@jakarta.apache.org wrote: Hi everyone, I need to update a document in Lucene. I

Re: Optimize not deleting all files

2005-02-04 Thread yahootintin . 1247688
Ernestor, what version of Lucene are you running? --- Lucene Users List lucene-user@jakarta.apache.org wrote: Hi all We have the same problem. We guess that the problem is that windows lock files. Our enviroment: Windows 2000 Tomcat 5.5.4 Ernesto. [EMAIL PROTECTED]

Re: Optimize not deleting all files

2005-02-04 Thread yahootintin . 1247688
Yes, I believe my problem is related to open IndexReaders. The issues is that we can't shut down our live search application while we wait for a 10 minute optimization. Search is a major part of our application and removing the feature would significantly affect our end users (even though we run

Optimize not deleting all files

2005-02-03 Thread yahootintin . 1247688
Hi, When I run an optimize in our production environment, old index are left in the directory and are not deleted. My understanding is that an optimize will create new index files and all existing index files should be deleted. Is this correct? We are running Lucene 1.4.2 on Windows.

Re: Locking issue

2004-11-10 Thread yahootintin . 1247688
No need to address individuals here. Sorry about that. I just respect the knowledge that you and Otis have about Lucene so that's why I was asking you specifically. With the information provided, I have no idea what the issue may be. Running the small sample file that is attached to the

Re: Locking issue

2004-11-10 Thread yahootintin . 1247688
Hi, With the information provided, I have no idea what the issue may be. Is there some information that I should post that will help determine why Lucene is giving me this error? Thanks. --- Lucene Users List [EMAIL PROTECTED] wrote: On Nov 10, 2004, at 2:17 AM, [EMAIL

Re: Locking issue

2004-11-10 Thread yahootintin . 1247688
I added it to Bugzilla like you suggested: http://issues.apache.org/bugzilla/show_bug.cgi?id=32171 Let me know if you see any way to get around this issue. --- Lucene Users List [EMAIL PROTECTED] wrote: Whoops! Looks like my attachment didn't make it through. I'm re-attaching my simple

Re: Locking issue

2004-11-09 Thread yahootintin . 1247688
Otis or Erik, do you know if a Reader continously opening should cause the Writer to fail with a Lock obtain timed out error? --- Lucene Users List [EMAIL PROTECTED] wrote: The attached Java file shows a locking issue that occurs with Lucene. One thread opens and closes an IndexReader.

Windows Bug?

2004-11-08 Thread yahootintin . 1247688
Hi, My understanding is that I can have an IndexReader open for searching (as long as it doesn't delete) while an IndexWriter is updating the index. I wrote a simple test app to prove this and it works great on Mac OS X, Java 1.4.2 and Lucene 1.4.2. It fails on Windows XP, Java 1.4.2 and

Re: Windows Bug?

2004-11-08 Thread yahootintin . 1247688
Thanks! I just figured that out. I was passing true by mistake. --- Lucene Users List [EMAIL PROTECTED] wrote: The reason this is failing is because you are trying to create a new index in the directory. It works on *nix file systems because you can delete an open file on those

Re: Locks and Readers and Writers

2004-11-05 Thread yahootintin . 1247688
Ok, I simplified my test case a little... I removed the UNC share which is a remote file share that Windows supports. I have two processes running on the same Windows XP machine. 1) The first process uses an IndexWriter to writes to the index and then closes the IndexWriter. 2) The first

Re: Locks and Readers and Writers

2004-10-29 Thread yahootintin . 1247688
Hi Christoph, Thats what I thought. But what I'm seeing is this: - open reader for searching (the reader is opening an index on a remote machine (via UNC) which takes a couple seconds) - meanwhile the other service opens an IndexWriter and adds a document (the index writer determines that

Locks and Readers and Writers

2004-10-27 Thread yahootintin . 1247688
Hi, I'm getting: java.io.IOException: Lock obtain timed out I have a writer service that opens the index to delete and add docs. I have a reader service that opens the index for searching only. This error occurs when the reader service opens the index (this takes about 500ms).

IndexReader / IndexSearcher

2004-09-29 Thread yahootintin . 1247688
I'm opening a new IndexReader for every search request which obviously isn't the best option. If I open a reader can I use the same searcher for multiple requests that are happening simultaneously? If I call close on the searcher will it close for all the instances?

Sorting Info

2004-09-27 Thread yahootintin . 1247688
I'm interested in doing sorting in Lucene. Is there a FAQ or an article that will show me how to do this? I already have my indexing and searching working. Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

RE: When does IndexReader pick up changes?

2004-07-29 Thread yahootintin . 1247688
Thanks for the info! --- Lucene Users List [EMAIL PROTECTED] wrote: AFAIK you don't have to close the writer -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, July 29, 2004 11:17 AM To: [EMAIL PROTECTED] Subject: RE: When does

When does IndexReader pick up changes?

2004-07-28 Thread yahootintin . 1247688
Hi, If I do this: - open index writer - add document - open reader - search - close reader - close writer Will the reader pick up the document that was added to the index since it was opened after the document was added? Or will it only pick up changes that occur after

Re: When does IndexReader pick up changes?

2004-07-28 Thread yahootintin . 1247688
Hi, Does anyone know if the IndexWriter has to be closed for an IndexReader to pick up the changes? Thanks. --- Lucene Users List [EMAIL PROTECTED] wrote: Hi, If I do this: - open index writer - add document - open reader - search with reader - close reader

Powered By Lucene image?

2004-07-15 Thread yahootintin . 1247688
Hi, Are there any powered by Lucene images? I thought there used to be some on the site but I can't find them now. Any help is appreciated! Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Exact match search

2004-07-12 Thread yahootintin . 1247688
Hi, I want to match documents that exactly equal a certain value, not just contain it. If I search for foo in Lucene I get back documents like these: foo foo bar bar foo Is there a way to just get the ones that exactly equal the value I'm searching for? In this case, I want to only

Pool of IndexReaders or Pool of Searchers?

2004-07-10 Thread yahootintin . 1247688
Hi, I have multiple threads reading an index. Should they all be using the same IndexReader and using a pool of IndexSearchers? Or should they be using a pool of IndexReaders? Basically, one reader or many? Thanks. -

Re: Searching for asterisk in a term

2004-07-07 Thread yahootintin . 1247688
Can you recommend an analyzer that doesn't discard '*' or '/'? --- Lucene Users List [EMAIL PROTECTED] wrote: The first thing you'll want to check is that you are using an Analyzer that does not discard that '*' before indexing. StandardAnalyzer, for instance, will discard it. Check one

PhraseQuery with Wildcards?

2004-07-07 Thread yahootintin . 1247688
Hi, Is there any way to do a PhraseQuery with Wildcards? I'd like to search for: MyField:foo bar* I thought I could cobble something together using PhraseQuery and Wildcards but I couldn't get this functionality to work due to my lack of experience with Lucene. Is there a way to do

Storing dates as longs

2004-06-28 Thread yahootintin . 1247688
Hi, I'm storing my dates as longs. The longs are converted to strings and padded with zeros. Am I going to run into issues with this? Based on other mailing list postings, I suspect that this may cause the too many boolean queries issue when I search for date ranges. Is this true? What