wukong icon indicating copy to clipboard operation
wukong copied to clipboard

error fixing & add fields to ScoredDocument for SearchResponse

Open rchardzhu opened this issue 7 years ago • 0 comments

  1. fix error: not enough arguments in call to searcher.IndexDocument
  2. add fields to ScoredDocument for SearchResponse usage: i := 0 for _, hit := range result.Docs { log.Println("id, score: ", hit.DocId, hit.Scores) var article Article json.Unmarshal(hit.Fields.([]byte), &article) log.Println("fileds: ", article) i++ }

rchardzhu avatar Jun 04 '17 16:06 rchardzhu