Package sagan.search.support

Examples of sagan.search.support.CrawledWebDocumentProcessor


                                project.getId(), version.getVersion());
                logger.warn(message);
            } else {
                String apiDocUrl = version.getApiDocUrl().replace("/index.html", "") + "/allclasses-frame.html";
                ApiDocumentMapper apiDocumentMapper = new ApiDocumentMapper(project, version);
                CrawledWebDocumentProcessor apiDocProcessor =
                        new CrawledWebDocumentProcessor(searchService, apiDocumentMapper);
                crawlerService.crawl(apiDocUrl, 2, apiDocProcessor);

                String refDocUrl = version.getRefDocUrl();
                ReferenceDocumentSearchEntryMapper documentMapper =
                        new ReferenceDocumentSearchEntryMapper(project, version);
                CrawledWebDocumentProcessor refDocProcessor =
                        new CrawledWebDocumentProcessor(searchService, documentMapper);
                crawlerService.crawl(refDocUrl, 1, refDocProcessor);
            }
        }
    }
View Full Code Here


    @Autowired
    public ToolsIndexer(CrawlerService crawlerService, SearchService searchService) {
        this.crawlerService = crawlerService;
        documentProcessor =
                new CrawledWebDocumentProcessor(searchService, new LocalStaticPagesSearchEntryMapper());
    }
View Full Code Here

    public StaticPageIndexer(CrawlerService crawlerService, SearchService searchService,
                             StaticPagePathFinder staticPagePathFinder) {
        this.crawlerService = crawlerService;
        this.staticPagePathFinder = staticPagePathFinder;
        documentProcessor =
                new CrawledWebDocumentProcessor(searchService, new LocalStaticPagesSearchEntryMapper());
    }
View Full Code Here

TOP

Related Classes of sagan.search.support.CrawledWebDocumentProcessor

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.