Topics cahanges
This commit is contained in:
parent
0b6cc2e09d
commit
a0728b97c8
@ -86,6 +86,7 @@ func (t topicid) findTopicID(msgid string, enter int) (string, error) {
|
||||
|
||||
if res.Hits.Hits[0].Source.TopicID != "" {
|
||||
topicid = res.Hits.Hits[0].Source.TopicID
|
||||
return topicid, nil
|
||||
}
|
||||
|
||||
if res.Hits.Hits[0].Source.Repto != "" && res.Hits.Hits[0].Source.TopicID == "" {
|
||||
@ -174,7 +175,7 @@ func (es ESConf) PutToIndex(msg ESDoc) error {
|
||||
var t topicid
|
||||
t.es = es
|
||||
topic := t.getOrCreate(&msg)
|
||||
if msg.TopicID != topic {
|
||||
if msg.TopicID == "" {
|
||||
msg.TopicID = topic
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user