Documentation ¶
Index ¶
- func NewDefaultTextFieldMapping(analyzer string) (f *mapping.FieldMapping)
- func NewDocumentMapping(tag language.Tag) (analyzer string, dm *mapping.DocumentMapping)
- func NewIndexMapping(tag language.Tag) (indexMapping *mapping.IndexMappingImpl)
- func NewMemOnlyIndexWithDocMaps(tag language.Tag, docMaps map[string]*mapping.DocumentMapping) (index bleve.Index, err error)
- type CDocument
- func (d *CDocument) AddContent(text string)
- func (d *CDocument) BleveType() string
- func (d *CDocument) GetContents() (contents []string)
- func (d *CDocument) GetLanguage() (language string)
- func (d *CDocument) GetTitle() (title string)
- func (d *CDocument) GetUrl() (url string)
- func (d *CDocument) Self() interface{}
- type Document
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDefaultTextFieldMapping ¶
func NewDefaultTextFieldMapping(analyzer string) (f *mapping.FieldMapping)
func NewDocumentMapping ¶
func NewDocumentMapping(tag language.Tag) (analyzer string, dm *mapping.DocumentMapping)
func NewIndexMapping ¶
func NewIndexMapping(tag language.Tag) (indexMapping *mapping.IndexMappingImpl)
Types ¶
type CDocument ¶
type CDocument struct { Type string `json:"type"` Url string `json:"url"` Title string `json:"title"` Language string `json:"language"` Contents []string `json:"contents"` }
func NewDocument ¶
func (*CDocument) AddContent ¶
func (*CDocument) GetContents ¶
func (*CDocument) GetLanguage ¶
Click to show internal directories.
Click to hide internal directories.