Are you opening your Searcher every time you query? Are your
documents really large? Have you worked through http://wiki.apache.org/lucene-java/BasicsOfPerformance
?
-Grant
On Nov 26, 2007, at 10:04 AM, Shakti_Sareen wrote:
Hi all,
The size of the folder where I am keeping the index files is 160 MB
containing 3277 documents.
That's not too much. If you are doing things right, search should not
take much time.
Below is the code :
String sNumber = null;
hits = searcher.search(query);
for (int i = 0;i < hits.length();i++) {
doc = hits.doc(i);
sdocNumber = doc.get("NUMBER");
if (sNumber.equalsIgnoreCase(sdocNumber)) {
LOGGER.info("Match found - " + sdocNumber);
}
}
Can anyone help???
Regards
Shakti Sareen
DISCLAIMER:
This email (including any attachments) is intended for the sole use
of the intended recipient/s and may contain material that is
CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance
by others or copying or distribution or forwarding of any or all of
the contents in this message is STRICTLY PROHIBITED. If you are not
the intended recipient, please contact the sender by email and
delete all copies; your cooperation in this regard is appreciated.
--------------------------
Grant Ingersoll
http://lucene.grantingersoll.com
Lucene Helpful Hints:
http://wiki.apache.org/lucene-java/BasicsOfPerformance
http://wiki.apache.org/lucene-java/LuceneFAQ
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]