Package com.flaptor.indextank

Examples of com.flaptor.indextank.BoostingIndexer


                                               facets,
                                               indexCode,
                                               environment,
                                               configuration);

            BoostingIndexer indexer = ie.getIndexer();
            DocumentSearcher searcher = ie.getSearcher();
            Suggestor suggestor = ie.getSuggestor();
            DocumentStorage storage = ie.getStorage();

View Full Code Here


    @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");
        checkResults(searcher,10,5,new int[]{9,11});
    }
View Full Code Here

                                               facets,
                                               indexCode,
                                               environment,
                                               configuration);

            BoostingIndexer indexer = ie.getIndexer();
            DocumentSearcher searcher = ie.getSearcher();
            Suggestor suggestor = ie.getSuggestor();
            DocumentStorage storage = ie.getStorage();

            if (line.hasOption("snippets")) {
View Full Code Here

       
        return result;
    }
   
    public void putDocument(String id, JSONObject fields, JSONObject variables, JSONObject categories) {
        BoostingIndexer indexer = engine.getIndexer();
        indexer.add(id, new Document(prepareProperties(fields)), Timestamp.inSeconds(), prepareBoosts(variables));
        indexer.updateCategories(id, prepareProperties(categories));
    }
View Full Code Here

        indexer.add(id, new Document(prepareProperties(fields)), Timestamp.inSeconds(), prepareBoosts(variables));
        indexer.updateCategories(id, prepareProperties(categories));
    }
   
    public void deleteDocument(String id) {
        BoostingIndexer indexer = engine.getIndexer();
        indexer.del(id);
    }
View Full Code Here

TOP

Related Classes of com.flaptor.indextank.BoostingIndexer

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.