63 lines
1.3 KiB
Plaintext
63 lines
1.3 KiB
Plaintext
POST http://localhost:9200/itunessongs/album/_search
|
|
content-type: application/json
|
|
User-Agent: vscode-restclient
|
|
|
|
{
|
|
"query": {
|
|
"match" : {
|
|
"Album" : {
|
|
"query": "Crystal Castles",
|
|
"operator" : "and"
|
|
}
|
|
}
|
|
},
|
|
"size": 20
|
|
}
|
|
|
|
POST http://localhost:9200/itunessongs/song/_search
|
|
content-type: application/json
|
|
User-Agent: vscode-restclient
|
|
|
|
{
|
|
"query": {
|
|
"match_phrase" : {
|
|
"Album" : "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" }},
|
|
{"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" }}
|
|
]
|
|
}
|
|
},
|
|
"size": 20
|
|
} |