* @param action the action(publish|delete)
* @param uuids the set of document uuids
*/
public void send(RequestContext context, String action, String[] uuids) {
if ((uuids != null) && (uuids.length > 0)) {
StringAttributeMap params = context.getCatalogConfiguration().getParameters();
String param = Val.chkStr(params.getValue("lucene.useRemoteWriter"));
boolean useRemoteWriter = param.equalsIgnoreCase("true");
String remoteWriterUrl = Val.chkStr(params.getValue("lucene.remoteWriterUrl"));
if (useRemoteWriter && (remoteWriterUrl.length() > 0)) {
RemoteIndexJob job = new RemoteIndexJob(action,uuids,remoteWriterUrl);
Thread thread = new Thread(job,"RemoteIndexJob");
thread.setDaemon(true);
thread.start();