Documentation ¶
Index ¶
Constants ¶
View Source
const ( SecondsInADay = 86400 MaxTokenProximity = 2 )
View Source
const Blog_Index_Name = "ik_g_blogs"
Variables ¶
View Source
var (
ElasticClient *elastic.Client
)
Functions ¶
func CloseSearcher ¶
func CloseSearcher()
func InitElasticSearch ¶
func InitElasticSearch() error
func InitSearcher ¶
func InitSearcher() error
****************************************************************************** 主函数 ******************************************************************************
Types ¶
type BlogScoringCriteria ¶
type BlogScoringCriteria struct { }
func (BlogScoringCriteria) Score ¶
func (criteria BlogScoringCriteria) Score(doc types.IndexedDocument, fields interface{}) []float32
type BlogScoringFields ¶
****************************************************************************** 评分 ******************************************************************************
type ElasticBlog ¶
Click to show internal directories.
Click to hide internal directories.