Re: Not able to fulltext index Microsoft Office documents - PDF works fine

2014-08-29 Thread feenz
Hi David, 
I am currently using elasticsearch-1.3.1. Will the mapper-attchements-2.3.2
be compatible with my version of ES or will have have to update?

Thanks,

- Kyle



--
View this message in context: 
http://elasticsearch-users.115913.n3.nabble.com/Not-able-to-fulltext-index-Microsoft-Office-documents-PDF-works-fine-tp4062325p4062665.html
Sent from the ElasticSearch Users mailing list archive at Nabble.com.

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elasticsearch+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/1409321264321-4062665.post%40n3.nabble.com.
For more options, visit https://groups.google.com/d/optout.


Re: Embedded ElasticSearch On Java

2014-08-13 Thread feenz
I must be doing something wrong I continue to get the same error I
removed the cluster.name in the settings and still get the same error.

Elasticsearch is running on the same machine that I am trying to connect
with the client. Is TransportClient the correct way to connect? Or should I
be using Node?

I tried this

Node node =
nodeBuilder().client(true).loadConfigSettings(false).settings(settings).node();

This returns the error NoSuchMethodError: java.lang.NoSuchMethodError:
org.apache.log4j.Logger.isTraceEnabled()Z at
org.elasticsearch.common.logging.log4j.Log4jESLogger.isTraceEnabled()

I have included the log4j-1.4.0.jar that came packaged with the version of
elasticsearch-1.3.1 


On Tue, Aug 12, 2014 at 12:13 PM, Vivek Sachdeva [via ElasticSearch Users] <
ml-node+s115913n4061741...@n3.nabble.com> wrote:

> The default cluster name is "elasticsearch". Changing it in your code
> works
>
>
> On Tue, Aug 12, 2014 at 9:33 PM, Vivek Sachdeva <[hidden email]
> > wrote:
>
>> Your code works if you dont add cluster name to it. Tried with Java
>> this time.. :)
>>
>>
>> On Tue, Aug 12, 2014 at 7:47 PM, Kfeenz <[hidden email]
>> > wrote:
>>
>>> @Jorg,
>>>
>>> Thanks for the advice, I will make sure that I do so during actual
>>> implementation, but this is purely for testing the connection.. Also, I see
>>> a client.close() and a client.threadPool().shutdown(), but I do not see a
>>> client.threadPool().close(). I am using ES v1.3.1.
>>>
>>> @ Vivek,
>>>
>>> I am not sure how you were able to use 'localhost' vise "localhost".
>>> Java complains about an invalid character constant because 'localhost' is
>>> not a character but a String...
>>>
>>> My current code is as follows... with still no luck...
>>>
>>> Settings settings = ImmutableSettings.settingsBuilder().put("
>>> cluster.name", "mycluster").build();
>>>
>>> Client client = new TransportClient(settings).addTransportAddress(new
>>> InetSocketTransportAddress("localhost", 9300));
>>>
>>> ClusterStatsRequestBuilder builder =
>>> client.admin().cluster().prepareClusterStats();
>>>
>>> ClusterStatsResponse response = builder.execute().actionGet(); // fails
>>> on execute... NoNodeAvailableException
>>>
>>> assertEquals("mycluster", response.getClusterName()); // never gets to
>>> this point
>>>
>>> NoNodeAvailableException: None of the configured nodes are available []
>>>
>>> If I add a setting to the settings object
>>>
>>> .put("client.transport.sniff", true);
>>>
>>> I get a different error - [org.elasticsearch.client.transport] [Argus]
>>> failed to get local cluster state info for [#transport#-1]...
>>>
>>> I can query the cluster using 
>>> *http://localhost:9200/_cluster/health?pretty=true
>>> * which returns
>>>
>>> {
>>>   "cluster_name" : "mycluster",
>>>   "status" : "green",
>>>   "timed_out" : false,
>>>   "number_of_nodes" : 1,
>>>   "number_of_data_nodes" : 1,
>>>   "active_primary_shards" : 0,
>>>   "active_shards" : 0,
>>>   "relocating_shards" : 0,
>>>   "initializing_shards" : 0,
>>>   "unassigned_shards" : 0
>>> }
>>>
>>> I am on Windows 7 64-bit.
>>> I am using Java 1.7_u55.
>>> I am using ES version 1.3.1.
>>> I have included in my pom.xml:
>>>   - elasticsearch-1.3.1.jar
>>>   - lucene-core-4.9.0.jar
>>>
>>> Any other suggestions are greatly appreciated.
>>>
>>>
>>>
>>> On Tuesday, August 12, 2014 5:45:16 AM UTC-4, Vivek Sachdeva wrote:

 Replace

 .setTransportAddress(new InetSocketTransportAddress("localhost",
 9300));

 with

 .addTransportAddress(new InetSocketTransportAddress('localhost',
 9300)).

 And I guess if you dont give cluster name, it automatically joins the
 default cluster.

 I tried the code that you provided and changed above mentioned code. It
 works on my end. Can you try it?

 On Monday, August 11, 2014 11:34:43 PM UTC+5:30, Kfeenz wrote:
>
> So I am very new to elasticsearch... so I apologize in advance..
>
> I started a local instance of elasticsearch and I am trying to connect
> to it through the Java API.
>
> I was under the impression that the transport client was for remote
> clients?
>
> I tried:
>
> @Test
> public void testIndexResponse() {
>
>   Client client = new TransportClient().setTransportAddress(new
> InetSocketTransportAddress("localhost", 9300));
>
>   String json = "{" +
> "\"user\":\"kimchy\"," +
>
>
>
> "\"postDate\":\"2013-01-30\"," +
> "\"message\":\"trying out Elasticsearch\"" +
>
>
>
> "}";
>
>   IndexResponse response = client.prepareIndex("twitter", "tweet")
>
>
>
> .setSource(json)
> .execute()
> .actionGet();
>
>
>   client.close();
>
>   Sy