RE: Search Performance

2005-02-18 Thread David Townsend
Are you creating new IndexSearchers or IndexReaders on each search? Caching your IndexSearchers has a dramatic effect on speed. David Townsend -Original Message- From: Michael Celona [mailto:[EMAIL PROTECTED] Sent: 18 February 2005 15:55 To: Lucene Users List Subject: Search

RE: Search Performance

2005-02-18 Thread David Townsend
February 2005 16:15 To: Lucene Users List Subject: Re: Search Performance Try a singleton pattern or an static field. Stefan Michael Celona wrote: I am creating new IndexSearchers... how do I cache my IndexSearcher... Michael -Original Message- From: David Townsend [mailto:[EMAIL PROTECTED

RE: Multi-threading problem: couldn't delete segments

2005-01-13 Thread David Townsend
The problem could be you're writing to an index with multiple processes. This can happen if you're using a shared file system (NFS?). We saw this problem when we had two IndexWriters getting access to a single index at the same time. Usually if you're working on a single machine the file

Lucene Book in UK

2005-01-06 Thread David Townsend
Sorry if this is the wrong forum but I wondered what's happened to 'Lucene In Action' in the UK. Looking forward to reading it but amazon.co.uk report it as a 'hard to find' item and are now quoting a 4-6 week delivery time and tacking on a rare book charge. Amazon.com are quoting shipping

hits.length() changes during delete process.

2004-12-03 Thread David Townsend
I have a delete script IndexSearcher searcher = new IndexSearcher(reader); Hits hits = searcher.search(query); log.info(there are + hits.length() + hits); for (int i = 0; i hits.length(); i++) { log.info(hits.length() + + i + + hits.id(i)); reader.delete(hits.id(i)); } which

RE: Making lucene work in weblogic cluster

2004-10-08 Thread David Townsend
in weblogic cluster While I was going through the mailing list in solving the lucene cluster problem, I came accross this thread. Does any one know if David Townsend had submitted the patch he was talking about? http://www.mail-archive.com/[EMAIL PROTECTED]/msg06252.html I am interested in looking

RE: Making lucene work in weblogic cluster

2004-10-08 Thread David Townsend
While I was going through the mailing list in solving the lucene cluster problem, I came accross this thread. Does any one know if David Townsend had submitted the patch he was talking about? http://www.mail-archive.com/[EMAIL PROTECTED]/msg06252.html I am interested in looking at the NFS solution

RE: Moving from a single server to a cluster

2004-09-08 Thread David Townsend
Would it be cheeky to ask you to post the docs to the group? It would be interesting to read how you've tackled this. -Original Message- From: Nader Henein [mailto:[EMAIL PROTECTED] Sent: 08 September 2004 13:57 To: Lucene Users List Subject: Re: Moving from a single server to a cluster

RE: worddoucments search

2004-08-24 Thread David Townsend
Is this a wind-up? -Original Message- From: Santosh [mailto:[EMAIL PROTECTED] Sent: 24 August 2004 13:16 To: Lucene Users List Subject: worddoucments search Can lucene be able to search word documents? if so please give me information about it regards Santosh kumar

RE: pdf search

2004-08-20 Thread David Townsend
Hi Santosh, Lucene doesn't search pdfs per se. To make anything searchable you have to first extract the content and then put it in lucene in a form it understands (i.e document objects). So in order to search your pdfs you first need to extract the info from the PDFs using something like

RE: searchhelp

2004-08-19 Thread David Townsend
JGURU FAQ http://www.jguru.com/faq/Lucene OFFICIAL FAQ http://lucene.sourceforge.net/cgi-bin/faq/faqmanager.cgi MAIL ARCHIVE http://www.mail-archive.com/[EMAIL PROTECTED]/ hope this helps. -Original Message- From: Santosh [mailto:[EMAIL PROTECTED] Sent: 19 August 2004 11:25 To: Lucene

RE: Memo: RE: Query parser and minus signs

2004-05-21 Thread David Townsend
Doesn't en UK as a phrase query work? You're probably indexing it as a text field so it's being tokenised. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 21 May 2004 16:47 To: Lucene Users List Subject: Memo: RE: Query parser and minus signs Hmm, we may

RE: about search and update one index simultaneously

2004-05-19 Thread David Townsend
There is no problem with updating and searching simultaneously. Two threads updating simultaneously on the same index on NFS can be a problem, as the locking does not work reliably. Have a look through the archives for NFS, there are some solutions scattered about. David -Original

RE: Getting a field value from a large indexed document is slow.

2004-05-14 Thread David Townsend
You say the content is indexed, is it stored? If note, index the content of the document, but don't store it. eg doc.add(Field.UnStored(content, content)); -Original Message- From: Paul Williams [mailto:[EMAIL PROTECTED] Sent: 14 May 2004 16:22 To: 'Lucene Users List' Subject:

Returning Separate Hits from Multisearcher

2004-05-10 Thread David Townsend
this, or should we modify MultiSearcher to return information about the hits on each index. any ideas? David Townsend

RE: weblogic cluster, index on NFS and locking problem

2004-02-04 Thread David Townsend
the Directory class and one that deals with the database interaction. David Townsend -Original Message- From: Dmitri Ilyin [mailto:[EMAIL PROTECTED] Sent: 04 February 2004 09:49 To: [EMAIL PROTECTED] Subject: Re: weblogic cluster, index on NFS and locking problem What is it good

RE: use Lucene LOCAL (looking for a frontend)

2004-01-28 Thread David Townsend
Why don't you take a look at luke. That way you can play with the index you built and work from there. If you're looking to replicate something like Luke, I'd get studying now ;). http://www.getopt.org/luke/ -Original Message- From: Sebastian Fey [mailto:[EMAIL PROTECTED] Sent: 28

Multiple Creation of Writers

2004-01-14 Thread David Townsend
In my system indices are created and updated by multiple threads. I need to check if an index exists to decide whether to pass true or false to the IndexWriter constructor. new IndexWriter(FSDirectory, Analyzer, boolean); The problem arises when two threads attempt to create the same index

RE: Lock obtain timed out

2003-12-16 Thread David Townsend
Does this mean if you can insure that only one IndexWriter and/or IndexReader(Doing deletion) are never open at the same time (eg using database instead of lucene's locking), there will be no problem with removing locking? If you do not use an IndexReader to do deletion can you open and close

RE: indexing/searching a website

2003-11-27 Thread David Townsend
I would advise you to use the excellent articles listed here. http://jakarta.apache.org/lucene/docs/resources.html Some good examples and by the end of it you should have a good understanding of the major classes and their use. -Original Message- From: Michal S [mailto:[EMAIL