Closed AbhiAgarwal closed 7 years ago
not sure how to write dis query
{
"query": {
"bool": {
"should": [{
"match": {
"data.Username": "julie_panda"
}
}],
"minimum_should_match": "0"
}
},
"size": 20,
"from": 0,
"min_score": 0,
"sort": [{
"data.CreatedAt": {
"order": "desc",
"mode": "avg"
}
}]
}
no clue how to properly filter 2 queries well
maybe have a /feeds/feed endpoint on es instead dunno
http://elasticsearch.qiniudn.com/guide/en/elasticsearch/guide/current/multi-index-multi-type.html
some chinese qiniudn dude has a offline guide?
don't want to remove twtr or headlines. maybe a /feeds/ that's a little stripped down of details? duno
last approach is to just load the data from both and then sort through it in a more intelligent way
have a /feeds/feed with
{
es id feed url twtr url
}
https://search.newsai.org/tweets,headlines/tweet,headline/_search?size=10000