Jive API (3.0.13) Core Javadocs

com.jivesoftware.community
Interface SearchQueryResult


public interface SearchQueryResult

Encapsulates a search result resulting from a search using the SearchQuery class. Relevance is only stored to 3 significant decimal places (xx.x%)


Method Summary
 EntityDescriptor getEntityDescriptor()
          This method returns a EntityDescriptor that points to the object this query result pertains to.
 JiveObject getJiveObject()
          This method returns a JiveObject this query result pertains to.
 long getJiveObjectID()
          Retrieve the unique id for the jive object this query result pertains to.
 int getJiveObjectType()
          Retrieve the type of the jive object this query result pertains to.
 Date getModificationDate()
          Returns the modification date of the jive content object this query result pertains to.
 float getRelevance()
          Get the relevance of this query result as determined by the search engine.
 String getRelevanceAsPercentage(Locale locale)
          Returns the relevance as a percentage (no decimal places) formatted according to the locale passed in.
 

Method Detail

getJiveObjectID

long getJiveObjectID()
Retrieve the unique id for the jive object this query result pertains to.

Returns:
the unique id for the jive content object.

getJiveObjectType

int getJiveObjectType()
Retrieve the type of the jive object this query result pertains to.

Returns:
the type of the jive content object.

getJiveObject

JiveObject getJiveObject()
This method returns a JiveObject this query result pertains to.

Returns:
the JiveContentObject this query result pertains to.

getEntityDescriptor

EntityDescriptor getEntityDescriptor()
This method returns a EntityDescriptor that points to the object this query result pertains to.

Returns:
the JiveContentObject this query result pertains to.

getModificationDate

Date getModificationDate()
Returns the modification date of the jive content object this query result pertains to. This may not be the most current modification date but rather is likely to be the modification date of the content object the last time it was added to the search index.

Returns:
the modification date of the jive content object this query result pertains to.

getRelevance

float getRelevance()
Get the relevance of this query result as determined by the search engine.

Returns:
the relevance of this query result as determined by the search engine.

getRelevanceAsPercentage

String getRelevanceAsPercentage(Locale locale)
Returns the relevance as a percentage (no decimal places) formatted according to the locale passed in.

Parameters:
locale - the locale to use to format the percentage.
Returns:
the formatted percentage as a String.

Jive Product Page

Copyright © 1999-2007 Jive Software.