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
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
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
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
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
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
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
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
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
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
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
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
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
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:
this, or should we modify MultiSearcher to return information about the hits on
each index.
any ideas?
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
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
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
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
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
20 matches
Mail list logo