|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compass.core.impl.AbstractCompassHits
org.compass.core.impl.DefaultCompassDetachedHits
public class DefaultCompassDetachedHits
| Constructor Summary | |
|---|---|
DefaultCompassDetachedHits(InternalCompassHits hits,
InternalCompassSession session,
int from,
int size,
CompassQuery query,
CompassQuery suggestedQuery)
|
|
| Method Summary | |
|---|---|
Object |
data(int n)
Returns the object that maps the n'th hit |
Object[] |
getDatas()
Returns all the Objects data as an array. |
CompassHit[] |
getHits()
Returns all the CompassHits data as an array. |
int |
getLength()
Returns the number of hits, |
CompassQuery |
getQuery()
Retrurn the query that resulted in this search hits. |
Resource[] |
getResources()
Returns all the Resources as an array. |
CompassQuery |
getSuggestedQuery()
Returns a suggested query (based on spell check). |
int |
getTotalLength()
Returns the total number of hits (not just the detached ones). |
CompassHighlightedText |
highlightedText(int n)
Returns a cached highlighted text the maps to the n'th hit. |
CompassHit |
hit(int n)
Returns a compass hit wrapper that maps to the n'th hit |
Resource |
resource(int n)
Returns the resource that maps to the n'th hit |
float |
score(int n)
Returns the score of the n'th hit. |
int |
totalLength()
Returns the total number of hits (not just the detached ones). |
| Methods inherited from class org.compass.core.impl.AbstractCompassHits |
|---|
iterator, length |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.compass.core.CompassHitsOperations |
|---|
length |
| Methods inherited from interface java.lang.Iterable |
|---|
iterator |
| Constructor Detail |
|---|
public DefaultCompassDetachedHits(InternalCompassHits hits,
InternalCompassSession session,
int from,
int size,
CompassQuery query,
CompassQuery suggestedQuery)
throws CompassException,
IllegalArgumentException
CompassException
IllegalArgumentException| Method Detail |
|---|
public CompassQuery getQuery()
CompassHitsOperations
getQuery in interface CompassHitsOperationspublic CompassQuery getSuggestedQuery()
CompassHitsOperations
getSuggestedQuery in interface CompassHitsOperationsCompassQuery.getSuggestedQuery()
public float score(int n)
throws CompassException,
IllegalArgumentException
CompassHitsOperations
score in interface CompassHitsOperationsn - The n'th hit.
CompassException
IllegalArgumentException
public Resource resource(int n)
throws CompassException,
IllegalArgumentException
CompassHitsOperations
resource in interface CompassHitsOperationsn - The n'th hit.
CompassException
IllegalArgumentException
public Object data(int n)
throws CompassException,
IllegalArgumentException
CompassHitsOperations
data in interface CompassHitsOperationsn - The n'th hit.
CompassException
IllegalArgumentException
public CompassHighlightedText highlightedText(int n)
throws CompassException
CompassHitsOperationsCompassHighlighter
using CompassHits.highlighter(int).
highlightedText in interface CompassHitsOperationsn - The n'th hit
CompassException
public CompassHit hit(int n)
throws CompassException
CompassHitsOperations
hit in interface CompassHitsOperationsn - The n'th hit.
CompassExceptionpublic int getLength()
CompassHitsOperations
getLength in interface CompassHitsOperationspublic int getTotalLength()
CompassDetachedHits
getTotalLength in interface CompassDetachedHitspublic int totalLength()
CompassDetachedHits
totalLength in interface CompassDetachedHits
public Resource[] getResources()
throws CompassException
CompassDetachedHitsResources as an array.
getResources in interface CompassDetachedHitsResources as an array
CompassException
public Object[] getDatas()
throws CompassException
CompassDetachedHitsObjects data as an array.
getDatas in interface CompassDetachedHitsCompassException
public CompassHit[] getHits()
throws CompassException
CompassDetachedHitsCompassHits data as an array.
getHits in interface CompassDetachedHitsCompassExceptionCompassHit
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||