Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions index.go
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,9 @@ type DocIDReader interface {
Close() error
}

// Sentinel value used to separate terms in doc values encoding
const DocValueTermSeparator byte = 0xff

type DocValueVisitor func(field string, term []byte)

type DocValueReader interface {
Expand Down
22 changes: 22 additions & 0 deletions indexing_options.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ const (
IncludeTermVectors
DocValues
SkipFreqNorm
SkipSnappy
SkipChunking
)

const (
Expand Down Expand Up @@ -59,6 +61,14 @@ func (o FieldIndexingOptions) SkipFreqNorm() bool {
return o&SkipFreqNorm != 0
}

func (o FieldIndexingOptions) SkipSnappy() bool {
return o&SkipSnappy != 0
}

func (o FieldIndexingOptions) SkipChunking() bool {
return o&SkipChunking != 0
}

func (o FieldIndexingOptions) String() string {
rv := ""
if o.IsIndexed() {
Expand Down Expand Up @@ -88,5 +98,17 @@ func (o FieldIndexingOptions) String() string {
}
rv += "FN"
}
if !o.SkipSnappy() {
if rv != "" {
rv += ", "
}
rv += "SNAPPY"
}
if !o.SkipChunking() {
if rv != "" {
rv += ", "
}
rv += "CHUNKING"
}
return rv
}
Loading