I would like to migrate an app I wrote using Compass to work with
ElasticSearch (the Java API).
I did some searches and experiments, but failed to find the answers,
so can you point me to relevant docs to examples?
My questions are as follow:
How do I index complex object (object that contain other objects )
using the Java API? There are few words on that in the REST API, but
when I tried to work something with the Java API I got exceptions...
How can I declare what object properties are searchable and what
are not? It it very easy in Compass with the annotations, didn't found
the relative config in the Java API..
Is the Java API allow bulk inserts (transactional)?
On Tuesday, January 11, 2011 at 5:18 PM, barak wrote:
(I hope this post didn't sent twice..)
Hello,
I would like to migrate an app I wrote using Compass to work with
Elasticsearch (the Java API).
I did some searches and experiments, but failed to find the answers,
so can you point me to relevant docs to examples?
My questions are as follow:
How do I index complex object (object that contain other objects )
using the Java API? There are few words on that in the REST API, but
when I tried to work something with the Java API I got exceptions...
Just take that object and convert it to json. Jackson is great at doing that.
How can I declare what object properties are searchable and what
are not? It it very easy in Compass with the annotations, didn't found
the relative config in the Java API..
There is the put mapping API. You can find it under client.admin().indices().preparePutMapping. You need to create a json based mapping definition.
Is the Java API allow bulk inserts (transactional)?
No transaction support on ES, just atomicity per document. There is a bulk API, but its not transactional. In upcoming 0.15 (master) there is support for versioning (optimistic concurrency control in DB lang).
I'm actually implementing an OSEM for Elasticsearch, It's in early
phase, but you will be able to use it like you used Compass before
(annotation based).
I created annotation almost like in compass (even copied some of them
as is) to define indexing configuration and you will be able to use
JAXB annotation for serialization specific configuration (used by
jackson).
I would like to migrate an app I wrote using Compass to work with
Elasticsearch (the Java API).
I did some searches and experiments, but failed to find the answers,
so can you point me to relevant docs to examples?
My questions are as follow:
How do I index complex object (object that contain other objects )
using the Java API? There are few words on that in the REST API, but
when I tried to work something with the Java API I got exceptions...
How can I declare what object properties are searchable and what
are not? It it very easy in Compass with the annotations, didn't found
the relative config in the Java API..
Is the Java API allow bulk inserts (transactional)?
I'm actually implementing an OSEM for Elasticsearch, It's in early
phase, but you will be able to use it like you used Compass before
(annotation based).
I created annotation almost like in compass (even copied some of them
as is) to define indexing configuration and you will be able to use
JAXB annotation for serialization specific configuration (used by
jackson).
I would like to migrate an app I wrote using Compass to work with
Elasticsearch (the Java API).
I did some searches and experiments, but failed to find the answers,
so can you point me to relevant docs to examples?
My questions are as follow:
How do I index complex object (object that contain other objects )
using the Java API? There are few words on that in the REST API, but
when I tried to work something with the Java API I got exceptions...
How can I declare what object properties are searchable and what
are not? It it very easy in Compass with the annotations, didn't found
the relative config in the Java API..
Is the Java API allow bulk inserts (transactional)?
Wow.. Alois I've just read your message, I've been peeking around the
compass and Elasticsearch thinking to implement the OSEM as well, we
might be able to work together on this if you want to.
I'm actually implementing anOSEMfor Elasticsearch, It's in early
phase, but you will be able to use it like you used Compass before
(annotation based).
I created annotation almost like in compass (even copied some of them
as is) to define indexing configuration and you will be able to use
JAXB annotation for serialization specific configuration (used by
jackson).
I would like to migrate an app I wrote using Compass to work with
Elasticsearch (the Java API).
I did some searches and experiments, but failed to find the answers,
so can you point me to relevant docs to examples?
My questions are as follow:
How do I index complex object (object that contain other objects )
using the Java API? There are few words on that in the REST API, but
when I tried to work something with the Java API I got exceptions...
How can I declare what object properties are searchable and what
are not? It it very easy in Compass with the annotations, didn't found
the relative config in the Java API..
Is the Java API allow bulk inserts (transactional)?
I already had a chat with kimchy to be sure to start in the good direction.
I'm doing it a job and just want to finish the basis before sharing, but unfortunately I wasn't able to work on it last week.
I hope to do it before end of the month, I'll keep in touch guys !!
I'm eager to start working on that. Looking forward to hearing from
you. Let me know if you want me to start checking on something.. I
guess we can discuss it via PM
I'm still on the reading code phase but ready to start hacking the
code. Hopefully we can do a pull request soon
I already had a chat with kimchy to be sure to start in the good direction.
I'm doing it a job and just want to finish the basis before sharing, but
unfortunately I wasn't able to work on it last week.
I hope to do it before end of the month, I'll keep in touch guys !!
I'm eager to start working on that. Looking forward to hearing from
you. Let me know if you want me to start checking on something.. I
guess we can discuss it via PM
I'm still on the reading code phase but ready to start hacking the
code. Hopefully we can do a pull request soon
I already had a chat with kimchy to be sure to start in the good direction.
I'm doing it a job and just want to finish the basis before sharing, but
unfortunately I wasn't able to work on it last week.
I hope to do it before end of the month, I'll keep in touch guys !!
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.