Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildIndexMapping ¶
func BuildIndexMapping(documents ...DocumentMapping) mapping.IndexMapping
BuildIndexMapping gets slice of documents (DocumentMapping interface) and returns index with those documents mappings
Types ¶
type DocumentMapping ¶
type DocumentMapping interface { GetDocumentMapping() *mapping.DocumentMapping Type() string }
DocumentMapping implements mapping.DocumentMapping functionality
type Trigger ¶
Trigger represents Moira.Trigger type for full-text search index. It includes only indexed fields
func CreateIndexedTrigger ¶
func CreateIndexedTrigger(triggerCheck *moira.TriggerCheck) Trigger
CreateIndexedTrigger creates mapping.Trigger object out of moira.TriggerCheck
func (Trigger) GetDocumentMapping ¶
func (Trigger) GetDocumentMapping() *mapping.DocumentMapping
GetDocumentMapping returns Bleve.mapping.DocumentMapping for Trigger type
type TriggerField ¶
type TriggerField int
TriggerField is used as enum
const ( TriggerID TriggerField = iota TriggerName TriggerDesc TriggerTags TriggerLastCheckScore )
Constants used as enum
func (TriggerField) GetTagValue ¶ added in v2.5.0
func (field TriggerField) GetTagValue() string
GetTagValue returns TriggerField value used in marshalling. It works like enum
func (TriggerField) String ¶
func (field TriggerField) String() string
String returns TriggerField name. It works like enum
Click to show internal directories.
Click to hide internal directories.