cost of opening IndexSearcher

2003-05-29 Thread Herman Chen
Hello,

Is the cost of opening an IndexSearcher proportional to anything, e.g. 
physical index size, number of segments?  Thanks.

--
Herman
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Question on having IndexReader and IndexWriter simultaneously

2002-11-22 Thread Herman Chen
Hi,

According to my experimentation, I am unable to create an IndexWriter
while any IndexReader/Searcher is open on the same index.  Since I have
all search threads share one IndexReader, each time I need to create an
IndexWriter I have to wait until all searches are done so that I can close the
IndexReader.  Only then I am able to create an IndexWriter.  Does this
concurrency problem really exist?  Because one problem I have now is
starvation of modification threads.  Thanks.

--
Herman




Re: Change in Range Query Syntax?

2002-11-13 Thread Herman Chen
I was surprised by this change too.  I think the syntax changed from [from -
to] to [from to].

- Original Message -
From: Terry Steichen [EMAIL PROTECTED]
To: Lucene Users Group [EMAIL PROTECTED]
Sent: Thursday, November 14, 2002 12:18 AM
Subject: Change in Range Query Syntax?


I recently upgraded (from 1.2) to the latest build (1.3.1) and found that my
range queries no longer work.

Here's what a simple query against my index yields:
pub_date:20021109 yields 133 hits
pub_date:20021110 yields 225 hits
pub_date:2002 yields 144 hits

With 1.2RC5 and 1.2, here's how the range query works:
pub_date:[20021109 - 2002] yields 502 hits (note space on both sides of
dash)

With 1.3 (nightly build as of 11/11/02), here's how the range query now
works:
pub_date:[20021109 - 2002] yields 0 hits (note space on both sides of
dash)
pub_date:[20021109- 2002] yields 369 hits (note space only following the
dash)
pub_date:[20021109-2002] yields 0 hits (note no spaces on either side of
dash)

Also, note that pub_date:]20021109- 20021110] does *not* include the hits
for 20021109 as it did previously.

The errors (ParseExceptions) generated were these:
 Was expecting one of:
 TO ...
 RANGEIN_QUOTED ...
 RANGEIN_GOOP ...
 , Encountered ] at line 1, column 27.
 Was expecting one of:
 TO ...
 RANGEIN_QUOTED ...
 RANGEIN_GOOP ...

Has the syntax changed, or is this a bug?

Regards,

Terry





--
To unsubscribe, e-mail:   mailto:lucene-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:lucene-user-help;jakarta.apache.org




Date can't be before 1970?

2002-11-03 Thread Herman Chen
Hi,

I noticed that DateField.dateToString does not allow dates before 1970.  Is the 
limitation caused by java's Date or by the way it needs to be encoded for the index.  
What is the suggested solution to deal with dates prior to 1970?  Thanks.

--
Herman



Read-only mode index

2002-09-08 Thread Herman Chen

Hi,

I recall having seen discussions on the need for accessing index in read-only mode.  
Has there been a solution suggested or any contributions?  Thanks.

--
Herman



Maximum indexable data

2002-03-07 Thread Herman Chen

Hi,

Is there a limit for the amount of data indexable by a segment?
If so is there a limit for searching?  i.e. can I give MultiSearcher
several indices that are all close to the maximum size.  Thanks.

--
Herman