if (methodName.equals("index")) {
return new DefaultIndexMethod(methodName, compass, compassGps);
}
if (methodName.equals("unindexAll")) {
LOG.warn("The Searchable Plugin 'unindexAll' method is deprecated and will be removed in the next version: please use 'unindex' instead");
return new DefaultUnindexMethod(methodName, compass);
}
if (methodName.equals("unindex")) {
return new DefaultUnindexMethod(methodName, compass);
}
if (methodName.equals("reindexAll")) {
LOG.warn("The Searchable Plugin 'reindexAll' method is deprecated and will be removed in the next version: please use 'reindex' instead");
return new DefaultReindexMethod(methodName, compass, compassGps, this);
}