if (methodName.equals("reindex")) {
return new DefaultReindexMethod(methodName, compass, compassGps, this);
}
if (methodName.equals("termFreqs")) {
return new DefaultTermFreqsMethod(methodName, compass, grailsApplication, getDefaultOptions(methodName));
}
if (methodName.equals("search")) {
DefaultSearchMethod searchMethod = new DefaultSearchMethod(methodName, compass, grailsApplication, this, getDefaultOptions(methodName));
searchMethod.setCompassQueryBuilder(new DefaultSearchableCompassQueryBuilder(compass));