Documentation
¶
Index ¶
- func AddSegoChineseAnalyzer(indexMapping *mapping.IndexMappingImpl) error
- func GetDateTime(f index.Field) time.Time
- func New(name string, analyzer string) (*bleveIndexer, error)
- func SegoTokenizerConstructor(config map[string]interface{}, cache *registry.Cache) (analysis.Tokenizer, error)
- type Record
- func (r *Record) Body() []byte
- func (r *Record) FullPath() string
- func (r *Record) Ignore()
- func (r *Record) Ignored() bool
- func (r *Record) Indexed() time.Time
- func (r *Record) Load() bool
- func (r *Record) MimeType() string
- func (r *Record) Modified() time.Time
- func (r *Record) Path() string
- func (r *Record) SetBody(body []byte)
- func (r *Record) SetFullPath(fp string)
- func (r *Record) SetIndexed(index time.Time)
- func (r *Record) SetMimeType(val string)
- func (r *Record) SetModified(mod time.Time)
- func (r *Record) SetTitle(title string)
- func (r *Record) Title() string
- func (r *Record) Write(p []byte) (int, error)
- type SegoTokenizer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddSegoChineseAnalyzer ¶
func AddSegoChineseAnalyzer(indexMapping *mapping.IndexMappingImpl) error
Types ¶
type Record ¶
type Record struct {
// contains filtered or unexported fields
}
Record handles indexer's data
func (*Record) SetFullPath ¶
SetFullPath defines a new fullpath for the record
func (*Record) SetIndexed ¶
SetIndexed define the time that this record has been indexed
func (*Record) SetMimeType ¶
func (*Record) SetModified ¶
SetModified defines new modification time for this record
type SegoTokenizer ¶
type SegoTokenizer struct {
// contains filtered or unexported fields
}
SegoTokenizer is the beleve tokenizer for jiebago.
func (*SegoTokenizer) Tokenize ¶
func (seg *SegoTokenizer) Tokenize(input []byte) analysis.TokenStream
Tokenize cuts input into bleve token stream.
Click to show internal directories.
Click to hide internal directories.