~bcsaller/charmworld/peer-support

« back to all changes in this revision

Viewing changes to charmworld/search.py

  • Committer: Tarmac
  • Author(s): Benji York
  • Date: 2013-09-04 18:08:14 UTC
  • mfrom: (371.1.8 bundle-feature-ui)
  • Revision ID: tarmac-20130904180814-nno6ui20ehhp54lw
[r=bac][bug=][author=benji] Add a user interface for setting the featured flag for bundles.

Show diffs side-by-side

added added

removed removed

Lines of Context:
135
135
        settings = get_ini()
136
136
        self._client.create_index(
137
137
            self.index_name, settings={
138
 
                "index" : {
139
 
                    "number_of_shards" : settings['es_shards'],
140
 
                    "number_of_replicas" : settings['es_replicas'],
 
138
                "index": {
 
139
                    "number_of_shards": settings['es_shards'],
 
140
                    "number_of_replicas": settings['es_replicas'],
141
141
                }
142
142
            })
143
143
        # The ES server may need some time to actually create the index