dispatch/vendor/github.com/blevesearch/bleve/test/tests/fosdem/searches.json
2016-03-01 01:51:26 +01:00

105 lines
1.5 KiB
JSON

[
{
"search": {
"from": 0,
"size": 10,
"query": {
"field": "category",
"match_phrase": "Perl"
}
},
"result": {
"total_hits": 4,
"hits": [
{
"id": "3507@FOSDEM15@fosdem.org"
},
{
"id": "3505@FOSDEM15@fosdem.org"
},
{
"id": "3496@FOSDEM15@fosdem.org"
}
,
{
"id": "3492@FOSDEM15@fosdem.org"
}
]
}
},
{
"search": {
"from": 0,
"size": 10,
"query": {
"match": "lisp"
}
},
"result": {
"total_hits": 2,
"hits": [
{
"id": "3505@FOSDEM15@fosdem.org"
},
{
"id": "3311@FOSDEM15@fosdem.org"
}
]
}
},
{
"search": {
"from": 0,
"size": 10,
"query": {"boost":1,"query":"+lisp +category:Perl"}
},
"result": {
"total_hits": 1,
"hits": [
{
"id": "3505@FOSDEM15@fosdem.org"
}
]
}
},
{
"search": {
"from": 0,
"size": 10,
"query": {"boost":1,"query":"+lisp +category:\"Perl\""}
},
"result": {
"total_hits": 1,
"hits": [
{
"id": "3505@FOSDEM15@fosdem.org"
}
]
}
},
{
"search": {
"from": 0,
"size": 10,
"query": {
"must": {
"conjuncts":[
{"boost":1,"query":"+cats"},
{"field":"category","match_phrase":"Perl"}
]
}
}
},
"result": {
"total_hits": 2,
"hits": [
{
"id": "3496@FOSDEM15@fosdem.org"
},
{
"id": "3492@FOSDEM15@fosdem.org"
}
]
}
}
]