You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by mitu2009 <mu...@gmail.com> on 2009/01/16 18:38:38 UTC

Lucene index updation and performance

I am working on a job portal site and have been using Lucene for job search
functionality. 
Users will be posting a number jobs on our site on a daily basis.We need to
make sure that new job posted is searchable on the site as soon as possible. 
In this context, how do I update Lucene index when a new job is posted or
when an existing job is edited? 
Can lucene index updating and search work in parallel? 

Also,can I know any tips/best practices with respect to Lucene
indexing,optimizing,performance etc? 

Appreciate ur help! 

Thanks!
-- 
View this message in context: http://www.nabble.com/Lucene-index-updation-and-performance-tp21504659p21504659.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


RE: Lucene index updation and performance

Posted by "Angel, Eric" <ea...@business.com>.
You can simply call IndexWriter.addDocument() for new jobs and
IndexWriter.updateDocument

http://lucene.apache.org/java/2_4_0/api/org/apache/lucene/index/IndexWri
ter.html

Also, don't forget to optimize your index.  Depending on your volume,
you might want to optimize during slow traffic.

Eric Angel 

-----Original Message-----
From: mitu2009 [mailto:musicfreaque@gmail.com] 
Sent: Friday, January 16, 2009 9:39 AM
To: java-user@lucene.apache.org
Subject: Lucene index updation and performance


I am working on a job portal site and have been using Lucene for job
search
functionality. 
Users will be posting a number jobs on our site on a daily basis.We need
to
make sure that new job posted is searchable on the site as soon as
possible. 
In this context, how do I update Lucene index when a new job is posted
or
when an existing job is edited? 
Can lucene index updating and search work in parallel? 

Also,can I know any tips/best practices with respect to Lucene
indexing,optimizing,performance etc? 

Appreciate ur help! 

Thanks!
-- 
View this message in context:
http://www.nabble.com/Lucene-index-updation-and-performance-tp21504659p2
1504659.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Re: Lucene index updation and performance

Posted by Erick Erickson <er...@gmail.com>.
You should look over the FAQ, lots of information there.

See: http://wiki.apache.org/lucene-java/LuceneFAQ

You can index and search in parallel, but a searcher doesn't
see additions to an indexer until the underlying IndexReader is
closed/reopened (see the FAQ section:

Does Lucene allow searching and indexing simultaneously?)

Best
Erick

On Fri, Jan 16, 2009 at 12:38 PM, mitu2009 <mu...@gmail.com> wrote:

>
> I am working on a job portal site and have been using Lucene for job search
> functionality.
> Users will be posting a number jobs on our site on a daily basis.We need to
> make sure that new job posted is searchable on the site as soon as
> possible.
> In this context, how do I update Lucene index when a new job is posted or
> when an existing job is edited?
> Can lucene index updating and search work in parallel?
>
> Also,can I know any tips/best practices with respect to Lucene
> indexing,optimizing,performance etc?
>
> Appreciate ur help!
>
> Thanks!
> --
> View this message in context:
> http://www.nabble.com/Lucene-index-updation-and-performance-tp21504659p21504659.html
> Sent from the Lucene - Java Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>