context.searcher().search(query, collector); } catch (Exception e) { throw new QueryPhaseExecutionException(context, "Failed to execute global aggregators", e);
context.searcher().search(query, collector); } catch (Exception e) { throw new QueryPhaseExecutionException(context, "Failed to execute global aggregators", e);
context.searcher().search(query, collector); } catch (Exception e) { throw new QueryPhaseExecutionException(context, "Failed to execute global aggregators", e);
context.searcher().search(query, collector); } catch (Exception e) { throw new QueryPhaseExecutionException(context, "Failed to execute global aggregators", e);
context.searcher().search(query, collector); } catch (Exception e) { throw new QueryPhaseExecutionException(context, "Failed to execute global aggregators", e);
public WriterResult execute(SearchIntoContext context) throws WriterException { logger.info("writing {}/{}", context.shardTarget().index(), context.shardTarget().getShardId()); Query query = context.query(); context.version(true); WriterCollector wc = collectors.get(context.targetType()).create( context); wc.open(); try { context.searcher().search(query, wc); } catch (IOException e) { throw new WriterException(context, "Failed to write docs", e); } wc.close(); WriterResult res = wc.getResult(); logger.info("exported {} docs from {}/{}", res.getTotalWrites(), context.shardTarget().index(), context.shardTarget().getShardId()); return res; }
context.searcher().search(q, topDocsCollector); } finally { clearReleasables(Lifetime.COLLECTION);
context.searcher().search(q, topDocsCollector); } finally { clearReleasables(Lifetime.COLLECTION);
context.searcher().search(query, collector); } catch (IOException e) { throw new ExportException(context, "Failed to fetch docs", e);
searchContext.searcher().search(searchContext.query(), searchContext.aliasFilter(), bitSetCollector); FixedBitSet docsToUpdate = bitSetCollector.getBitSet();