Package com.flaptor.indextank.index.term.query

Examples of com.flaptor.indextank.index.term.query.TermBasedQueryMatcher


        BlockingDeque<QueryMatcher> matcherPool = new LinkedBlockingDeque<QueryMatcher>();
        for (int i=0; i < SEARCHER_POOL_SIZE; i++) {
            try {
                IndexSearcher searcher = new IndexSearcher(directory, true); //read-only for better concurrent performance.
                TermMatcher termMatcher = new IndexReaderTermMatcher(searcher.getIndexReader(), PAYLOAD_TERM);
                QueryMatcher matcher = new TermBasedQueryMatcher(scorer, termMatcher, this.facetingManager);   
                searcherPool.addFirst(searcher); //no blocking, throws exception.
                matcherPool.addFirst(matcher);
            } catch (CorruptIndexException cie) {
                logger.fatal("HORROR!!! corrupted index. unable to reopen", cie);
            } catch (IOException ioe) {
View Full Code Here


        Preconditions.checkArgument(maxDocCount > 0);
    this.maxDocCount = maxDocCount;
    this.docids = new DocId[maxDocCount];
    this.internalDeletes = new BitSet(maxDocCount);
    this.docCount = new AtomicInteger(0);
    this.matcher = new TermBasedQueryMatcher(scorer, this, facetingManager);
        this.parser = parser;
  }
View Full Code Here

TOP

Related Classes of com.flaptor.indextank.index.term.query.TermBasedQueryMatcher

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.