Versions in this module Expand all Collapse all v0 v0.2.0 Apr 8, 2016 v0.1.0 Apr 8, 2016 Changes in this version + const DefaultBooleanIndexingOptions + const DefaultCompositeIndexingOptions + const DefaultDateTimeIndexingOptions + const DefaultDateTimePrecisionStep + const DefaultNumericIndexingOptions + const DefaultPrecisionStep + const DefaultTextIndexingOptions + var MaxTimeRepresentable = time.Unix(0, math.MaxInt64) + var MinTimeRepresentable = time.Unix(0, math.MinInt64) + type BooleanField struct + func NewBooleanField(name string, arrayPositions []uint64, b bool) *BooleanField + func NewBooleanFieldFromBytes(name string, arrayPositions []uint64, value []byte) *BooleanField + func NewBooleanFieldWithIndexingOptions(name string, arrayPositions []uint64, b bool, options IndexingOptions) *BooleanField + func (b *BooleanField) Analyze() (int, analysis.TokenFrequencies) + func (b *BooleanField) ArrayPositions() []uint64 + func (b *BooleanField) Boolean() (bool, error) + func (b *BooleanField) GoString() string + func (b *BooleanField) Name() string + func (b *BooleanField) NumPlainTextBytes() uint64 + func (b *BooleanField) Options() IndexingOptions + func (b *BooleanField) Value() []byte + type CompositeField struct + func NewCompositeField(name string, defaultInclude bool, include []string, exclude []string) *CompositeField + func NewCompositeFieldWithIndexingOptions(name string, defaultInclude bool, include []string, exclude []string, ...) *CompositeField + func (c *CompositeField) Analyze() (int, analysis.TokenFrequencies) + func (c *CompositeField) ArrayPositions() []uint64 + func (c *CompositeField) Compose(field string, length int, freq analysis.TokenFrequencies) + func (c *CompositeField) Name() string + func (c *CompositeField) NumPlainTextBytes() uint64 + func (c *CompositeField) Options() IndexingOptions + func (c *CompositeField) Value() []byte + type DateTimeField struct + func NewDateTimeField(name string, arrayPositions []uint64, dt time.Time) (*DateTimeField, error) + func NewDateTimeFieldFromBytes(name string, arrayPositions []uint64, value []byte) *DateTimeField + func NewDateTimeFieldWithIndexingOptions(name string, arrayPositions []uint64, dt time.Time, options IndexingOptions) (*DateTimeField, error) + func (n *DateTimeField) Analyze() (int, analysis.TokenFrequencies) + func (n *DateTimeField) ArrayPositions() []uint64 + func (n *DateTimeField) DateTime() (time.Time, error) + func (n *DateTimeField) GoString() string + func (n *DateTimeField) Name() string + func (n *DateTimeField) NumPlainTextBytes() uint64 + func (n *DateTimeField) Options() IndexingOptions + func (n *DateTimeField) Value() []byte + type Document struct + CompositeFields []*CompositeField + Fields []Field + ID string + Number uint64 + func NewDocument(id string) *Document + func (d *Document) AddField(f Field) *Document + func (d *Document) GoString() string + func (d *Document) NumPlainTextBytes() uint64 + type Field interface + Analyze func() (int, analysis.TokenFrequencies) + ArrayPositions func() []uint64 + Name func() string + NumPlainTextBytes func() uint64 + Options func() IndexingOptions + Value func() []byte + type IndexingOptions int + const IncludeTermVectors + const IndexField + const StoreField + func (o IndexingOptions) IncludeTermVectors() bool + func (o IndexingOptions) IsIndexed() bool + func (o IndexingOptions) IsStored() bool + func (o IndexingOptions) String() string + type NumericField struct + func NewNumericField(name string, arrayPositions []uint64, number float64) *NumericField + func NewNumericFieldFromBytes(name string, arrayPositions []uint64, value []byte) *NumericField + func NewNumericFieldWithIndexingOptions(name string, arrayPositions []uint64, number float64, options IndexingOptions) *NumericField + func (n *NumericField) Analyze() (int, analysis.TokenFrequencies) + func (n *NumericField) ArrayPositions() []uint64 + func (n *NumericField) GoString() string + func (n *NumericField) Name() string + func (n *NumericField) NumPlainTextBytes() uint64 + func (n *NumericField) Number() (float64, error) + func (n *NumericField) Options() IndexingOptions + func (n *NumericField) Value() []byte + type TextField struct + func NewTextField(name string, arrayPositions []uint64, value []byte) *TextField + func NewTextFieldCustom(name string, arrayPositions []uint64, value []byte, options IndexingOptions, ...) *TextField + func NewTextFieldWithAnalyzer(name string, arrayPositions []uint64, value []byte, ...) *TextField + func NewTextFieldWithIndexingOptions(name string, arrayPositions []uint64, value []byte, options IndexingOptions) *TextField + func (t *TextField) Analyze() (int, analysis.TokenFrequencies) + func (t *TextField) ArrayPositions() []uint64 + func (t *TextField) GoString() string + func (t *TextField) Name() string + func (t *TextField) NumPlainTextBytes() uint64 + func (t *TextField) Options() IndexingOptions + func (t *TextField) Value() []byte