Search in sources :

Example 1 with DummyFulltextIndexer

use of org.structr.common.fulltext.DummyFulltextIndexer in project structr by structr.

the class StructrApp method getFulltextIndexer.

@Override
public FulltextIndexer getFulltextIndexer(final Object... params) {
    final Map<String, StructrModule> modules = StructrApp.getConfiguration().getModules();
    final StructrModule module = modules.get("text-search");
    if (module != null && module instanceof FulltextIndexer) {
        return (FulltextIndexer) module;
    }
    return new DummyFulltextIndexer();
}
Also used : StructrModule(org.structr.module.StructrModule) DummyFulltextIndexer(org.structr.common.fulltext.DummyFulltextIndexer) FulltextIndexer(org.structr.common.fulltext.FulltextIndexer) DummyFulltextIndexer(org.structr.common.fulltext.DummyFulltextIndexer)

Aggregations

DummyFulltextIndexer (org.structr.common.fulltext.DummyFulltextIndexer)1 FulltextIndexer (org.structr.common.fulltext.FulltextIndexer)1 StructrModule (org.structr.module.StructrModule)1