Class FieldAnalysisResponse

All Implemented Interfaces:
Serializable, MapSerializable, MapWriter, NavigableObject, org.noggit.JSONWriter.Writable

public class FieldAnalysisResponse extends AnalysisResponseBase
A response that is returned by processing the FieldAnalysisRequest. Holds a map of FieldAnalysisResponse.Analysis objects per field name as well as a map of FieldAnalysisResponse.Analysis objects per field type.
Since:
solr 1.4
See Also:
  • Constructor Details

    • FieldAnalysisResponse

      public FieldAnalysisResponse()
  • Method Details

    • setResponse

      public void setResponse(NamedList<Object> response)
      Overrides:
      setResponse in class SolrResponseBase
    • getFieldTypeAnalysisCount

      public int getFieldTypeAnalysisCount()
      Returns the number of field type analyses.
      Returns:
      The number of field type analyses.
    • getFieldTypeAnalysis

      public FieldAnalysisResponse.Analysis getFieldTypeAnalysis(String fieldTypeName)
      Returns the analysis for the given field type or null if no such analysis exists.
      Parameters:
      fieldTypeName - The name of the field type.
      Returns:
      The analysis for the given field type.
    • getAllFieldTypeAnalysis

      public Iterable<Map.Entry<String,FieldAnalysisResponse.Analysis>> getAllFieldTypeAnalysis()
      Returns all field type analyses with their associated field types.
      Returns:
      All field type analyses with their associated field types.
    • getFieldNameAnalysisCount

      public int getFieldNameAnalysisCount()
      Returns the number of field name analyses.
      Returns:
      The number of field name analyses.
    • getFieldNameAnalysis

      public FieldAnalysisResponse.Analysis getFieldNameAnalysis(String fieldName)
      Returns the analysis for the given field name or null if no such analysis exists.
      Parameters:
      fieldName - The field name.
      Returns:
      The analysis for the given field name.
    • getAllFieldNameAnalysis

      public Iterable<Map.Entry<String,FieldAnalysisResponse.Analysis>> getAllFieldNameAnalysis()
      Returns all field name analyzed with their associated field names.
      Returns:
      all field name analyzed with their associated field names.