Switch from Godep to go vendoring
This commit is contained in:
parent
6b37713bc0
commit
cd317761c5
1504 changed files with 263076 additions and 34441 deletions
7
vendor/github.com/blevesearch/bleve/test/tests/basic/data/a.json
generated
vendored
Normal file
7
vendor/github.com/blevesearch/bleve/test/tests/basic/data/a.json
generated
vendored
Normal file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"id": "a",
|
||||
"name": "marty",
|
||||
"age": 19,
|
||||
"title": "mista",
|
||||
"tags": ["gopher", "belieber"]
|
||||
}
|
7
vendor/github.com/blevesearch/bleve/test/tests/basic/data/b.json
generated
vendored
Normal file
7
vendor/github.com/blevesearch/bleve/test/tests/basic/data/b.json
generated
vendored
Normal file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"id": "b",
|
||||
"name": "steve has a long name",
|
||||
"age": 27,
|
||||
"birthday": "2001-09-09T01:46:40Z",
|
||||
"title": "missess"
|
||||
}
|
7
vendor/github.com/blevesearch/bleve/test/tests/basic/data/c.json
generated
vendored
Normal file
7
vendor/github.com/blevesearch/bleve/test/tests/basic/data/c.json
generated
vendored
Normal file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"id": "c",
|
||||
"name": "bob walks home",
|
||||
"age": 64,
|
||||
"birthday": "2014-05-13T16:53:20Z",
|
||||
"title": "masta"
|
||||
}
|
7
vendor/github.com/blevesearch/bleve/test/tests/basic/data/d.json
generated
vendored
Normal file
7
vendor/github.com/blevesearch/bleve/test/tests/basic/data/d.json
generated
vendored
Normal file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"id": "d",
|
||||
"name": "bobbleheaded wings top the phone",
|
||||
"age": 72,
|
||||
"birthday": "2014-05-13T16:53:20Z",
|
||||
"title": "mizz"
|
||||
}
|
27
vendor/github.com/blevesearch/bleve/test/tests/basic/mapping.json
generated
vendored
Normal file
27
vendor/github.com/blevesearch/bleve/test/tests/basic/mapping.json
generated
vendored
Normal file
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
"types": {
|
||||
"person": {
|
||||
"properties": {
|
||||
"name": {
|
||||
"fields": [
|
||||
{
|
||||
"include_term_vectors": true,
|
||||
"include_in_all": true,
|
||||
"index": true,
|
||||
"store": true,
|
||||
"analyzer": "en",
|
||||
"type": "text"
|
||||
}
|
||||
],
|
||||
"dynamic": true,
|
||||
"enabled": true
|
||||
},
|
||||
"id": {
|
||||
"dynamic": false,
|
||||
"enabled": false
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"default_type": "person"
|
||||
}
|
406
vendor/github.com/blevesearch/bleve/test/tests/basic/searches.json
generated
vendored
Normal file
406
vendor/github.com/blevesearch/bleve/test/tests/basic/searches.json
generated
vendored
Normal file
|
@ -0,0 +1,406 @@
|
|||
[
|
||||
{
|
||||
"search": {
|
||||
"from": 0,
|
||||
"size": 10,
|
||||
"query": {
|
||||
"field": "name",
|
||||
"term": "marti"
|
||||
}
|
||||
},
|
||||
"result": {
|
||||
"total_hits": 1,
|
||||
"hits": [
|
||||
{
|
||||
"id": "a"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"search": {
|
||||
"from": 0,
|
||||
"size": 10,
|
||||
"query": {
|
||||
"field": "name",
|
||||
"term": "noone"
|
||||
}
|
||||
},
|
||||
"result": {
|
||||
"total_hits": 0,
|
||||
"hits": []
|
||||
}
|
||||
},
|
||||
{
|
||||
"search": {
|
||||
"from": 0,
|
||||
"size": 10,
|
||||
"query": {
|
||||
"match_phrase": "long name"
|
||||
}
|
||||
},
|
||||
"result": {
|
||||
"total_hits": 1,
|
||||
"hits": [
|
||||
{
|
||||
"id": "b"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"search": {
|
||||
"from": 0,
|
||||
"size": 10,
|
||||
"query": {
|
||||
"field": "name",
|
||||
"term": "walking"
|
||||
}
|
||||
},
|
||||
"result": {
|
||||
"total_hits": 0,
|
||||
"hits": []
|
||||
}
|
||||
},
|
||||
{
|
||||
"search": {
|
||||
"from": 0,
|
||||
"size": 10,
|
||||
"query": {
|
||||
"fuzziness": 0,
|
||||
"prefix_length": 0,
|
||||
"field": "name",
|
||||
"match": "walking"
|
||||
}
|
||||
},
|
||||
"result": {
|
||||
"total_hits": 1,
|
||||
"hits": [
|
||||
{
|
||||
"id": "c"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"search": {
|
||||
"from": 0,
|
||||
"size": 10,
|
||||
"query": {
|
||||
"field": "name",
|
||||
"prefix": "bobble"
|
||||
}
|
||||
},
|
||||
"result": {
|
||||
"total_hits": 1,
|
||||
"hits": [
|
||||
{
|
||||
"id": "d"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"search": {
|
||||
"from": 0,
|
||||
"size": 10,
|
||||
"query": {
|
||||
"query": "+name:phone"
|
||||
}
|
||||
},
|
||||
"result": {
|
||||
"total_hits": 1,
|
||||
"hits": [
|
||||
{
|
||||
"id": "d"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"search": {
|
||||
"from": 0,
|
||||
"size": 10,
|
||||
"query": {
|
||||
"field": "age",
|
||||
"max": 30
|
||||
}
|
||||
},
|
||||
"result": {
|
||||
"total_hits": 2,
|
||||
"hits": [
|
||||
{
|
||||
"id": "b"
|
||||
},
|
||||
{
|
||||
"id": "a"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"search": {
|
||||
"from": 0,
|
||||
"size": 10,
|
||||
"query": {
|
||||
"field": "age",
|
||||
"max": 30,
|
||||
"min": 20
|
||||
}
|
||||
},
|
||||
"result": {
|
||||
"total_hits": 1,
|
||||
"hits": [
|
||||
{
|
||||
"id": "b"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"search": {
|
||||
"from": 0,
|
||||
"size": 10,
|
||||
"query": {
|
||||
"conjuncts": [
|
||||
{
|
||||
"boost": 1,
|
||||
"field": "age",
|
||||
"min": 20
|
||||
},
|
||||
{
|
||||
"boost": 1,
|
||||
"field": "age",
|
||||
"max": 30
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"result": {
|
||||
"total_hits": 1,
|
||||
"hits": [
|
||||
{
|
||||
"id": "b"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"search": {
|
||||
"from": 0,
|
||||
"size": 10,
|
||||
"query": {
|
||||
"field": "birthday",
|
||||
"start": "2010-01-01"
|
||||
}
|
||||
},
|
||||
"result": {
|
||||
"total_hits": 2,
|
||||
"hits": [
|
||||
{
|
||||
"id": "d"
|
||||
},
|
||||
{
|
||||
"id": "c"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"search": {
|
||||
"from": 0,
|
||||
"size": 10,
|
||||
"query": {
|
||||
"field": "birthday",
|
||||
"end": "2010-01-01"
|
||||
}
|
||||
},
|
||||
"result": {
|
||||
"total_hits": 1,
|
||||
"hits": [
|
||||
{
|
||||
"id": "b"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"search": {
|
||||
"from": 0,
|
||||
"size": 10,
|
||||
"query": {
|
||||
"field": "tags",
|
||||
"term": "gopher"
|
||||
}
|
||||
},
|
||||
"result": {
|
||||
"total_hits": 1,
|
||||
"hits": [
|
||||
{
|
||||
"id": "a"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"search": {
|
||||
"from": 0,
|
||||
"size": 10,
|
||||
"query": {
|
||||
"field": "tags",
|
||||
"term": "belieber"
|
||||
}
|
||||
},
|
||||
"result": {
|
||||
"total_hits": 1,
|
||||
"hits": [
|
||||
{
|
||||
"id": "a"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"search": {
|
||||
"from": 0,
|
||||
"size": 10,
|
||||
"query": {
|
||||
"field": "tags",
|
||||
"term": "notintagsarray"
|
||||
}
|
||||
},
|
||||
"result": {
|
||||
"total_hits": 0,
|
||||
"hits": []
|
||||
}
|
||||
},
|
||||
{
|
||||
"comment": "with size 0, total should be 1, but hits empty",
|
||||
"search": {
|
||||
"from": 0,
|
||||
"size": 0,
|
||||
"query": {
|
||||
"field": "name",
|
||||
"term": "marti"
|
||||
}
|
||||
},
|
||||
"result": {
|
||||
"total_hits": 1,
|
||||
"hits": []
|
||||
}
|
||||
},
|
||||
{
|
||||
"comment": "a search for doc a that includes tags field, verifies both values come back",
|
||||
"search": {
|
||||
"from": 0,
|
||||
"size": 10,
|
||||
"fields": ["tags"],
|
||||
"query": {
|
||||
"field": "name",
|
||||
"term": "marti"
|
||||
}
|
||||
},
|
||||
"result": {
|
||||
"total_hits": 1,
|
||||
"hits": [
|
||||
{
|
||||
"id": "a",
|
||||
"fields": {
|
||||
"tags": ["gopher", "belieber"]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"search": {
|
||||
"from": 0,
|
||||
"size": 10,
|
||||
"query": {
|
||||
"field": "name",
|
||||
"term": "msrti",
|
||||
"fuzziness": 1
|
||||
}
|
||||
},
|
||||
"result": {
|
||||
"total_hits": 1,
|
||||
"hits": [
|
||||
{
|
||||
"id": "a"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"comment": "highlight results",
|
||||
"search": {
|
||||
"from": 0,
|
||||
"size": 10,
|
||||
"query": {
|
||||
"field": "name",
|
||||
"match": "long"
|
||||
},
|
||||
"highlight": {
|
||||
"fields": ["name"]
|
||||
}
|
||||
},
|
||||
"result": {
|
||||
"total_hits": 1,
|
||||
"hits": [
|
||||
{
|
||||
"id": "b",
|
||||
"fragments": {
|
||||
"name": ["steve has a <span class=\"highlight\">long</span> name"]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"comment": "highlight results without specifying fields",
|
||||
"search": {
|
||||
"from": 0,
|
||||
"size": 10,
|
||||
"query": {
|
||||
"field": "name",
|
||||
"match": "long"
|
||||
},
|
||||
"highlight": {}
|
||||
},
|
||||
"result": {
|
||||
"total_hits": 1,
|
||||
"hits": [
|
||||
{
|
||||
"id": "b",
|
||||
"fragments": {
|
||||
"name": ["steve has a <span class=\"highlight\">long</span> name"]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"comment": "request fields",
|
||||
"search": {
|
||||
"from": 0,
|
||||
"size": 10,
|
||||
"fields": ["age","birthday"],
|
||||
"query": {
|
||||
"field": "name",
|
||||
"match": "long"
|
||||
}
|
||||
},
|
||||
"result": {
|
||||
"total_hits": 1,
|
||||
"hits": [
|
||||
{
|
||||
"id": "b",
|
||||
"fields": {
|
||||
"age": 27,
|
||||
"birthday": "2001-09-09T01:46:40Z"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
6
vendor/github.com/blevesearch/bleve/test/tests/facet/data/a.json
generated
vendored
Normal file
6
vendor/github.com/blevesearch/bleve/test/tests/facet/data/a.json
generated
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"category": "inventory",
|
||||
"type": "book",
|
||||
"rating": 2,
|
||||
"updated": "2014-11-25"
|
||||
}
|
6
vendor/github.com/blevesearch/bleve/test/tests/facet/data/b.json
generated
vendored
Normal file
6
vendor/github.com/blevesearch/bleve/test/tests/facet/data/b.json
generated
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"category": "inventory",
|
||||
"type": "book",
|
||||
"rating": 7,
|
||||
"updated": "2013-07-25"
|
||||
}
|
6
vendor/github.com/blevesearch/bleve/test/tests/facet/data/c.json
generated
vendored
Normal file
6
vendor/github.com/blevesearch/bleve/test/tests/facet/data/c.json
generated
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"category": "inventory",
|
||||
"type": "book",
|
||||
"rating": 1,
|
||||
"updated": "2014-03-03"
|
||||
}
|
6
vendor/github.com/blevesearch/bleve/test/tests/facet/data/d.json
generated
vendored
Normal file
6
vendor/github.com/blevesearch/bleve/test/tests/facet/data/d.json
generated
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"category": "inventory",
|
||||
"type": "book",
|
||||
"rating": 9,
|
||||
"updated": "2014-09-16"
|
||||
}
|
6
vendor/github.com/blevesearch/bleve/test/tests/facet/data/e.json
generated
vendored
Normal file
6
vendor/github.com/blevesearch/bleve/test/tests/facet/data/e.json
generated
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"category": "inventory",
|
||||
"type": "book",
|
||||
"rating": 5,
|
||||
"updated": "2014-11-15"
|
||||
}
|
6
vendor/github.com/blevesearch/bleve/test/tests/facet/data/f.json
generated
vendored
Normal file
6
vendor/github.com/blevesearch/bleve/test/tests/facet/data/f.json
generated
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"category": "inventory",
|
||||
"type": "movie",
|
||||
"rating": 3,
|
||||
"updated": "2017-06-05"
|
||||
}
|
6
vendor/github.com/blevesearch/bleve/test/tests/facet/data/g.json
generated
vendored
Normal file
6
vendor/github.com/blevesearch/bleve/test/tests/facet/data/g.json
generated
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"category": "inventory",
|
||||
"type": "movie",
|
||||
"rating": 9,
|
||||
"updated": "2011-10-03"
|
||||
}
|
6
vendor/github.com/blevesearch/bleve/test/tests/facet/data/h.json
generated
vendored
Normal file
6
vendor/github.com/blevesearch/bleve/test/tests/facet/data/h.json
generated
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"category": "inventory",
|
||||
"type": "movie",
|
||||
"rating": 9,
|
||||
"updated": "2019-08-26"
|
||||
}
|
6
vendor/github.com/blevesearch/bleve/test/tests/facet/data/i.json
generated
vendored
Normal file
6
vendor/github.com/blevesearch/bleve/test/tests/facet/data/i.json
generated
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"category": "inventory",
|
||||
"type": "movie",
|
||||
"rating": 1,
|
||||
"updated": "2014-12-14"
|
||||
}
|
6
vendor/github.com/blevesearch/bleve/test/tests/facet/data/j.json
generated
vendored
Normal file
6
vendor/github.com/blevesearch/bleve/test/tests/facet/data/j.json
generated
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"category": "inventory",
|
||||
"type": "game",
|
||||
"rating": 9,
|
||||
"updated": "2013-10-20"
|
||||
}
|
1
vendor/github.com/blevesearch/bleve/test/tests/facet/mapping.json
generated
vendored
Normal file
1
vendor/github.com/blevesearch/bleve/test/tests/facet/mapping.json
generated
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
{}
|
144
vendor/github.com/blevesearch/bleve/test/tests/facet/searches.json
generated
vendored
Normal file
144
vendor/github.com/blevesearch/bleve/test/tests/facet/searches.json
generated
vendored
Normal file
|
@ -0,0 +1,144 @@
|
|||
[
|
||||
{
|
||||
"search": {
|
||||
"from": 0,
|
||||
"size": 0,
|
||||
"query": {
|
||||
"field": "category",
|
||||
"term": "inventory"
|
||||
},
|
||||
"facets": {
|
||||
"types": {
|
||||
"size": 3,
|
||||
"field": "type"
|
||||
}
|
||||
}
|
||||
},
|
||||
"result": {
|
||||
"total_hits": 10,
|
||||
"hits": [],
|
||||
"facets": {
|
||||
"types": {
|
||||
"field": "type",
|
||||
"total": 10,
|
||||
"missing": 0,
|
||||
"other": 0,
|
||||
"terms": [
|
||||
{
|
||||
"term": "book",
|
||||
"count": 5
|
||||
},
|
||||
{
|
||||
"term": "movie",
|
||||
"count": 4
|
||||
},
|
||||
{
|
||||
"term": "game",
|
||||
"count": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"search": {
|
||||
"from": 0,
|
||||
"size": 0,
|
||||
"query": {
|
||||
"field": "category",
|
||||
"term": "inventory"
|
||||
},
|
||||
"facets": {
|
||||
"types": {
|
||||
"size": 3,
|
||||
"field": "rating",
|
||||
"numeric_ranges": [
|
||||
{
|
||||
"name": "low",
|
||||
"max": 5
|
||||
},
|
||||
{
|
||||
"name": "high",
|
||||
"min": 5
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"result": {
|
||||
"total_hits": 10,
|
||||
"hits": [],
|
||||
"facets": {
|
||||
"types": {
|
||||
"field": "rating",
|
||||
"total": 10,
|
||||
"missing": 0,
|
||||
"other": 0,
|
||||
"numeric_ranges": [
|
||||
{
|
||||
"name": "high",
|
||||
"count": 6,
|
||||
"min": 5
|
||||
},
|
||||
{
|
||||
"name": "low",
|
||||
"count": 4,
|
||||
"max": 5
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"search": {
|
||||
"from": 0,
|
||||
"size": 0,
|
||||
"query": {
|
||||
"field": "category",
|
||||
"term": "inventory"
|
||||
},
|
||||
"facets": {
|
||||
"types": {
|
||||
"size": 3,
|
||||
"field": "updated",
|
||||
"date_ranges": [
|
||||
{
|
||||
"name": "old",
|
||||
"end": "2012-01-01"
|
||||
},
|
||||
{
|
||||
"name": "new",
|
||||
"start": "2012-01-01"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"result": {
|
||||
"total_hits": 10,
|
||||
"hits": [],
|
||||
"facets": {
|
||||
"types": {
|
||||
"field": "updated",
|
||||
"total": 10,
|
||||
"missing": 0,
|
||||
"other": 0,
|
||||
"date_ranges": [
|
||||
{
|
||||
"name": "new",
|
||||
"count": 9,
|
||||
"start": "2012-01-01T00:00:00Z"
|
||||
},
|
||||
{
|
||||
"name": "old",
|
||||
"count": 1,
|
||||
"end": "2012-01-01T00:00:00Z"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
4
vendor/github.com/blevesearch/bleve/test/tests/fosdem/data/3311@FOSDEM15@fosdem.org.json
generated
vendored
Normal file
4
vendor/github.com/blevesearch/bleve/test/tests/fosdem/data/3311@FOSDEM15@fosdem.org.json
generated
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"description": "From Prolog to Erlang to Haskell to Lisp to TLC and then back to Prolog I have journeyed, and I'd like to share some of the beautiful",
|
||||
"category": "Word"
|
||||
}
|
4
vendor/github.com/blevesearch/bleve/test/tests/fosdem/data/3492@FOSDEM15@fosdem.org.json
generated
vendored
Normal file
4
vendor/github.com/blevesearch/bleve/test/tests/fosdem/data/3492@FOSDEM15@fosdem.org.json
generated
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"description": "different cats",
|
||||
"category": "Perl"
|
||||
}
|
4
vendor/github.com/blevesearch/bleve/test/tests/fosdem/data/3496@FOSDEM15@fosdem.org.json
generated
vendored
Normal file
4
vendor/github.com/blevesearch/bleve/test/tests/fosdem/data/3496@FOSDEM15@fosdem.org.json
generated
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"description": "many cats",
|
||||
"category": "Perl"
|
||||
}
|
4
vendor/github.com/blevesearch/bleve/test/tests/fosdem/data/3505@FOSDEM15@fosdem.org.json
generated
vendored
Normal file
4
vendor/github.com/blevesearch/bleve/test/tests/fosdem/data/3505@FOSDEM15@fosdem.org.json
generated
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"description": "From Prolog to Erlang to Haskell to Lisp to TLC and then back to Prolog I have journeyed, and I'd like to share some of the beautiful",
|
||||
"category": "Perl"
|
||||
}
|
4
vendor/github.com/blevesearch/bleve/test/tests/fosdem/data/3507@FOSDEM15@fosdem.org.json
generated
vendored
Normal file
4
vendor/github.com/blevesearch/bleve/test/tests/fosdem/data/3507@FOSDEM15@fosdem.org.json
generated
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"description": "From Prolog to Erlang to Haskell to Gel to TLC and then back to Prolog I have journeyed, and I'd like to share some of the beautiful",
|
||||
"category": "Perl"
|
||||
}
|
76
vendor/github.com/blevesearch/bleve/test/tests/fosdem/mapping.json
generated
vendored
Normal file
76
vendor/github.com/blevesearch/bleve/test/tests/fosdem/mapping.json
generated
vendored
Normal file
|
@ -0,0 +1,76 @@
|
|||
{
|
||||
"default_mapping": {
|
||||
"enabled": true,
|
||||
"dynamic": true,
|
||||
"properties": {
|
||||
"category": {
|
||||
"enabled": true,
|
||||
"dynamic": true,
|
||||
"fields": [
|
||||
{
|
||||
"type": "text",
|
||||
"analyzer": "keyword",
|
||||
"store": true,
|
||||
"index": true,
|
||||
"include_term_vectors": true,
|
||||
"include_in_all": true
|
||||
}
|
||||
],
|
||||
"default_analyzer": ""
|
||||
},
|
||||
"description": {
|
||||
"enabled": true,
|
||||
"dynamic": true,
|
||||
"fields": [
|
||||
{
|
||||
"type": "text",
|
||||
"analyzer": "en",
|
||||
"store": true,
|
||||
"index": true,
|
||||
"include_term_vectors": true,
|
||||
"include_in_all": true
|
||||
}
|
||||
],
|
||||
"default_analyzer": ""
|
||||
},
|
||||
"summary": {
|
||||
"enabled": true,
|
||||
"dynamic": true,
|
||||
"fields": [
|
||||
{
|
||||
"type": "text",
|
||||
"analyzer": "en",
|
||||
"store": true,
|
||||
"index": true,
|
||||
"include_term_vectors": true,
|
||||
"include_in_all": true
|
||||
}
|
||||
],
|
||||
"default_analyzer": ""
|
||||
},
|
||||
"url": {
|
||||
"enabled": true,
|
||||
"dynamic": true,
|
||||
"fields": [
|
||||
{
|
||||
"type": "text",
|
||||
"analyzer": "keyword",
|
||||
"store": true,
|
||||
"index": true,
|
||||
"include_term_vectors": true,
|
||||
"include_in_all": true
|
||||
}
|
||||
],
|
||||
"default_analyzer": ""
|
||||
}
|
||||
},
|
||||
"default_analyzer": ""
|
||||
},
|
||||
"type_field": "_type",
|
||||
"default_type": "_default",
|
||||
"default_analyzer": "en",
|
||||
"default_datetime_parser": "dateTimeOptional",
|
||||
"default_field": "_all",
|
||||
"byte_array_converter": "json",
|
||||
"analysis": {}
|
||||
}
|
105
vendor/github.com/blevesearch/bleve/test/tests/fosdem/searches.json
generated
vendored
Normal file
105
vendor/github.com/blevesearch/bleve/test/tests/fosdem/searches.json
generated
vendored
Normal file
|
@ -0,0 +1,105 @@
|
|||
[
|
||||
{
|
||||
"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"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
3
vendor/github.com/blevesearch/bleve/test/tests/phrase/data/a.json
generated
vendored
Normal file
3
vendor/github.com/blevesearch/bleve/test/tests/phrase/data/a.json
generated
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"body": "Twenty Thousand Leagues Under The Sea"
|
||||
}
|
23
vendor/github.com/blevesearch/bleve/test/tests/phrase/mapping.json
generated
vendored
Normal file
23
vendor/github.com/blevesearch/bleve/test/tests/phrase/mapping.json
generated
vendored
Normal file
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
"types": {
|
||||
"book": {
|
||||
"properties": {
|
||||
"body": {
|
||||
"fields": [
|
||||
{
|
||||
"include_term_vectors": true,
|
||||
"include_in_all": true,
|
||||
"index": true,
|
||||
"store": true,
|
||||
"analyzer": "en",
|
||||
"type": "text"
|
||||
}
|
||||
],
|
||||
"dynamic": true,
|
||||
"enabled": true
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"default_type": "book"
|
||||
}
|
326
vendor/github.com/blevesearch/bleve/test/tests/phrase/searches.json
generated
vendored
Normal file
326
vendor/github.com/blevesearch/bleve/test/tests/phrase/searches.json
generated
vendored
Normal file
|
@ -0,0 +1,326 @@
|
|||
[
|
||||
{
|
||||
"search": {
|
||||
"from": 0,
|
||||
"size": 10,
|
||||
"query": {
|
||||
"field": "body",
|
||||
"match_phrase": "Twenty"
|
||||
}
|
||||
},
|
||||
"result": {
|
||||
"total_hits": 1,
|
||||
"hits": [
|
||||
{
|
||||
"id": "a"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"search": {
|
||||
"from": 0,
|
||||
"size": 10,
|
||||
"query": {
|
||||
"field": "body",
|
||||
"match_phrase": "Twenty Thousand"
|
||||
}
|
||||
},
|
||||
"result": {
|
||||
"total_hits": 1,
|
||||
"hits": [
|
||||
{
|
||||
"id": "a"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"search": {
|
||||
"from": 0,
|
||||
"size": 10,
|
||||
"query": {
|
||||
"field": "body",
|
||||
"match_phrase": "Twenty Thousand Leagues"
|
||||
}
|
||||
},
|
||||
"result": {
|
||||
"total_hits": 1,
|
||||
"hits": [
|
||||
{
|
||||
"id": "a"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"search": {
|
||||
"from": 0,
|
||||
"size": 10,
|
||||
"query": {
|
||||
"field": "body",
|
||||
"match_phrase": "Twenty Thousand Leagues Under"
|
||||
}
|
||||
},
|
||||
"result": {
|
||||
"total_hits": 1,
|
||||
"hits": [
|
||||
{
|
||||
"id": "a"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"search": {
|
||||
"from": 0,
|
||||
"size": 10,
|
||||
"query": {
|
||||
"field": "body",
|
||||
"match_phrase": "Twenty Thousand Leagues Under the"
|
||||
}
|
||||
},
|
||||
"result": {
|
||||
"total_hits": 1,
|
||||
"hits": [
|
||||
{
|
||||
"id": "a"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"search": {
|
||||
"from": 0,
|
||||
"size": 10,
|
||||
"query": {
|
||||
"field": "body",
|
||||
"match_phrase": "Twenty Thousand Leagues Under the Sea"
|
||||
}
|
||||
},
|
||||
"result": {
|
||||
"total_hits": 1,
|
||||
"hits": [
|
||||
{
|
||||
"id": "a"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"search": {
|
||||
"from": 0,
|
||||
"size": 10,
|
||||
"query": {
|
||||
"field": "body",
|
||||
"match_phrase": "Thousand"
|
||||
}
|
||||
},
|
||||
"result": {
|
||||
"total_hits": 1,
|
||||
"hits": [
|
||||
{
|
||||
"id": "a"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"search": {
|
||||
"from": 0,
|
||||
"size": 10,
|
||||
"query": {
|
||||
"field": "body",
|
||||
"match_phrase": "Thousand Leagues"
|
||||
}
|
||||
},
|
||||
"result": {
|
||||
"total_hits": 1,
|
||||
"hits": [
|
||||
{
|
||||
"id": "a"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"search": {
|
||||
"from": 0,
|
||||
"size": 10,
|
||||
"query": {
|
||||
"field": "body",
|
||||
"match_phrase": "Thousand Leagues Under"
|
||||
}
|
||||
},
|
||||
"result": {
|
||||
"total_hits": 1,
|
||||
"hits": [
|
||||
{
|
||||
"id": "a"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"search": {
|
||||
"from": 0,
|
||||
"size": 10,
|
||||
"query": {
|
||||
"field": "body",
|
||||
"match_phrase": "Thousand Leagues Under the"
|
||||
}
|
||||
},
|
||||
"result": {
|
||||
"total_hits": 1,
|
||||
"hits": [
|
||||
{
|
||||
"id": "a"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"search": {
|
||||
"from": 0,
|
||||
"size": 10,
|
||||
"query": {
|
||||
"field": "body",
|
||||
"match_phrase": "Thousand Leagues Under the Sea"
|
||||
}
|
||||
},
|
||||
"result": {
|
||||
"total_hits": 1,
|
||||
"hits": [
|
||||
{
|
||||
"id": "a"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"search": {
|
||||
"from": 0,
|
||||
"size": 10,
|
||||
"query": {
|
||||
"field": "body",
|
||||
"match_phrase": "Leagues"
|
||||
}
|
||||
},
|
||||
"result": {
|
||||
"total_hits": 1,
|
||||
"hits": [
|
||||
{
|
||||
"id": "a"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"search": {
|
||||
"from": 0,
|
||||
"size": 10,
|
||||
"query": {
|
||||
"field": "body",
|
||||
"match_phrase": "Leagues Under"
|
||||
}
|
||||
},
|
||||
"result": {
|
||||
"total_hits": 1,
|
||||
"hits": [
|
||||
{
|
||||
"id": "a"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"search": {
|
||||
"from": 0,
|
||||
"size": 10,
|
||||
"query": {
|
||||
"field": "body",
|
||||
"match_phrase": "Leagues Under the"
|
||||
}
|
||||
},
|
||||
"result": {
|
||||
"total_hits": 1,
|
||||
"hits": [
|
||||
{
|
||||
"id": "a"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"search": {
|
||||
"from": 0,
|
||||
"size": 10,
|
||||
"query": {
|
||||
"field": "body",
|
||||
"match_phrase": "Leagues Under the Sea"
|
||||
}
|
||||
},
|
||||
"result": {
|
||||
"total_hits": 1,
|
||||
"hits": [
|
||||
{
|
||||
"id": "a"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"search": {
|
||||
"from": 0,
|
||||
"size": 10,
|
||||
"query": {
|
||||
"field": "body",
|
||||
"match_phrase": "Under the Sea"
|
||||
}
|
||||
},
|
||||
"result": {
|
||||
"total_hits": 1,
|
||||
"hits": [
|
||||
{
|
||||
"id": "a"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"search": {
|
||||
"from": 0,
|
||||
"size": 10,
|
||||
"query": {
|
||||
"field": "body",
|
||||
"match_phrase": "the Sea"
|
||||
}
|
||||
},
|
||||
"result": {
|
||||
"total_hits": 1,
|
||||
"hits": [
|
||||
{
|
||||
"id": "a"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"search": {
|
||||
"from": 0,
|
||||
"size": 10,
|
||||
"query": {
|
||||
"field": "body",
|
||||
"match_phrase": "Sea"
|
||||
}
|
||||
},
|
||||
"result": {
|
||||
"total_hits": 1,
|
||||
"hits": [
|
||||
{
|
||||
"id": "a"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue