Documentation ¶
Index ¶
Constants ¶
View Source
const ( This = 1 That = -1 Equal = 0 )
Comparison outputs
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hit ¶
func NewSearchHit ¶
func NewSearchHit(tsHit *tsApi.SearchResultHit) *Hit
type SortedHits ¶
type SortedHits struct {
// contains filtered or unexported fields
}
SortedHits is a Priority queue to hold sorted search hits
func NewSortedHits ¶
func NewSortedHits(sortingOrder *sort.Ordering) SortedHits
NewSortedHits returns hits in decreasing order by priority
func (*SortedHits) Add ¶
func (s *SortedHits) Add(hit *Hit) error
func (*SortedHits) Get ¶
func (s *SortedHits) Get() (*Hit, error)
func (*SortedHits) HasMoreHits ¶
func (s *SortedHits) HasMoreHits() bool
func (*SortedHits) Len ¶
func (s *SortedHits) Len() int
Click to show internal directories.
Click to hide internal directories.