Interface FetchSubPhase

All Known Implementing Classes:
ExplainPhase, FetchDocValuesPhase, FetchScorePhase, FetchSourcePhase, FetchVersionPhase, HighlightPhase, InnerHitsPhase, MatchedQueriesPhase, ScriptFieldsPhase, SeqNoPrimaryTermPhase

public interface FetchSubPhase
Sub phase within the fetch phase used to fetch things *about* the documents like highlighting or matched queries.
  • Nested Class Summary

    Nested Classes 
    Modifier and Type Interface Description
    static class  FetchSubPhase.HitContext  
  • Method Summary

    Modifier and Type Method Description
    default void hitExecute​(SearchContext context, FetchSubPhase.HitContext hitContext)
    Executes the hit level phase, with a reader and doc id (note, its a low level reader, and the matching doc).
    default void hitsExecute​(SearchContext context, SearchHit[] hits)
    Executes the hits level phase (note, hits are sorted by doc ids).
  • Method Details

    • hitExecute

      default void hitExecute​(SearchContext context, FetchSubPhase.HitContext hitContext) throws java.io.IOException
      Executes the hit level phase, with a reader and doc id (note, its a low level reader, and the matching doc).
      Throws:
      java.io.IOException
    • hitsExecute

      default void hitsExecute​(SearchContext context, SearchHit[] hits) throws java.io.IOException
      Executes the hits level phase (note, hits are sorted by doc ids).
      Throws:
      java.io.IOException