Package com.foundationdb.server.service.text

Examples of com.foundationdb.server.service.text.FullTextQueryBuilder


    @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();
View Full Code Here


            return params;
        }

        protected RowStream assembleFullTextScan(FullTextScan textScan) {
            RowStream stream = new RowStream();
            FullTextQueryBuilder builder = new FullTextQueryBuilder(textScan.getIndex(),
                                                                    schema.ais(),
                                                                    planContext.getQueryContext());
            FullTextQueryExpression queryExpression = assembleFullTextQuery(textScan.getQuery(),
                                                                            builder);
            stream.operator = builder.scanOperator(queryExpression, textScan.getLimit());
            stream.rowType = stream.operator.rowType();
            return stream;
        }
View Full Code Here

TOP

Related Classes of com.foundationdb.server.service.text.FullTextQueryBuilder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.