#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
Base class for all Lucene classes.
Definition: LuceneObject.h:31
Encapsulates sort criteria for returned hits.
Definition: Sort.h:68
virtual bool equals(const LuceneObjectPtr &other)
Return whether two objects are equal.
static SortPtr INDEXORDER()
Represents sorting by index order.
virtual String toString()
Returns a string representation of the object.
Sort(Collection< SortFieldPtr > fields)
Sorts in succession by the criteria in each SortField.
Sort()
Sorts by computed relevance. This is the same sort criteria as calling Searcher#search() without a so...
Collection< SortFieldPtr > fields
Internal representation of the sort criteria.
Definition: Sort.h:87
void setSort(const SortFieldPtr &field)
Sets the sort to the given criteria.
Collection< SortFieldPtr > getSort()
Representation of the sort criteria.
static SortPtr RELEVANCE()
Represents sorting by computed relevance. Using this sort criteria returns the same results as callin...
virtual int32_t hashCode()
Return hash code for this object.
void setSort(Collection< SortFieldPtr > fields)
Sets the sort to the given criteria in succession.
Sort(const SortFieldPtr &field)
Sorts by the criteria in the given SortField.
Definition: AbstractAllTermDocs.h:12
boost::shared_ptr< LuceneObject > LuceneObjectPtr
Definition: LuceneTypes.h:539
boost::shared_ptr< SortField > SortFieldPtr
Definition: LuceneTypes.h:443
boost::shared_ptr< Sort > SortPtr
Definition: LuceneTypes.h:442