Skip to content

Commit

Permalink
New version, updated the port on the vagrantfile, and fixed the bulk …
Browse files Browse the repository at this point in the history
…index (I hope)
  • Loading branch information
Chris Sinchok committed Jun 19, 2014
1 parent fe1ed22 commit 48bb698
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 35 deletions.
2 changes: 1 addition & 1 deletion Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "precise32"

config.vm.network :private_network, ip: "192.168.33.101"
config.vm.network "forwarded_port", guest: 9200, host: 9220
config.vm.network "forwarded_port", guest: 9200, host: 9200

config.vm.provider :virtualbox do |v, override|
override.vm.box_url = "http://files.vagrantup.com/precise32.box"
Expand Down
2 changes: 1 addition & 1 deletion elastimorphic/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from .base import Indexable, PolymorphicIndexable, SearchManager # noqa

__version__ = "0.1.0"
__version__ = "0.1.1"
__all__ = [PolymorphicIndexable, SearchManager]
32 changes: 0 additions & 32 deletions elastimorphic/management/commands/backup_settings.py

This file was deleted.

2 changes: 1 addition & 1 deletion elastimorphic/management/commands/bulk_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def handle(self, *args, **options):
good_items = [item for item in response["items"] if item["index"].get("ok", False)]
if len(good_items) != len(payload) // 2:
self.stdout.write("Bulk indexing error! Item count mismatch.")
bad_items = [item for item in response["items"] if not item["index"].get("ok", False)]
bad_items = [item for item in response["items"] if item["index"].get["status"] < 201]
self.stdout.write("These were rejected: %s" % str(bad_items))
return "Bulk indexing failed."
num_processed += (len(payload) / 2)
Expand Down

0 comments on commit 48bb698

Please sign in to comment.