~jcsackett/charmworld/bac-tag-constraints

« back to all changes in this revision

Viewing changes to charmworld/search.py

  • Committer: Tarmac
  • Author(s): Reed O'Brien
  • Date: 2014-05-20 14:46:39 UTC
  • mfrom: (511.1.6 es-migration)
  • Revision ID: tarmac-20140520144639-2wypg2q2m2qwvjch
This makes the ngram work migrate cleanly. Fixes: https://bugs.launchpad.net/bugs/1314239.

Approved by Juju Gui Bot, Brad Crittenden.

Show diffs side-by-side

added added

removed removed

Lines of Context:
180
180
                                ]
181
181
                            }
182
182
                        }
183
 
                    },
184
 
                    "mappings": {
185
 
                        "charm": {
186
 
                            "properties": {
187
 
                                "name": {
188
 
                                    "type": "multi_field",
189
 
                                    "fields": {
190
 
                                        "ngrams": {
191
 
                                            "type": "string",
192
 
                                            "analyzer": "n3_20grams"
193
 
                                        },
194
 
                                        "name": {
195
 
                                            "type": "string",
196
 
                                            "index": "not_analyzed"
197
 
                                        }
198
 
                                    }
199
 
                                }
200
 
                            }
201
 
 
202
 
                        },
203
 
                        "bundle": {
204
 
                            "properties": {
205
 
                                "name": {
206
 
                                    "type": "multi_field",
207
 
                                    "fields": {
208
 
                                        "ngrams": {
209
 
                                            "type": "string",
210
 
                                            "analyzer": "n3_20grams"
211
 
                                        },
212
 
                                        "name": {
213
 
                                            "type": "string",
214
 
                                            "index": "not_analyzed"
215
 
                                        }
216
 
                                    }
217
 
                                }
218
 
                            }
219
 
                        }
220
183
                    }
221
184
                }
222
185
            })