Class SearchResponse
- java.lang.Object
-
- com.funnelback.publicui.search.model.transaction.SearchResponse
-
public class SearchResponse extends java.lang.ObjectThis 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 java.util.Map<java.lang.String,java.lang.Object>customDataCustom data placeholder allowing any arbitrary data to be stored by hook scripts.private FacetExtrasfacetExtrasInformation about facets that is not available fromfacetsprivate java.util.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 org.springframework.util.StopWatchperformanceMetricsPerformance metrics of each phase of the transaction lifecycleprivate java.lang.StringrawPacketRaw XML packet as return by PADRE, for debugging purposes.private ResultPacketresultPacketThe result packet coming from PADREprivate intreturnCodePADRE return code (0 = success)private java.util.Map<java.lang.String,java.lang.String>translationsContains translation messages for the UI, for the locale given in theSearchQuestion.private java.lang.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 CuratorgetCurator()Curator: Curated result packet data data.java.util.Map<java.lang.String,java.lang.Object>getCustomData()Custom data placeholder allowing any arbitrary data to be stored by hook scripts.FacetgetFacetByName(java.lang.String name)Returns the first facet with the given nameFacetExtrasgetFacetExtras()Information about facets that is not available fromfacetsjava.util.List<Facet>getFacets()Computed facets based on the PADRE result packet and collection configuration.ContentOptimiserModelgetOptimiserModel()Content Optimiser: URL comparison data.PadreSwCmdgetPadreSwCmd()The padre-sw command run to execute the query used to generate this search response.org.springframework.util.StopWatchgetPerformanceMetrics()Performance metrics of each phase of the transaction lifecyclejava.lang.StringgetRawPacket()Raw XML packet as return by PADRE, for debugging purposes.ResultPacketgetResultPacket()The result packet coming from PADREintgetReturnCode()PADRE return code (0 = success)java.util.Map<java.lang.String,java.lang.String>getTranslations()Contains translation messages for the UI, for the locale given in theSearchQuestion.java.lang.IntegergetUntruncatedPadreOutputSize()Amount of output produced by PADRE responding to the query, in bytes.booleanhasResultPacket()voidsetCurator(Curator curator)Curator: Curated result packet data data.voidsetOptimiserModel(ContentOptimiserModel optimiserModel)Content Optimiser: URL comparison data.voidsetPadreSwCmd(PadreSwCmd padreSwCmd)The padre-sw command run to execute the query used to generate this search response.voidsetPerformanceMetrics(org.springframework.util.StopWatch performanceMetrics)Performance metrics of each phase of the transaction lifecyclevoidsetRawPacket(java.lang.String rawPacket)Raw XML packet as return by PADRE, for debugging purposes.voidsetResultPacket(ResultPacket resultPacket)The result packet coming from PADREvoidsetReturnCode(int returnCode)PADRE return code (0 = success)voidsetUntruncatedPadreOutputSize(java.lang.Integer untruncatedPadreOutputSize)Amount of output produced by PADRE responding to the query, in bytes.java.lang.StringtoString()
-
-
-
Field Detail
-
resultPacket
private ResultPacket resultPacket
The result packet coming from PADRE
-
rawPacket
private java.lang.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 java.lang.Integer untruncatedPadreOutputSize
Amount of output produced by PADRE responding to the query, in bytes.- Since:
- 15.12
-
facets
private final java.util.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 java.util.Map<java.lang.String,java.lang.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 java.util.Map<java.lang.String,java.lang.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 org.springframework.util.StopWatch performanceMetrics
Performance metrics of each phase of the transaction lifecycle- Since:
- 12.4
-
-
Method Detail
-
getFacetByName
public Facet getFacetByName(java.lang.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.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getResultPacket
public ResultPacket getResultPacket()
The result packet coming from PADRE
-
setResultPacket
public void setResultPacket(ResultPacket resultPacket)
The result packet coming from PADRE
-
getRawPacket
public java.lang.String getRawPacket()
Raw XML packet as return by PADRE, for debugging purposes.
Note: This is not included in the JSON / XML output for performance reasons
-
setRawPacket
public void setRawPacket(java.lang.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
-
getPadreSwCmd
public PadreSwCmd getPadreSwCmd()
The padre-sw command run to execute the query used to generate this search response.- Since:
- 15.24
-
setPadreSwCmd
public void setPadreSwCmd(PadreSwCmd padreSwCmd)
The padre-sw command run to execute the query used to generate this search response.- Since:
- 15.24
-
getReturnCode
public int getReturnCode()
PADRE return code (0 = success)
-
setReturnCode
public void setReturnCode(int returnCode)
PADRE return code (0 = success)
-
getUntruncatedPadreOutputSize
public java.lang.Integer getUntruncatedPadreOutputSize()
Amount of output produced by PADRE responding to the query, in bytes.- Since:
- 15.12
-
setUntruncatedPadreOutputSize
public void setUntruncatedPadreOutputSize(java.lang.Integer untruncatedPadreOutputSize)
Amount of output produced by PADRE responding to the query, in bytes.- Since:
- 15.12
-
getFacets
public java.util.List<Facet> getFacets()
Computed facets based on the PADRE result packet and collection configuration.
-
getFacetExtras
public FacetExtras getFacetExtras()
Information about facets that is not available fromfacets- Since:
- 15.12
-
getCustomData
public java.util.Map<java.lang.String,java.lang.Object> getCustomData()
Custom data placeholder allowing any arbitrary data to be stored by hook scripts.
-
getOptimiserModel
public ContentOptimiserModel getOptimiserModel()
Content Optimiser: URL comparison data.
-
setOptimiserModel
public void setOptimiserModel(ContentOptimiserModel optimiserModel)
Content Optimiser: URL comparison data.
-
getCurator
public Curator getCurator()
Curator: Curated result packet data data.- Since:
- 13.0
-
setCurator
public void setCurator(Curator curator)
Curator: Curated result packet data data.- Since:
- 13.0
-
getTranslations
public java.util.Map<java.lang.String,java.lang.String> getTranslations()
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
-
getPerformanceMetrics
public org.springframework.util.StopWatch getPerformanceMetrics()
Performance metrics of each phase of the transaction lifecycle- Since:
- 12.4
-
setPerformanceMetrics
public void setPerformanceMetrics(org.springframework.util.StopWatch performanceMetrics)
Performance metrics of each phase of the transaction lifecycle- Since:
- 12.4
-
-