Package com.dotcms.content.elasticsearch.business.IndiciesAPI

Examples of com.dotcms.content.elasticsearch.business.IndiciesAPI.IndiciesInfo


  protected long indexCount(String query) {
      String qq=findAndReplaceQueryDates(translateQuery(query, null).getQuery());

      // we check the query to figure out wich indexes to hit
        String indexToHit;
        IndiciesInfo info;
        try {
            info=APILocator.getIndiciesAPI().loadIndicies();
        }
        catch(DotDataException ee) {
            Logger.fatal(this, "Can't get indicies information",ee);
View Full Code Here


  protected SearchHits indexSearch(String query, int limit, int offset, String sortBy) {
      String qq=findAndReplaceQueryDates(translateQuery(query, sortBy).getQuery());

      // we check the query to figure out wich indexes to hit
      String indexToHit;
      IndiciesInfo info;
      try {
          info=APILocator.getIndiciesAPI().loadIndicies();
      }
      catch(DotDataException ee) {
          Logger.fatal(this, "Can't get indicies information",ee);
View Full Code Here

    public void clearCache() {
        cache.flushGroup(primaryGroup);
    }
   
    public IndiciesInfo get() {
        IndiciesInfo info=null;
        try {
            info=(IndiciesInfo)cache.get(primaryGroup+"info", primaryGroup);
        }
        catch(Exception ex) {
            Logger.warn(this, "can't get cache entry",ex);
View Full Code Here

    }
   
    public static File downloadIndex(String indexName) throws DotDataException, IOException {

        if(indexName.equalsIgnoreCase("live") || indexName.equalsIgnoreCase("working")){
            IndiciesInfo info=APILocator.getIndiciesAPI().loadIndicies();
            if(indexName.equalsIgnoreCase("live")){
                indexName = info.live;
            }
            if(indexName.equalsIgnoreCase("working")){
                indexName = info.working;
View Full Code Here

TOP

Related Classes of com.dotcms.content.elasticsearch.business.IndiciesAPI.IndiciesInfo

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.