Package org.xbib.elasticsearch.skywalker.reconstruct

Examples of org.xbib.elasticsearch.skywalker.reconstruct.DocumentReconstructor.reconstruct()


        InternalIndexShard indexShard = (InternalIndexShard) indexService.shardSafe(request.shardId());
        Engine.Searcher searcher = indexShard.engine().acquireSearcher("transport_reconstruct");
        IndexReader reader = searcher.reader();
        DocumentReconstructor dr = new DocumentReconstructor(reader);
        try {
            return new ShardReconstructIndexResponse(true, dr.reconstruct(request.shardId()));
        } catch (IOException e) {
            throw new ElasticsearchException("failed to reconstruct index", e);
        }
    }
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.