Examples of TermMatcher


Examples of com.flaptor.indextank.index.term.TermMatcher

        BlockingDeque<IndexSearcher> searcherPool= new LinkedBlockingDeque<IndexSearcher>();
        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);
View Full Code Here

Examples of org.exist.storage.TermMatcher

            "should be a single double value");}
      threshold = ((DoubleValue) thresOpt.convertTo(Type.DOUBLE)).getDouble();
    }
    final NodeSet hits[] = new NodeSet[terms.size()];
    String term;
    TermMatcher matcher;
    for (int k = 0; k < terms.size(); k++) {
        term = terms.get(k);
      if(term.length() == 0)
        {hits[k] = null;}
      else {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.