Documentation ¶
Index ¶
- func PrintESQuery(nss *elastic.SearchSource)
- type DB
- func (db *DB) BaseQuery(did int, country string, exclIDs []string) (*elastic.BoolQuery, error)
- func (db *DB) Count(did int) (count int)
- func (db *DB) ExecuteQuery(q *elastic.BoolQuery) (result []map[string]interface{}, err error)
- func (db *DB) FindOne(id, did int, ln string) (expert models.Expert, err error)
- func (db *DB) ForeignSearch(fn, mn, ln, country, city string, did int, exclIDs []string) []map[string]interface{}
- func (db *DB) IndexExperts(experts []*modelsMysql.Experts, batchInsert int) (err error)
- func (db *DB) MadnessSearch(fn, mn, ln, country, city string, did int, exclIDs []string) (result []map[string]interface{})
- func (db *DB) MarkAsDeleted(id string) (err error)
- func (db *DB) NoMiddleNameSearch(fn, mn, ln, country, city string, did int, exclIDs []string) (result []map[string]interface{})
- func (db *DB) OneMiddleNameSearch(fn, mn, ln, country, city string, did int, exclIDs []string) (result []map[string]interface{})
- func (db *DB) OneMiddleNameSearch2(fn, mn, ln, country, city string, did int, exclIDs []string) (result []map[string]interface{})
- func (db *DB) RemoveData(did int) (deleted int64, err error)
- func (db *DB) ShortSearch(fn, mn, ln, country, city string, did int, exclIDs []string) (result []map[string]interface{})
- func (db *DB) SimpleSearch(fn, mn, ln, country, city string, did int, exclIDs []string) []map[string]interface{}
- func (db *DB) TestSearch(fn, mn, ln, country, city string, did int, exclIDs []string) (result []map[string]interface{})
- func (db *DB) ThreeInitialsSearch(fn, mn, ln, country, city string, did int, exclIDs []string) (result []map[string]interface{})
- func (db *DB) UpdatePartially(id string, exp models.Expert) (err error)
- type Repository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrintESQuery ¶
func PrintESQuery(nss *elastic.SearchSource)
Types ¶
type DB ¶
func (*DB) BaseQuery ¶
BaseQuery just returns the base query so you can use it for your specifin needs
func (*DB) ExecuteQuery ¶
func (*DB) ForeignSearch ¶
func (*DB) IndexExperts ¶
func (db *DB) IndexExperts(experts []*modelsMysql.Experts, batchInsert int) (err error)
func (*DB) MadnessSearch ¶
func (*DB) MarkAsDeleted ¶
func (*DB) NoMiddleNameSearch ¶
func (*DB) OneMiddleNameSearch ¶
func (*DB) OneMiddleNameSearch2 ¶
func (*DB) ShortSearch ¶
func (*DB) SimpleSearch ¶
func (*DB) TestSearch ¶
func (*DB) ThreeInitialsSearch ¶
type Repository ¶
type Repository interface { ExecuteQuery(q *elastic.BoolQuery) ([]map[string]interface{}, error) Count(did int) int FindOne(id, did int, ln string) (models.Expert, error) MarkAsDeleted(id string) (err error) UpdatePartially(id string, exp models.Expert) (err error) // searches BaseQuery(did int, country string, exclIDs []string) (*elastic.BoolQuery, error) SimpleSearch(fn, mn, ln, country, city string, did int, exclIDs []string) []map[string]interface{} ForeignSearch(fn, mn, ln, country, city string, did int, exclIDs []string) []map[string]interface{} ShortSearch(fn, mn, ln, country, city string, did int, exclIDs []string) []map[string]interface{} NoMiddleNameSearch(fn, mn, ln, country, city string, did int, exclIDs []string) []map[string]interface{} OneMiddleNameSearch(fn, mn, ln, country, city string, did int, exclIDs []string) []map[string]interface{} OneMiddleNameSearch2(fn, mn, ln, country, city string, did int, exclIDs []string) []map[string]interface{} MadnessSearch(fn, mn, ln, country, city string, did int, exclIDs []string) []map[string]interface{} ThreeInitialsSearch(fn, mn, ln, country, city string, did int, exclIDs []string) []map[string]interface{} TestSearch(fn, mn, ln, country, city string, did int, exclIDs []string) []map[string]interface{} // index RemoveData(did int) (int64, error) IndexExperts(experts []*modelsMysql.Experts, batchInsert int) error }
Click to show internal directories.
Click to hide internal directories.