Class DocumentAnalysisResponse.FieldAnalysis
java.lang.Object
org.apache.solr.client.solrj.response.DocumentAnalysisResponse.FieldAnalysis
- Enclosing class:
DocumentAnalysisResponse
An analysis process breakdown for a specific field. Holds a list of query time analysis phases
(that is, if a query analysis was requested in the first place) and a list of index time
analysis phases for each field value (a field can be multi-valued).
-
Method Summary
Modifier and TypeMethodDescriptionReturns the field name.getIndexPhases(String fieldValue) Returns the index time analysis phases for the given field value.Returns the index time analysis phases for all field values.intgetIndexPhasesCount(String fieldValue) Returns the number of index time analysis phases the given field value has.Returns the query time analysis phases for the field ornullif this field doesn't hold a query time analysis.intReturns the number of query time analysis phases or-1if this field analysis doesn't hold a query time analysis.intReturns the number of values the field has.voidsetIndexPhases(String fieldValue, List<AnalysisResponseBase.AnalysisPhase> indexPhases) voidsetQueryPhases(List<AnalysisResponseBase.AnalysisPhase> queryPhases)
-
Method Details
-
setQueryPhases
-
setIndexPhases
-
getFieldName
Returns the field name.- Returns:
- The name of the field.
-
getQueryPhasesCount
public int getQueryPhasesCount()Returns the number of query time analysis phases or-1if this field analysis doesn't hold a query time analysis.- Returns:
- Returns the number of query time analysis phases or
-1if this field analysis doesn't hold a query time analysis.
-
getQueryPhases
Returns the query time analysis phases for the field ornullif this field doesn't hold a query time analysis.- Returns:
- Returns the query time analysis phases for the field or
nullif this field doesn't hold a query time analysis.
-
getValueCount
public int getValueCount()Returns the number of values the field has.- Returns:
- The number of values the field has.
-
getIndexPhasesCount
Returns the number of index time analysis phases the given field value has.- Parameters:
fieldValue- The field value.- Returns:
- The number of index time analysis phases the given field value has.
-
getIndexPhases
Returns the index time analysis phases for the given field value.- Parameters:
fieldValue- The field value.- Returns:
- The index time analysis phases for the given field value.
-
getIndexPhasesByFieldValue
public Iterable<Map.Entry<String,List<AnalysisResponseBase.AnalysisPhase>>> getIndexPhasesByFieldValue()Returns the index time analysis phases for all field values.- Returns:
- Returns the index time analysis phases for all field value.
-