return lookupEntries(exactSearcher, query);
case inexact:
if (inexactSearcher == null) inexactSearcher = new FbEntitySearcher(opts.inexactMatchIndex, opts.numOfDocs, "inexact");
return lookupEntries(inexactSearcher, query);
case fbsearch:
if (freebaseSearch == null) freebaseSearch = new FreebaseSearch();
if (mid2idCache == null) mid2idCache = StringCacheUtils.create(opts.mid2idPath);
if (entityTypesCache == null) entityTypesCache = StringCacheUtils.create(opts.entityTypesPath);
return lookupFreebaseSearchEntities(query);
default:
throw new RuntimeException("Unknown entity search strategy: " + strategy);