public class Search extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ACTIONS |
static String |
ACTIONS_DESCRIPTION |
static String |
ACTIONS_ID |
static String |
ACTIONS_TITLE |
static String |
ACTIONS_URL |
static String |
ATTRIBUTE_FORMAT |
static String |
ATTRIBUTE_INDEXED |
static String |
CACHED |
static String |
DISTANCE |
static String |
DONE |
static String |
ELAPSED |
static String |
HITS |
static String |
ID |
static String |
METACARD |
static String |
METACARD_TYPES |
static String |
REASONS |
static String |
RELEVANCE |
static String |
RESULTS |
static String |
STATE |
static String |
STATUS |
static String |
SUCCESSFUL |
Constructor and Description |
---|
Search(SearchRequest request,
ActionRegistry registry) |
Modifier and Type | Method and Description |
---|---|
void |
failSource(String sourceId,
Exception cause) |
long |
getHits() |
Map<String,QueryStatus> |
getQueryStatus() |
List<Result> |
getResults() |
SearchRequest |
getSearchRequest() |
boolean |
isFinished() |
void |
setHits(long hits) |
Map<String,Object> |
transform(String searchRequestId) |
void |
update(QueryResponse queryResponse) |
void |
update(String sourceId,
QueryResponse queryResponse)
Adds a query response to the cached set of results.
|
public static final String REASONS
public static final String HITS
public static final String DISTANCE
public static final String RELEVANCE
public static final String METACARD
public static final String ACTIONS
public static final String ACTIONS_ID
public static final String ACTIONS_TITLE
public static final String ACTIONS_DESCRIPTION
public static final String ACTIONS_URL
public static final String RESULTS
public static final String METACARD_TYPES
public static final String SUCCESSFUL
public static final String STATUS
public static final String STATE
public static final String ID
public static final String DONE
public static final String ELAPSED
public static final String CACHED
public static final String ATTRIBUTE_FORMAT
public static final String ATTRIBUTE_INDEXED
public Search(SearchRequest request, ActionRegistry registry)
public void update(QueryResponse queryResponse)
public void update(String sourceId, QueryResponse queryResponse)
queryResponse
- - Query response to addInterruptedException
public boolean isFinished()
public SearchRequest getSearchRequest()
public Map<String,QueryStatus> getQueryStatus()
public long getHits()
public void setHits(long hits)
public Map<String,Object> transform(String searchRequestId) throws CatalogTransformerException
CatalogTransformerException
This work is licensed under a Creative Commons Attribution 4.0 International License.