I've been using ElasticSearch 2.1 and the Java API for a few weeks now and it went fine so far. I'm now trying to use the mapper attachment plugin to index the content of some files. I browsed the ES repository and looked at the test classes. I found one that suits my needs:
elasticsearch/core/src/test/java/org/elasticsearch/index/mapper/simple/SimpleMapperTests.java (branch 2.1) but I haven't been able to make it work with a TransportClient.
My problem stands with this unique line that every test case starts with:
IndexService indexService = createIndex("test");
The createIndex() method refers to this class
elasticsearch/core/src/test/java/org/elasticsearch/test/ESSingleNodeTestCase.java which uses a Node client.
I may not exactly understand what the IndexService class stands for and I apologize if my question is oblivious but here it is.
Can a TransportClient have the same kind of access to the IndicesService as the Node Client? If so, could you tell me how? If not, is there any class other than IndicesService/IndexService I could use to get a proper
DocumentMapperParser in case of a TransportNode? Any enlightenment would be appreciated.