Album + slow service + other

This commit is contained in:
2017-05-04 18:41:55 +02:00
parent fe9638bcb5
commit 302afb6675
9 changed files with 175 additions and 46 deletions

View File

@@ -1,4 +1,4 @@
POST http://localhost:9200/itunessongs/_search
POST http://localhost:9200/itunessongs/album/_search
content-type: application/json
User-Agent: vscode-restclient
@@ -6,7 +6,7 @@ User-Agent: vscode-restclient
"query": {
"match" : {
"Album" : {
"query": "Our Love To Admire",
"query": "Crystal Castles",
"operator" : "and"
}
}
@@ -14,20 +14,20 @@ User-Agent: vscode-restclient
"size": 20
}
POST http://localhost:9200/itunessongs/_search
POST http://localhost:9200/itunessongs/song/_search
content-type: application/json
User-Agent: vscode-restclient
{
"query": {
"match_phrase" : {
"Album" : "Our Love"
"Album" : "Crystal Castles"
}
},
"size": 20
}
POST http://localhost:9200/itunessongs/_search
POST http://localhost:9200/itunessongs/song/_search
content-type: application/json
User-Agent: vscode-restclient
@@ -35,8 +35,27 @@ User-Agent: vscode-restclient
"query": {
"bool": {
"must": [
{"match_phrase" : { "Album" : "Our Love" }},
{"match_phrase" : { "Artist" : "Caribou." }}
{"match_phrase" : { "Album" : "Crystal Castles" }},
{"match_phrase" : { "Artist" : "Crystal Castles" }}
]
}
},
"size": 20
}
POST http://localhost:9200/itunessongs/song/_search
content-type: application/json
User-Agent: vscode-restclient
{
"query": {
"bool": {
"must": {
"match_phrase" : { "Album" : "Crystal Castles" }
},
"should" : [
{"match_phrase" : { "Artist" : "Crystal Castles" }},
{"match_phrase" : { "Album Artist" : "Crystal Castles" }}
]
}
},