Examples of promoteResult()


Examples of com.flaptor.indextank.BoostingIndexer.promoteResult()

    @TestInfo(testType=SYSTEM)
    public void testPromotion() throws IOException, ParseException,InterruptedException {
      indexTwelveDocs(this.indexEngine.getIndexer());
        DocumentSearcher searcher = this.indexEngine.getSearcher();
        BoostingIndexer indexer = this.indexEngine.getIndexer();
        indexer.promoteResult("doc_6", "fixed");
        checkResults(searcher,0,1,new int[]{6});
        checkResults(searcher,0,5,new int[]{0,1,2,3,6});
        checkResults(searcher,5,5,new int[]{4,5,7,8,9});
        checkResults(searcher,10,5,new int[]{10,11});
        indexer.promoteResult("doc_10", "fixed");
View Full Code Here

Examples of com.flaptor.indextank.BoostingIndexer.promoteResult()

        indexer.promoteResult("doc_6", "fixed");
        checkResults(searcher,0,1,new int[]{6});
        checkResults(searcher,0,5,new int[]{0,1,2,3,6});
        checkResults(searcher,5,5,new int[]{4,5,7,8,9});
        checkResults(searcher,10,5,new int[]{10,11});
        indexer.promoteResult("doc_10", "fixed");
        checkResults(searcher,10,5,new int[]{9,11});
    }
   
    @TestInfo(testType=SYSTEM)
    public void testFacetedSearch() throws InterruptedException {
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.