I develop then I run the tests to ensure nothing is broken (just the culprit for brevity here):
robrien@erwin:~/py/charmworld/ngrams$ ./bin/test charmworld/tests/test_search.py:TestReindex.test_reindexed_no_client_charms
.
----------------------------------------------------------------------
Ran 1 test in 0.480s
Thanks for that comment. It is helpful for a bzr newb.
Here is the reason I was asked to comment it out.
I have 113 ingested charms:
robrien@ erwin:~ /py/charmworld/ ngrams$ curl localhost: 9200/charms/ charm/_ count?q= * && echo :113,"_ shards" :{"total" :1,"successful" :1,"failed" :0}}
{"count"
I develop then I run the tests to ensure nothing is broken (just the culprit for brevity here):
robrien@ erwin:~ /py/charmworld/ ngrams$ ./bin/test charmworld/ tests/test_ search. py:TestReindex. test_reindexed_ no_client_ charms ------- ------- ------- ------- ------- ------- ------- ------- -------
.
-------
Ran 1 test in 0.480s
OK
Now I have no index or ingested charms:
robrien@ erwin:~ /py/charmworld/ ngrams$ curl localhost: 9200/charms/ charm/_ count?q= * && echo :"IndexMissingE xception[ [charms] missing] ","status" :404}
{"error"
I run es-update:
robrien@ erwin:~ /py/charmworld/ ngrams$ ./bin/es-update
I now have an index but no charms:
robrien@ erwin:~ /py/charmworld/ ngrams$ curl localhost: 9200/charms/ charm/_ count?q= * && echo :0,"_shards" :{"total" :1,"successful" :1,"failed" :0}}
{"count"
Now I need to re-ingest to get charms again which takes a non-trivial amount of time.