Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FacetResponse ¶
type FacetResponse struct {
// contains filtered or unexported fields
}
FacetResponse is a builder utility to convert facets from search backend to tigris response.
func NewFacetResponse ¶
func NewFacetResponse(query search.Facets) *FacetResponse
func (*FacetResponse) Build ¶
func (fb *FacetResponse) Build(r *[]tsApi.FacetCounts) map[string]*api.SearchFacet
Build converts search backend response to api.SearchFacet.
type Groups ¶
type Groups struct {
// contains filtered or unexported fields
}
func (*Groups) HasMoreGroups ¶
type Hit ¶
func NewSearchHit ¶
func NewSearchHit(tsHit *tsApi.SearchResultHit) *Hit
type Hits ¶
type Hits struct {
// contains filtered or unexported fields
}
func (*Hits) HasMoreHits ¶
type IHitsMutable ¶
type IHitsMutable interface { IHits // contains filtered or unexported methods }
type ResponseFactory ¶
type ResponseFactory struct {
// contains filtered or unexported fields
}
ResponseFactory is used to convert raw hits response to our Iterable that has final order of hits.
func NewResponseFactory ¶
func NewResponseFactory(inputQuery *search.Query) *ResponseFactory
func (*ResponseFactory) GetGroupedHitsIterator ¶
func (*ResponseFactory) GetGroupedHitsIterator(response []tsApi.SearchResult) *Groups
func (*ResponseFactory) GetHitsIterator ¶
func (*ResponseFactory) GetHitsIterator(response []tsApi.SearchResult) IHits
GetHitsIterator returns an IHits interface which contains hits results in an order that we need to stream out to the user.
func (*ResponseFactory) GetResponse ¶
func (r *ResponseFactory) GetResponse(response []tsApi.SearchResult) Response
Click to show internal directories.
Click to hide internal directories.