Updating the index and searching

2005-09-07 Thread Paul . Illingworth
Hello, I have an index into which documents get added and updated (by deleting and adding). When I run queries on the index these have to take into account all changes on the index so I open a new IndexReader. What I am finding is that when the index is large the opening of the index takes a c

aslib cranfield test collection

2005-09-07 Thread Gusenbauer Stefan
Sorry for that offtopic message but does anyone has experiences with the aslib cranfield test collection or does anyone know where i can get it? thanks in advance stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional c

Re: Updating the index and searching

2005-09-07 Thread Daniel Naber
On Wednesday 07 September 2005 10:44, [EMAIL PROTECTED] wrote: > account all changes on the index so I open a new IndexReader. What I am > finding is that when the index is large the opening of the index takes a > considerable time with the effect that queries appear to take a long > time to run.

Lucene in 1 week in Dallas

2005-09-07 Thread netsql
http://www.javamug.org has a Lucene seminar. So if you are in Dallas Unrelated: Here is yet another example of using (free) roomity (that uses lucene) to do a search for "JSF", click http://roomity.com/launch.jsp?search=jsf .V -

Re: Lucene in 1 week in Dallas

2005-09-07 Thread Erik Hatcher
On Sep 7, 2005, at 7:03 AM, netsql wrote: http://www.javamug.org has a Lucene seminar. So if you are in Dallas Thanks for the announcement :) See ya there! Erik - To unsubscribe, e-mail: [EMAIL PROTECTED] For addi

AW: limit return results

2005-09-07 Thread Kunemann Frank
Hi, HitCollector sounds very interesting - do you have an example for how to use it? Frank -Ursprüngliche Nachricht- Von: Otis Gospodnetic [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 7. September 2005 05:28 An: java-user@lucene.apache.org Cc: Murray Altheim Betreff: Re: limit return r

Re: AW: limit return results

2005-09-07 Thread Otis Gospodnetic
Look at the code that comes with Lucene in Action. Here are references, page numbers, etc.: http://www.lucenebook.com/search?query=hitcollector Otis --- Kunemann Frank <[EMAIL PROTECTED]> wrote: > Hi, > > HitCollector sounds very interesting - do you have an example for how > to use it? >

Re: limit return results

2005-09-07 Thread Yonik Seeley
You normally just can't break out of the HitCollector and get meaningful results. The problem is that you get unordered (or rather index order) results from a HitCollector, not ordered by score or any sort. To get the highest 100 docs by score, you normally need to see *all* the hits. On 9/6/05

RE: Switching from FSDirectory to RAMDirectory

2005-09-07 Thread Peter Gelderbloem
I got it working, and the off-the-top-of-your-head answer was the right one. Thanks Peter Gelderbloem -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris Hostetter Sent: 06 September 2005 18:53 To: java-user@lucene.apache.org Subject: Re: Switching f

limit lucene result

2005-09-07 Thread haipeng du
The reason that I want to limit returned result is that I do not want to get out of memory problem. I index lucene with 3 million documents. Sometimes, searching will return millions of fields back to me. I just want to get the first 100, for example , to show them to user. Even, I use search(query

Re: limit lucene result

2005-09-07 Thread Yonik Seeley
The Hits object retrieves the documents lazily, so just ask it for the first 100. -Yonik On 9/7/05, haipeng du <[EMAIL PROTECTED]> wrote: > > The reason that I want to limit returned result is that I do not want > to get out of memory problem. I index lucene with 3 million documents. > Sometime

Re: Updating the index and searching

2005-09-07 Thread Chris Hostetter
The best advice I can give on this topic is don't open a new IndexReader for every search. There is a lot of caching that goes on under the covers (particularly when you sort by things other then SCORE) which is completely wasted if you open a new IndexReader everytime. If you use Filters, then

MultiSearcher "refresh" when underlying searchers need to be recreated?

2005-09-07 Thread Ali Rouhi
Hi I have a general question about the cost of creating MultiSearchers. Suppose you have created a MultiSearcher using a large number of IndexSearchers, let's exaggerate to highlight the issue and assume we put an array of 100 IndexSearchers over large indexes in the MultiSearcher constructor.

lia demos without ant

2005-09-07 Thread Gasi
Hallo, IBecause of less or better say no experience in Ant I try to run some demo applications out of the LuceneInAction Examples folder. For example I wanted to test AnalyzerDemo.java. I set the -classpath c:/LuceneInAction/lia/analysis because there is AnalyzerDemo.java on my system. I tried

Re: lia demos without ant

2005-09-07 Thread Otis Gospodnetic
Hi Gasi, Please see page xxxii in LIA, section Author Online, and use that for LIA questions, so we don't bother others with LIA-specific stuff. However, your problem doesn't have to do so much with LIA, either. It's a basic Java question, and it looks like the part that you have been misunderst

Location of code which determines a Hit for PhraseQuery

2005-09-07 Thread Sean O'Connor
Hi, I am trying to work through the Hit collection process for a PhraseQuery (using an exact phrase). For an example search, say I'm looking for: "lucene action" (quotes indicating exact phrase) in a one doc, one field index consisting of: wow, lucene rocks, lucene action items are cool, v