Package org.elasticsearch.action.index

Examples of org.elasticsearch.action.index.IndexRequestBuilder.execute()


                IndexClient.client.prepareIndex(INDEX_PERCOLATOR,
                        IndexService.INDEX_DEFAULT,
                        namePercolator)
                        .setSource(source);

        return percolatorRequest.execute().actionGet();
    }

    /**
     * Create Percolator
     *
 
View Full Code Here


                IndexClient.client.prepareIndex(INDEX_PERCOLATOR,
                        IndexService.INDEX_DEFAULT,
                        namePercolator)
                        .setSource("{\"query\": " + query + "}");

        return percolatorRequest.execute().actionGet();
    }

    /**
     * Check if a percolator exists
     * @param namePercolator
View Full Code Here

      indexVersion = SearchIndex.INDEX_VERSION;
      logger.debug("Creating version index for site '{}'", site.getIdentifier());
      IndexRequestBuilder requestBuilder = nodeClient.prepareIndex(site.getIdentifier(), VERSION_TYPE, ROOT_ID);
      logger.debug("Index version of site '{}' is {}", site.getIdentifier(), indexVersion);
      requestBuilder = requestBuilder.setSource(VERSION, Integer.toString(indexVersion));
      requestBuilder.execute().actionGet();
    }

    preparedIndices.add(site.getIdentifier());
  }
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.