Skip to content

Instantly share code, notes, and snippets.

@GohioAC
Created September 20, 2018 04:08
Show Gist options
  • Save GohioAC/987a25faafa1c61a05bb7eb492bef2fe to your computer and use it in GitHub Desktop.
Save GohioAC/987a25faafa1c61a05bb7eb492bef2fe to your computer and use it in GitHub Desktop.
GET /semantic_scholar/_search
{
"query": {
"bool": {
"filter": {
"bool": {
"should": [
{ "match_phrase": { "doc.entities": "Machine Learning" }},
{ "match_phrase": { "doc.entities": "Artificial Intelligence" }},
{ "match_phrase": { "doc.entities": "Natural Language Processing" }},
{ "match_phrase": { "doc.entities": "Deep Learning" }},
{ "match_phrase": { "doc.entities": "Computer Vision" }},
{ "match_phrase": { "doc.entities": "Speech Recognition" }},
{ "match_phrase": { "doc.entities": "Knowledge Graph" }},
{ "match_phrase": { "doc.entities": "Neural Network" }},
{ "match_phrase": { "doc.entities": "Information Retrival" }}
],
"minimum_should_match" : 1,
"must" : {
"match" : { "doc.pdfUrls": "arxiv" }
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment