Skip to content

Commit

Permalink
Updated DjangoUtils field name
Browse files Browse the repository at this point in the history
  • Loading branch information
aparo committed Aug 8, 2013
1 parent 2f95e1d commit 581ab75
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 6 deletions.
21 changes: 18 additions & 3 deletions install_es.sh
@@ -1,5 +1,20 @@
wget -c --no-check-certificate https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.1.tar.gz
tar xfvz elasticsearch-0.90.1.tar.gz
mv elasticsearch-0.90.1 elasticsearch
wget -c --no-check-certificate https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.2.tar.gz
tar xfvz elasticsearch-0.90.2.tar.gz
mv elasticsearch-0.90.2 elasticsearch
elasticsearch/bin/plugin -install lukas-vlcek/bigdesk -install mobz/elasticsearch-head -install elasticsearch/elasticsearch-lang-python/1.2.0 -install elasticsearch/elasticsearch-lang-javascript/1.3.0 -install elasticsearch/elasticsearch-mapper-attachments/1.7.0 -install elasticsearch/elasticsearch-transport-thrift/1.5.0
elasticsearch/bin/plugin -install elasticsearch/elasticsearch-river-twitter/1.2.0
elasticsearch/bin/plugin -install richardwilly98/elasticsearch-river-mongodb/1.6.11
elasticsearch/bin/plugin -url http://bit.ly/145e9Ly -install river-jdbc
{
"type" : "mongodb",
"mongodb" : {
"servers" : [
{ "host" : "localhost", "port" : 27017 }
],
"db" : "esbook",
"collection" : "products"
},
"index" : {
"name" : "esbook"
}
}
4 changes: 2 additions & 2 deletions performance/performance.py
Expand Up @@ -6,8 +6,8 @@
from brainaetic.echidnasearch.es import ES
from datetime import datetime
import shelve
#conn = ES('127.0.0.1:9200')
conn = ES('192.168.2.50:9200')
conn = ES('127.0.0.1:9500')
#conn = ES('192.168.2.50:9200')
try:
conn.delete_index("test-index")
except:
Expand Down
2 changes: 1 addition & 1 deletion pyes/djangoutils.py
Expand Up @@ -143,7 +143,7 @@ def serialize(self):
self.pk = "TODO"
self.id = self.pk
result = {'_app': self._meta.app_label,
'_model': self._meta.module_name,
'_model': self._meta.model_name,
'_id': self.pk}
for field in self._meta.fields:
result[field.attname] = getattr(self, field.attname)
Expand Down

0 comments on commit 581ab75

Please sign in to comment.