Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Santhosh Reddy
reindexing solr search indexes with independent standalone program.
November 6, 2012 5:16 AM
Answer

Santhosh Reddy

Rank: New Member

Posts: 15

Join Date: October 31, 2012

Recent Posts

Hi,

we have a requirement to reindex sorl 1.4.1 search indexes with a standalone program, that would be scheduled with a crontab.
i am not able to understand how to get the updates from liferay portal to standalone program and how to index with out getting any conflict with the liferay inbuilt indexing mechanism.

can anybody please give me some idea or code for this?
David H Nebinger
RE: reindexing solr search indexes with independent standalone program.
November 6, 2012 5:22 AM
Answer

David H Nebinger

Rank: Liferay Legend

Posts: 7250

Join Date: September 1, 2006

Recent Posts

Sure. Your standalone program makes a web service call to the Liferay API to trigger the reindexing.
Santhosh Reddy
RE: reindexing solr search indexes with independent standalone program.
November 6, 2012 5:48 AM
Answer

Santhosh Reddy

Rank: New Member

Posts: 15

Join Date: October 31, 2012

Recent Posts

thanks for immediate reply.

But requirement is like there should be a Que that will have the updates happened all the day, at the end of the day standalone program should take the updates from Que and reindex the updates itself without triggering the liferay indexing mechanism.

our intention is reducing the indexing burden on the application server.

Is this posible? if posible pls give me some clue.
David H Nebinger
RE: reindexing solr search indexes with independent standalone program.
November 6, 2012 11:21 AM
Answer

David H Nebinger

Rank: Liferay Legend

Posts: 7250

Join Date: September 1, 2006

Recent Posts

Liferay will automatically update the indexes through the day as changes are made, it doesn't put the changes into a queue of any kind.

Addressing indexing burden on the application server sounds like you're trying to host SOLR on the same server that Liferay is running on. Sounds like you may be better served by relocating the SOLR server to a separate server, thus offloading the indexing burden...
Hitoshi Ozawa
RE: reindexing solr search indexes with independent standalone program.
November 6, 2012 1:47 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7954

Join Date: March 23, 2010

Recent Posts

If you have a liferay cluster, it's probably going to be the same burden to throw async update request from each server to Solr as to to throw a request to a queue.
Rui Silveira
RE: reindexing solr search indexes with independent standalone program.
April 15, 2013 7:39 AM
Answer

Rui Silveira

Rank: New Member

Posts: 2

Join Date: April 11, 2013

Recent Posts

David H Nebinger:
Sure. Your standalone program makes a web service call to the Liferay API to trigger the reindexing.



Hi everyone,

David could you please enlighten me on the name of the service i have to trigger in order to start reindexing.

I would like to reindex the hole Document and Media of the company ID xxxxx. I've tried to use LuceneIndexer from portal-imp but without success. For some reason even with maven setting the dependency it said it can't find the class definition.

I am using Liferay 6.1 CE (if it maked any diference on the API).

I would be much obliged with an answer.

Rui