Class FetchSourceFilter

java.lang.Object
org.springframework.data.elasticsearch.core.query.FetchSourceFilter
All Implemented Interfaces:
SourceFilter

public class FetchSourceFilter extends Object implements SourceFilter
SourceFilter implementation for providing includes and excludes.
Author:
Jon Tsiros, Peter-Josef Meisch
  • Constructor Details

  • Method Details

    • getIncludes

      public String[] getIncludes()
      Specified by:
      getIncludes in interface SourceFilter
      Returns:
      the name of the fields to include in a response.
    • getExcludes

      public String[] getExcludes()
      Specified by:
      getExcludes in interface SourceFilter
      Returns:
      the names of the fields to exclude from a response.