Class SearchResponse
- java.lang.Object
-
- com.funnelback.publicui.search.model.transaction.SearchResponse
-
public class SearchResponse extends Object
This class contains all the output data related to a search.
Most of this data is coming from PADRE, but there is also data computed from the PADRE result set, such as facets.
- Since:
- 11.0
-
-
Field Summary
Fields Modifier and Type Field Description private CuratorcuratorCurator: Curated result packet data data.private Map<String,Object>customDataCustom data placeholder allowing any arbitrary data to be stored by hook scripts.private FacetExtrasfacetExtrasInformation about facets that is not available fromfacetsprivate List<Facet>facetsComputed facets based on the PADRE result packet and collection configuration.private ContentOptimiserModeloptimiserModelContent Optimiser: URL comparison data.private PadreSwCmdpadreSwCmdThe padre-sw command run to execute the query used to generate this search response.private ObjectperformanceMetricsPerformance metrics of each phase of the transaction lifecycleprivate StringrawPacketRaw XML packet as return by PADRE, for debugging purposes.private ResultPacketresultPacketThe result packet coming from PADREprivate intreturnCodePADRE return code (0 = success)private Map<String,String>translationsContains translation messages for the UI, for the locale given in theSearchQuestion.private IntegeruntruncatedPadreOutputSizeAmount of output produced by PADRE responding to the query, in bytes.
-
Constructor Summary
Constructors Constructor Description SearchResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FacetgetFacetByName(String name)Returns the first facet with the given namebooleanhasResultPacket()
-
-
-
Field Detail
-
resultPacket
private ResultPacket resultPacket
The result packet coming from PADRE
-
rawPacket
private String rawPacket
Raw XML packet as return by PADRE, for debugging purposes.
Note: This is not included in the JSON / XML output for performance reasons
-
padreSwCmd
private PadreSwCmd padreSwCmd
The padre-sw command run to execute the query used to generate this search response.- Since:
- 15.24
-
returnCode
private int returnCode
PADRE return code (0 = success)
-
untruncatedPadreOutputSize
private Integer untruncatedPadreOutputSize
Amount of output produced by PADRE responding to the query, in bytes.- Since:
- 15.12
-
facets
private final List<Facet> facets
Computed facets based on the PADRE result packet and collection configuration.
-
facetExtras
private final FacetExtras facetExtras
Information about facets that is not available fromfacets- Since:
- 15.12
-
customData
private final Map<String,Object> customData
Custom data placeholder allowing any arbitrary data to be stored by hook scripts.
-
optimiserModel
private ContentOptimiserModel optimiserModel
Content Optimiser: URL comparison data.
-
curator
private Curator curator
Curator: Curated result packet data data.- Since:
- 13.0
-
translations
private final Map<String,String> translations
Contains translation messages for the UI, for the locale given in the
SearchQuestion.Note: This is not included in the JSON / XML output for performance reasons
- Since:
- 12.0
-
performanceMetrics
private Object performanceMetrics
Performance metrics of each phase of the transaction lifecycle- Since:
- 12.4
-
-
Method Detail
-
getFacetByName
public Facet getFacetByName(String name)
Returns the first facet with the given name- Parameters:
name- The name of the facet that is wanted.- Returns:
- the facet with the given name if not found null is returned.
- Since:
- 15.14
-
hasResultPacket
public boolean hasResultPacket()
- Returns:
- true if the
resultPacketis not null.
-
-