Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
34 lines (28 sloc) 748 Bytes
package ravendb
import (
var (
// DefaultFacetOptions are default facet options
DefaultFacetOptions = &FacetOptions{}
// FacetOptions describes options for facet
type FacetOptions struct {
TermSortMode FacetTermSortMode `json:"TermSortMode"`
IncludeRemainingTerms bool `json:"IncludeRemainingTerms"`
Start int `json:"Start"`
PageSize int `json:"PageSize"`
func maxInt() int {
if unsafe.Sizeof(int(0)) == unsafe.Sizeof(int32(0)) {
return int(math.MaxInt32)
return int(math.MaxInt64)
// NewFacetOptions returns new FacetOptions
func NewFacetOptions() *FacetOptions {
return &FacetOptions{
PageSize: int(math.MaxInt32),
You can’t perform that action at this time.