Hi all,
I m working on a project where I will use lucene to make a search engine on
a database. I am new to lucene. I wrote a test program which indexes a table
and searches the same.. but now I m stuck on how to update the index in case
a database change occurs.. I need some help on this topic...
Thanks Stephen,
This was really helpful.
Cheers,
--Kiran
-Original Message-
From: Stephen Gray [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 04, 2006 4:11 AM
To: java-user@lucene.apache.org
Subject: Re: Updating index if there is a database changes
Hi Kirin,
Once you've updated an
You can use MultiFieldQueryParser
Something like this
Query query = MultiFieldQueryParser.parse(new String[]{queryString,
queryString, queryString}, new String[]{ASSET_TITLE, ASSET_ARTICLE,
ASSET_DIRECTOR_NAMES }, new BooleanClause.Occur[]
{BooleanClause.Occur.SHOULD, BooleanClause.Occur.SHOULD,
Hi,
I am working on a struts application using lucene for indexing mysql
database. Whenever I rebuild the application and deploy in tomcat and try to
rebuild the index from scratch I have to shutdown tomcat and then restart it
again. In case I don't do this I get IOException while creating instanc
Hi,
I am trying to re-create index from scratch. But I get this exception. I
also close the IndexSearcher before doing this.
java.io.IOException: Cannot delete deletable
at org.apache.lucene.store.FSDirectory.create(FSDirectory.java:195)
at
org.apache.lucene.store.FSDirec