Skip to content

Commit

Permalink
Deleted language specific obj from mappings.json
Browse files Browse the repository at this point in the history
  • Loading branch information
Sander committed Dec 15, 2014
1 parent b4c5d42 commit b7e6ff3
Showing 1 changed file with 1 addition and 282 deletions.
283 changes: 1 addition & 282 deletions es/mappings.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,140 +47,34 @@
},
"city": {
"properties": {
"de": {
"type": "string",
"index": "no",
"copy_to": [
"collector.de"
]
},
"default": {
"type": "string",
"index": "no",
"copy_to": [
"collector.default"
]
},
"en": {
"type": "string",
"index": "no",
"copy_to": [
"collector.en"
]
},
"fr": {
"type": "string",
"index": "no",
"copy_to": [
"collector.fr"
]
},
"it": {
"type": "string",
"index": "no",
"copy_to": [
"collector.it"
]
},
"nl": {
"type": "string",
"index": "no",
"copy_to": [
"collector.nl"
]
}
}
},
"context": {
"properties": {
"de": {
"type": "string",
"index": "no",
"copy_to": [
"collector.default",
"collector.de"
]
},
"default": {
"type": "string",
"index": "no",
"copy_to": [
"collector.default"
]
},
"en": {
"type": "string",
"index": "no",
"copy_to": [
"collector.en"
]
},
"fr": {
"type": "string",
"index": "no",
"copy_to": [
"collector.fr"
]
},
"it": {
"type": "string",
"index": "no",
"copy_to": [
"collector.it"
]
},
"nl": {
"type": "string",
"index": "no",
"copy_to": [
"collector.nl"
]
}
}
},
"country": {
"properties": {
"de": {
"type": "string",
"index": "no",
"copy_to": [
"collector.de"
]
},
"default": {
"type": "string",
"index": "no",
"copy_to": [
"collector.default"
]
},
"en": {
"type": "string",
"index": "no",
"copy_to": [
"collector.en"
]
},
"fr": {
"type": "string",
"index": "no",
"copy_to": [
"collector.fr"
]
},
"it": {
"type": "string",
"index": "no",
"copy_to": [
"collector.it"
]
},
"nl": {
"type": "string",
"index": "no",
"copy_to": [
"collector.nl"
]
}
}
},
Expand Down Expand Up @@ -239,101 +133,11 @@
"collector.default"
]
},
"de": {
"type": "string",
"index": "no",
"fields": {
"ngrams": {
"type": "string",
"index_analyzer": "index_ngram"
},
"raw": {
"type": "string",
"index_analyzer": "index_raw"
}
},
"copy_to": [
"collector.de"
]
},
"default": {
"type": "string",
"index": "no",
"copy_to": [
"collector.default",
"name.en",
"name.de",
"name.fr",
"name.it",
"name.nl"
]
},
"en": {
"type": "string",
"index": "no",
"fields": {
"ngrams": {
"type": "string",
"index_analyzer": "index_ngram"
},
"raw": {
"type": "string",
"index_analyzer": "index_raw"
}
},
"copy_to": [
"collector.en"
]
},
"fr": {
"type": "string",
"index": "no",
"fields": {
"ngrams": {
"type": "string",
"index_analyzer": "index_ngram"
},
"raw": {
"type": "string",
"index_analyzer": "index_raw"
}
},
"copy_to": [
"collector.fr"
]
},
"it": {
"type": "string",
"index": "no",
"fields": {
"ngrams": {
"type": "string",
"index_analyzer": "index_ngram"
},
"raw": {
"type": "string",
"index_analyzer": "index_raw"
}
},
"copy_to": [
"collector.it"
]
},
"nl": {
"type": "string",
"index": "no",
"fields": {
"ngrams": {
"type": "string",
"index_analyzer": "index_ngram"
},
"raw": {
"type": "string",
"index_analyzer": "index_raw"
}
},
"copy_to": [
"collector.nl"
"collector.default"
]
}
}
Expand All @@ -347,41 +151,6 @@
"copy_to": [
"collector.default"
]
},
"de": {
"index": "no",
"type": "string",
"copy_to": [
"collector.de"
]
},
"en": {
"index": "no",
"type": "string",
"copy_to": [
"collector.en"
]
},
"fr": {
"index": "no",
"type": "string",
"copy_to": [
"collector.fr"
]
},
"it": {
"index": "no",
"type": "string",
"copy_to": [
"collector.it"
]
},
"nl": {
"index": "no",
"type": "string",
"copy_to": [
"collector.nl"
]
}
}
},
Expand All @@ -397,56 +166,6 @@
"analyzer": "index_raw"
}
}
},
"de": {
"type": "string",
"analyzer": "index_ngram",
"fields": {
"raw": {
"type": "string",
"analyzer": "index_raw"
}
}
},
"en": {

This comment has been minimized.

Copy link
@christophlingg

christophlingg Jul 3, 2015

Member

@Svantulden i am debugging currently a problem related to localized names, you can't search for them. see #171 I compared the mapping that is created after your changes, and it seems there is a notable change:

          "de": {
            "index": "no",
            "type": "string",
            "copy_to": [
              "collector.de"
            ],
            "fields": {
              "raw": {
                "index_analyzer": "index_raw",
                "type": "string"
              },
              "ngrams": {
                "index_analyzer": "index_ngram",
                "type": "string"
              }
            }
          },

I guess it is a bug that the collector.de field copies its content to collector.de again. in addition you introduced a new field ngram.

Can you remember why you changed that?

This comment has been minimized.

Copy link
@christophlingg

christophlingg Jul 3, 2015

Member

I am wonder why copy_to does not end up in an endless loop

This comment has been minimized.

Copy link
@christophlingg

christophlingg Jul 3, 2015

Member

apparently it is not a problem, I changed the name of the field for the query and it's working: de05a24

This comment has been minimized.

Copy link
@Svantulden

Svantulden Jul 3, 2015

Contributor

Hmm as far as I'm aware I did not add the ngrams field. It was already in there before I deleted the language specific collectors for the dynamic language mode (see this file before I changed it).

Though great that you found and fixed the bug regarding #171 !

"type": "string",
"analyzer": "index_ngram",
"fields": {
"raw": {
"type": "string",
"analyzer": "index_raw"
}
}
},
"fr": {
"type": "string",
"analyzer": "index_ngram",
"fields": {
"raw": {
"type": "string",
"analyzer": "index_raw"
}
}
},
"it": {
"type": "string",
"analyzer": "index_ngram",
"fields": {
"raw": {
"type": "string",
"analyzer": "index_raw"
}
}
},
"nl": {
"type": "string",
"analyzer": "index_ngram",
"fields": {
"raw": {
"type": "string",
"analyzer": "index_raw"
}
}
}
}
}
Expand Down

0 comments on commit b7e6ff3

Please sign in to comment.