@Override
public void fullTextSearch(PrintWriter writer, IndexName indexName, Integer depth, String query, Integer limit) {
int realDepth = (depth != null) ? Math.max(depth, 0) : -1;
int realLimit = (limit != null) ? limit.intValue() : -1;
ENTITY_TEXT.in();
FullTextQueryBuilder builder = new FullTextQueryBuilder(indexName,
fullTextService);
try (Session session = sessionService.createSession();
CloseableTransaction txn = transactionService.beginCloseableTransaction(session)) {
extDataService.dumpBranchAsJson(session,
writer,
indexName.getSchemaName(),
indexName.getTableName(),
builder.scanOperator(query, realLimit),
fullTextService.searchRowType(session, indexName),
realDepth,
false,
options);
txn.commit();