Skip to content
This repository has been archived by the owner on Aug 13, 2019. It is now read-only.

Commit

Permalink
III-1986: Add terms mapping for event & place
Browse files Browse the repository at this point in the history
  • Loading branch information
bertramakers committed Mar 31, 2017
1 parent 07893ca commit 5303372
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/Operations/json/mapping_event.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,21 @@
"labels_free_text": {
"type": "string"
},
"terms": {
"type": "object",
"properties": {
"id": {
"type": "string",
"analyzer": "lowercase_exact_match_analyzer",
"search_analyzer": "lowercase_exact_match_analyzer"
},
"label": {
"type": "string",
"analyzer": "lowercase_exact_match_analyzer",
"search_analyzer": "lowercase_exact_match_analyzer"
}
}
},
"terms_free_text": {
"type": "object",
"properties": {
Expand Down
15 changes: 15 additions & 0 deletions src/Operations/json/mapping_place.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,21 @@
"labels_free_text": {
"type": "string"
},
"terms": {
"type": "object",
"properties": {
"id": {
"type": "string",
"analyzer": "lowercase_exact_match_analyzer",
"search_analyzer": "lowercase_exact_match_analyzer"
},
"label": {
"type": "string",
"analyzer": "lowercase_exact_match_analyzer",
"search_analyzer": "lowercase_exact_match_analyzer"
}
}
},
"terms_free_text": {
"type": "object",
"properties": {
Expand Down
15 changes: 15 additions & 0 deletions tests/Operations/UpdateEventMappingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,21 @@ protected function getExpectedMappingBody()
"labels_free_text" => [
"type" => "string",
],
"terms" => [
"type" => "object",
"properties" => [
"id" => [
"type" => "string",
"analyzer" => "lowercase_exact_match_analyzer",
"search_analyzer" => "lowercase_exact_match_analyzer",
],
"label" => [
"type" => "string",
"analyzer" => "lowercase_exact_match_analyzer",
"search_analyzer" => "lowercase_exact_match_analyzer",
],
],
],
"terms_free_text" => [
"type" => "object",
"properties" => [
Expand Down
15 changes: 15 additions & 0 deletions tests/Operations/UpdatePlaceMappingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,21 @@ protected function getExpectedMappingBody()
"labels_free_text" => [
"type" => "string",
],
"terms" => [
"type" => "object",
"properties" => [
"id" => [
"type" => "string",
"analyzer" => "lowercase_exact_match_analyzer",
"search_analyzer" => "lowercase_exact_match_analyzer",
],
"label" => [
"type" => "string",
"analyzer" => "lowercase_exact_match_analyzer",
"search_analyzer" => "lowercase_exact_match_analyzer",
],
],
],
"terms_free_text" => [
"type" => "object",
"properties" => [
Expand Down

0 comments on commit 5303372

Please sign in to comment.