Switch from Godep to go vendoring

This commit is contained in:
Ken-Håvard Lieng 2016-03-01 01:51:26 +01:00
parent 6b37713bc0
commit cd317761c5
1504 changed files with 263076 additions and 34441 deletions

View file

@ -0,0 +1,7 @@
{
"id": "a",
"name": "marty",
"age": 19,
"title": "mista",
"tags": ["gopher", "belieber"]
}

View file

@ -0,0 +1,7 @@
{
"id": "b",
"name": "steve has a long name",
"age": 27,
"birthday": "2001-09-09T01:46:40Z",
"title": "missess"
}

View file

@ -0,0 +1,7 @@
{
"id": "c",
"name": "bob walks home",
"age": 64,
"birthday": "2014-05-13T16:53:20Z",
"title": "masta"
}

View file

@ -0,0 +1,7 @@
{
"id": "d",
"name": "bobbleheaded wings top the phone",
"age": 72,
"birthday": "2014-05-13T16:53:20Z",
"title": "mizz"
}

View 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"
}

View 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"
}
}
]
}
}
]

View file

@ -0,0 +1,6 @@
{
"category": "inventory",
"type": "book",
"rating": 2,
"updated": "2014-11-25"
}

View file

@ -0,0 +1,6 @@
{
"category": "inventory",
"type": "book",
"rating": 7,
"updated": "2013-07-25"
}

View file

@ -0,0 +1,6 @@
{
"category": "inventory",
"type": "book",
"rating": 1,
"updated": "2014-03-03"
}

View file

@ -0,0 +1,6 @@
{
"category": "inventory",
"type": "book",
"rating": 9,
"updated": "2014-09-16"
}

View file

@ -0,0 +1,6 @@
{
"category": "inventory",
"type": "book",
"rating": 5,
"updated": "2014-11-15"
}

View file

@ -0,0 +1,6 @@
{
"category": "inventory",
"type": "movie",
"rating": 3,
"updated": "2017-06-05"
}

View file

@ -0,0 +1,6 @@
{
"category": "inventory",
"type": "movie",
"rating": 9,
"updated": "2011-10-03"
}

View file

@ -0,0 +1,6 @@
{
"category": "inventory",
"type": "movie",
"rating": 9,
"updated": "2019-08-26"
}

View file

@ -0,0 +1,6 @@
{
"category": "inventory",
"type": "movie",
"rating": 1,
"updated": "2014-12-14"
}

View file

@ -0,0 +1,6 @@
{
"category": "inventory",
"type": "game",
"rating": 9,
"updated": "2013-10-20"
}

View file

@ -0,0 +1 @@
{}

View 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"
}
]
}
}
}
}
]

View 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"
}

View file

@ -0,0 +1,4 @@
{
"description": "different cats",
"category": "Perl"
}

View file

@ -0,0 +1,4 @@
{
"description": "many cats",
"category": "Perl"
}

View 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"
}

View 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"
}

View 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": {}
}

View 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"
}
]
}
}
]

View file

@ -0,0 +1,3 @@
{
"body": "Twenty Thousand Leagues Under The Sea"
}

View 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"
}

View 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"
}
]
}
}
]