Package org.jboss.elasticsearch.river.remote.sitemap

Examples of org.jboss.elasticsearch.river.remote.sitemap.SiteMap


    if (asm.isIndex()) {
      throw new Exception("Sitemap index format is not supported by this river!");
    }

    SiteMap sm = (SiteMap) asm;

    List<Map<String, Object>> documents = new ArrayList<Map<String, Object>>();
    for (SiteMapURL smurl : sm.getSiteMapUrls()) {

      String durl = smurl.getUrl().toExternalForm();
      String ext = Utils.getFileExtensionLowercase(durl);
      if (ext == null || !IGNORED_EXTENSIONS.contains(ext)) {
        Map<String, Object> document = new HashMap<String, Object>();
View Full Code Here


    if (asm.isIndex()) {
      throw new Exception("Sitemap index format is not supported by this river!");
    }

    SiteMap sm = (SiteMap) asm;

    List<Map<String, Object>> documents = new ArrayList<Map<String, Object>>();
    for (SiteMapURL smurl : sm.getSiteMapUrls()) {

      String durl = smurl.getUrl().toExternalForm();
      String ext = Utils.getFileExtensionLowercase(durl);
      if (ext == null || !IGNORED_EXTENSIONS.contains(ext)) {
        Map<String, Object> document = new HashMap<String, Object>();
View Full Code Here

TOP

Related Classes of org.jboss.elasticsearch.river.remote.sitemap.SiteMap

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.