Java API : Transport client not complaining when no cluster is on

2013-12-30 Thread Yann Barraud
Hi, Can anyone tell me why my Elasticsearch Transport Client does not complain when not finding a cluster ? Code here : https://github.com/YannBrrd/json-import/blob/master/src/main/java/org/yaba/curbside/ESInjector.java#L92 Thanks. Regards, Yann -- You received this message because you are

Re: Not part of cluster

2013-12-30 Thread Yann Barraud
Hi, Do we have an option to be notified if we are not connected to a cluster ? Thanks. Le vendredi 14 octobre 2011 14:09:04 UTC+2, kimchy a écrit : When happens is that you use the TransportClient, and connect to a node that does not have the same cluster name as the TransportClient. You

Re: Java API : Transport client not complaining when no cluster is on

2013-12-30 Thread Yann Barraud
Yes. In the end Shay told me to use conectedNodes from the client API. Code avalable at github https://github.com/YannBrrd/json-import/blob/master/src/main/java/org/yaba/curbside/ESInjector.java#L95 Cordialement, Yann Barraud 2013/12/30 joergpra...@gmail.com joergpra...@gmail.com Is it the

Re: Not part of cluster

2013-12-30 Thread Yann Barraud
Hi, I also opened an issue after talking to Shay https://github.com/elasticsearch/elasticsearch/issues/4569 Cordialement, Yann Barraud 2013/12/30 joergpra...@gmail.com joergpra...@gmail.com After client.addTransportAddress(...), you can check if client.connectedNodes() is not null and is

Non Alphanumeric character searching

2013-12-30 Thread deep saxena
#%##%#%#$%#%#$%#$ my data contain this string. I am firing this query, but not able to search the data. any clues why it is not searching? if I put abc in between #%##%#%#abc$%#%#$%#$ and fire the same query which this query string it find out the result for me. { from : 0, size : 3,

query_string queries don't handle multiple types

2013-12-30 Thread Yarin Miran
Hello everyone, I'm trying to implement a search for one of my indices using the following query: { query : { query_string : { query : some text, fields : [collected.*] } } } The documents in the index have a field named collected which is dynamic and changes between documents. When I try to

Re: Finding duplicate documents or its count based on some field names

2013-12-30 Thread Ivan Brusic
More Like This could work, especially if using non-analyzed fields: http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-more-like-this.html -- Ivan On Sat, Dec 28, 2013 at 5:14 AM, joergpra...@gmail.com joergpra...@gmail.com wrote: If you can use 1.0.0.Beta2,

default-mapping.json on Centos ?

2013-12-30 Thread Jay Wilson
I have a default-mapping.json file working fine in Ubuntu by placing it in /usr/local/elasticsearch/config/. I also have Centos install of ES, but I can't figure out where to put the default-mapping.json file. I have tried /usr/share/elasticsearch/config/ and /etc/elasticsearch/config/.

Re: Problem transitioning from S3 to EBS

2013-12-30 Thread Steinar Bang
Steinar Bang s...@dod.no: [snip! Attempted transitioning from S3 to local gateway on EBS] Unfortunately ES came up again, but without any indices. Should this have worked? Or will it fail, because if things I don't understand about how gateways work? I googled a bit, and came up with the

Re: how does facets work

2013-12-30 Thread Ivan Brusic
After reading your scenario again, I have modified slightly my suggestion. You would still need to use a post filter since the facets need to work on set of documents that is greater than the set returned. You can apply the same post filter as a facet filter on the facet you want to reduce. Here

Re: Problem transitioning from S3 to EBS

2013-12-30 Thread Steinar Bang
Is this a way that could be used, perhaps? http://tech.superhappykittymeow.com/?p=296 Ie. 1. Put the S3 stuff back into /etc/elasticsearch/elasticsearch.yml 2. Restart ES, and hopefully it will find the stuff it needs in S3 and come up with the two indexes 3. Use the curl/sed commands in

Re: how does facets work

2013-12-30 Thread Volker
Dear Ivan thank you very much for your fast and helpful response. I will create some demo data and play with your snippet. I really appreciate your help! btw... I think my scenario is a very standard scenario for working with facets -- e.g. every online shop is working in this fashion with

Re: Reports and Notifications.

2013-12-30 Thread chad patterson
Is there a way to install Logsene on premises, looking for something opensource (no budget at this time)? On Thu, Dec 26, 2013 at 11:42 AM, Otis Gospodnetic otis.gospodne...@gmail.com wrote: Aha, alerts. We have that in SPM (does performance monitoring, so alerts on your performance

Re: Problem transitioning from S3 to EBS

2013-12-30 Thread Steinar Bang
Steinar Bang s...@dod.no: Is this a way that could be used, perhaps? http://tech.superhappykittymeow.com/?p=296 I tried, but no luck, I'm afraid. Ie. 1. Put the S3 stuff back into /etc/elasticsearch/elasticsearch.yml 2. Restart ES, and hopefully it will find the stuff it needs in S3

Re: Problem transitioning from S3 to EBS

2013-12-30 Thread Steinar Bang
One thing I could try, is snapshot to volatile storage, scrap the index and restore from volatile storage. http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/modules-snapshots.html Is that viable, with a 25.5GB index on an EC2 instance? -- You received this message because

Re: Problem transitioning from S3 to EBS

2013-12-30 Thread Steinar Bang
Steinar Bang s...@dod.no: Steinar Bang s...@dod.no: One thing I could try, is snapshot to volatile storage, scrap the index and restore from volatile storage. http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/modules-snapshots.html Trying to set up the backup

Re: message: [WARN ][cluster.service ] [node1] failed to reconnect to node [node1][I4Wltlc9RSm0jJhumBRtpQ][inet[/10.10.10.1:9300]]

2013-12-30 Thread Ivan Brusic
Is/was there another elasticsearch node no the network? If you will only have 1 node, you can disable mutlicast discovery. -- Ivan On Mon, Dec 30, 2013 at 3:33 AM, HansPeterSloot hanspeter.sl...@gmail.comwrote: Hi, I have a 1 node elasticsearch cluster which seems to run fine. But I see

upgrade elasticsearch using the service wrapper?

2013-12-30 Thread allen chan
Hi, Does anyone know how to upgrade elasticsearch by using the service wrapper? https://github.com/elasticsearch/elasticsearch-servicewrapper I tried googling around and did not find anything documented. Thanks, Allen Chan -- You received this message because you are subscribed to the Google

Re: Problem transitioning from S3 to EBS

2013-12-30 Thread Steinar Bang
Steinar Bang s...@dod.no: Nope, looks like I would need 1.0.0-beta2, rather than the 0.9.7 I have currently installed: http://www.elasticsearch.org/blog/1-0-0-beta2-released/ I'm now up and running on EBS storage on ES 1.0.0-beta2, after having first created a snapshot with volatile

Re: Possible to make ES Node Name same as Hostname?

2013-12-30 Thread joergpra...@gmail.com
You can just download the tar.gz, unpack it, and start ES with ./bin/elasticsearch -Des.node.name=... or set ES_JAVA_OPTS to - Des.node.name=..., in any startup script you prefer. There is no need to build from source. ES behaves just like any Java app I know of that uses Java system properties,

Re: upgrade elasticsearch using the service wrapper?

2013-12-30 Thread joergpra...@gmail.com
That is pretty straightforward, copy the service wrapper into the bin folder of the new ES version, adjust paths and symlinks, and there you are. Stopping and starting the cluster and migrating the index data is no difference to not using the service wrapper. Jörg -- You received this message

Re: upgrade elasticsearch using the service wrapper?

2013-12-30 Thread allen chan
i never did an upgrade before. Are there instructions for migrating the index data? On Mon, Dec 30, 2013 at 1:35 PM, joergpra...@gmail.com joergpra...@gmail.com wrote: That is pretty straightforward, copy the service wrapper into the bin folder of the new ES version, adjust paths and

Plain filter and constant_score

2013-12-30 Thread Han JU
Hi, We are currently benchmarking our ES setup so I've got some new questions: 1. We found out that, for the same query (filter actually), when put like this: { filter: {...}, fields: [...] } is consistently slower than this form: { query: { constant_score: { filter:

Re: Plain filter and constant_score

2013-12-30 Thread Matt Weber
The outer filter is basically a post filter, ie. filtering happens after all the documents have been collected via the query. This should not really be used unless you are trying to do something like multi-select faceting where you don't want facet counts to be affected by the filter. You should

Re: upgrade elasticsearch using the service wrapper?

2013-12-30 Thread allen chan
I missed the part about placing the data directory outside of the elasticsearch installation. To correct it, will it be as simple as doing a mv command to move all the files to new dir and modify the elasticsearch config to use new dir? On Mon, Dec 30, 2013 at 2:48 PM, Ivan Brusic