Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save andrewsmedina/536c54b327b4df4d61a68627d590bbc9 to your computer and use it in GitHub Desktop.
Save andrewsmedina/536c54b327b4df4d61a68627d590bbc9 to your computer and use it in GitHub Desktop.
from elasticsearch import Elasticsearch
query = {
"query": {
"bool": {
"should":
[
{
"term": {
"id-topico": ""
}
},
{
"term": {
"id-topico": "64615390"
}
}
]
}
}
}
client = Elasticsearch("http://35.188.136.37:9200")
result = client.search(
index="topicoindex3",
body=query,
size=1000,
_source_include=["id-topico", "titulo"],
)
import pdb; pdb.set_trace()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment