yesterday I finally had time to get started with ES. The install
initially was quite easy, but what puzzles me is the config, currently
and it works nice, but I have some questions regarding security,
because after my tests I let it run for quite a while and during this
period OTHER nodes showed up?!
I didnt start anything beside 1 client node and also didn't create the
then shown indexes - so I assume there was any other one ding same as
me - so how can I limit this to only certain IP adresses?
Beside that, the java-api got me some headache:
first, why can't there be a limited client-only-api? The full one not
only makes the war bigger, but because of the superior work from the
lucene guys lucene 3 and 2 cant be sitting next to each other as they
are not compatible. Meaning I first had to fiddle quite a big a bit
for this to work.
second, the api itself is quite difficult to understand, as it often
wont work like expected, e.g:
Map<String, Object> m = new HashMap<String, Object>();
m.put("a", o); m.put("b", o); client.prepareIndex(index, type) .setSource(m).execute().actionGet();
BulkRequest bulk = Requests.bulkRequest();
spews out a "Index not found" error - now as I'm trying to index >1000
doc's at once in a loop it seems to me a bulk will b faster for this -
so how can one index using bulk?
PS: whats realy cool is the es + es-head as it nicely shows whats
where and, compared to SOLRs admin, it also works quite nice - even
I'm still not that comforatble with json... btw: how to get the json-
builder in java? the doc (http://www.elasticsearch.org/guide/reference/
.field("postDate", new Date())
.field("message", "trying out Elastic Search")
but not what kind jsonBuilder is and whre it's from.....