|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.smila.search.api.helper.RecordAccessor
org.eclipse.smila.search.api.helper.QueryRecordAccessor
public class QueryRecordAccessor
accessor for query records in search results to read out additional result properties that are attached to the effective query object: term lists for query attributes, facets (aka categorization, grouping, questions), total number of search results, etc.
| Constructor Summary | |
|---|---|
QueryRecordAccessor(Record record)
create instance for record. |
|
| Method Summary | |
|---|---|
java.lang.Double |
getBoostFactor(java.lang.String attributeName)
get boost factor for attribute. |
Facets |
getFacets(java.lang.String attributeName)
get facets list for an attribute. |
java.lang.String |
getIndexName()
|
java.lang.Integer |
getIndexSize()
get total number of objects evaluated in this search. |
java.lang.String |
getLanguage()
|
java.util.Iterator<java.lang.String> |
getOrderByAttributeNames()
get iterator on names of attributes that have an order-by parameter set. |
SearchParameters.OrderMode |
getOrderMode(java.lang.String attributeName)
get order mode for an attribute. |
java.lang.String |
getParameter(java.lang.String name)
gets a single valued parameter. |
java.util.List<java.lang.String> |
getParameters(java.lang.String name)
gets a multi values parameter. |
java.lang.String |
getQuery()
|
Annotation |
getRankingAnnotation(java.lang.String attributeName)
return ranking annotation for current record or given attribute. |
java.lang.String |
getRankingName(java.lang.String attributeName)
get ranking name for attribute or record. |
java.lang.Integer |
getResultOffset()
|
java.lang.Integer |
getResultSize()
|
java.lang.Integer |
getSearchRuntime()
get runtime of search workflow in milliseconds. |
java.lang.Double |
getThreshold()
|
java.lang.Integer |
getTotalHits()
get total number of hits for the search result. |
| Methods inherited from class org.eclipse.smila.search.api.helper.RecordAccessor |
|---|
annotationSize, annotationSize, getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAnnotationValue, getAnnotationValues, getLiteral, getLiterals, getRecord, getResultAnnotationFloatValue, getResultAnnotationIntValue, getResultAnnotationValue, getTerms, hasAnnotation, hasAnnotation, hasAttribute, hasLiterals, literalSize, unmodifiableList |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public QueryRecordAccessor(Record record)
record - a query record.| Method Detail |
|---|
public java.lang.String getQuery()
public java.lang.Integer getResultSize()
public java.lang.Integer getResultOffset()
public java.lang.Double getThreshold()
public java.lang.String getLanguage()
public java.lang.String getIndexName()
public java.lang.Integer getTotalHits()
public java.lang.Integer getIndexSize()
public java.lang.Integer getSearchRuntime()
public java.lang.String getParameter(java.lang.String name)
name - parameter name
public java.util.List<java.lang.String> getParameters(java.lang.String name)
name - parameter name
public Facets getFacets(java.lang.String attributeName)
attributeName - name of attribute.
public java.util.Iterator<java.lang.String> getOrderByAttributeNames()
public SearchParameters.OrderMode getOrderMode(java.lang.String attributeName)
attributeName - attribute name
public Annotation getRankingAnnotation(java.lang.String attributeName)
attributeName - name of attribute, or null for top-level ranking annotation.
public java.lang.Double getBoostFactor(java.lang.String attributeName)
attributeName - attribute name
public java.lang.String getRankingName(java.lang.String attributeName)
attributeName - attribute name, null for record
|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||