Re: I need to call my server xxx.xx.xx.xxx:xxxxx using elasticsearch api in python

2014-09-11 Thread Magnus Bäck
On Friday, September 12, 2014 at 04:45 CEST, Nimit Jain wrote: > Thanks Honza for your reply. While trying the below code with > print(es.info()) I am getting the below error. > pydev debugger: starting (pid: 9652) > GET / [status:401 request:0.563s] > Traceback (most recent call last): [..

Re: Some indices failing with "SearchPhaseExecutionException[Failed to execute phase [query], all shards failed]"

2014-09-11 Thread Magnus Bäck
On Friday, September 12, 2014 at 08:53 CEST, Kevin DeLand wrote: > Everything was working fine when all of a sudden some indices started > failing. > GET localhost:9200/logstash-2014.09.11/_search > yields response: > {"error":"SearchPhaseExecutionException[Failed to execute phase > [query],

Some indices failing with "SearchPhaseExecutionException[Failed to execute phase [query], all shards failed]"

2014-09-11 Thread Kevin DeLand
Everything was working fine when all of a sudden some indices started failing. *GET localhost:9200/logstash-2014.09.11/_search* yields response: {"error":"SearchPhaseExecutionException[Failed to execute phase [query], all shards failed]","status":503} -- You received this message because you

Re: disk usage not banalced

2014-09-11 Thread AALISHE
ref.. -- 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.googl

Re: Simple query string does not work

2014-09-11 Thread Dan
Thanks!! Thats it. Op donderdag 11 september 2014 18:23:31 UTC+2 schreef vineeth mohan: > > Hello Dan , > > The format of the entire query is wrong. > You need to at-least specify the type of query that you are using. > In this case , wild card query would be the best fit. > > Thanks >

Re: Elasticsearch restart task hangs up in Ansible Playbook

2014-09-11 Thread Roopendra Vishwakarma
Fix this problem. Cause of the issue. I am using old version of service wrapper script for elasticsearch. After update * /etc/init.d/elasticsearch* everything is working fine. On Wednesday, 10 September 2014 15:52:50 UTC+5:30, Roopendra Vishwakarma wrote: > > I am using ansible playbook to in

Re: Aggregations across values returned by term then date histogram

2014-09-11 Thread ppearcy
Hi, I am doing a terms aggregation on user with a sub date histogram aggregation to get time series per user. I then want to perform a stats aggregation all the values of each date bucket across users. Thanks, Paul On Thursday, September 11, 2014 8:32:13 PM UTC-4, vineeth mohan wrote: > > He

Re: complex nested query

2014-09-11 Thread vineeth mohan
Hello Yancey , 1. Date aggregation - http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-aggregations-bucket-datehistogram-aggregation.html#search-aggregations-bucket-datehistogram-aggregation 2. Sum aggregation - http://www.elasticsearch.org/guide/en/elasti

Re: complex nested query

2014-09-11 Thread yancey
Hi! I can not find how to filter date based on aggregation result in documents. btw, can i use function do this? Thanks && Best Regard! 在 2014年9月12日,1:18,yancey 写道: > Vineeth! > > Thanks for your reply! I’ll try your solution,hope this can solve my problem. > > > Thanks && Best Regard! >

Re: I need to call my server xxx.xx.xx.xxx:xxxxx using elasticsearch api in python

2014-09-11 Thread Nimit Jain
Thanks Honza for your reply. While trying the below code with print(es.info()) I am getting the below error. pydev debugger: starting (pid: 9652) GET / [status:401 request:0.563s] Traceback (most recent call last): File "C:\Users\nimitja\Downloads\adt-bundle-windows-x86_64-20140702\adt-bundle-

Re: When indexing a few hours duration, a timeout error occurs.

2014-09-11 Thread Sephen Xu
And I noticed RES and SHR growing, is this normal?

When indexing a few hours duration, a timeout error occurs.

2014-09-11 Thread Sephen Xu
Hello, I have a program, continuing to submit bulk to Elasticsearch, each bulk has 5000 documents, the number of concurrent requests is 8, such lasted several hours later, the program appeared timeout error: 2014-09-12 09:23:29,092 INFO [org.elasticsearch.client.transport] - <[James Jaspers] f

Re: Why all replicas are unassigned?

2014-09-11 Thread Sephen Xu
Hi, Not set . :) 2014-09-11 14:19 GMT+08:00 Jun Ohtani : > Hi > > Did you use some properties of prefix > "cluster.routing.allocation.awareness"? > > 2014-09-11 14:48 GMT+09:00 Sephen Xu : > >> uh...'other cluster' is means that another 2 machine build a four node >> cluster, and it work fine wit

Re: Aggregations across values returned by term then date histogram

2014-09-11 Thread vineeth mohan
Hello , I didn't get your question completely , but then i feel a simple date histogram query should do the trick. "aggs" : { "{{time_interval}}": { "date_histogram": { "field": "time", "interval": "{{time_interval}}", "min_doc_count": 0

Re: Context in Native Scripts

2014-09-11 Thread vineeth mohan
Hello , Can you give a more elaborate explanation on the behavior of scoring you want ? I dont see any direct way to achieve this. Also re-scoring might interest you - http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-rescore.html Thanks Vineeth O

disk usage not banalced

2014-09-11 Thread AALISHE
Hi, we have a cluster composed of 2 nodes ... I am new to ES ... but I noticed that data directories assigned to each node are not holding the same size of data inside the disk usage on node01 is : $ sudo du -sh * 1.7Gd1 488Md2 5.1Gd3 1.7Gd4 9.3Gd5 27G d6 on node02:

Function score with nested docs stops working after adding attribute with not unique name

2014-09-11 Thread Gosia
Hi guys, I am trying to calculate the `_score` of the document as a sum of IDs of my nested docs. Here is the mapping: ``` PUT /test/property/_mapping { "property": { "properties": { "destination_id": { "type": "long" }, "rates": { "ty

Re: elasticsearch hadoop, dynamically decide index name too (not just type name), is it possible?

2014-09-11 Thread Jinyuan Zhou
This is great. Thanks, Jinyuan (Jack) Zhou On Thu, Sep 11, 2014 at 1:56 PM, Costin Leau wrote: > Yes, simply use a different pattern - {my-index-pattern}/{my-type}-foobar > > On 9/11/14 9:56 PM, Jinyuan Zhou wrote: > >> I saw hadoop documentation regarding setting up index for a mapreduce job >

Re: elasticsearch hadoop, dynamically decide index name too (not just type name), is it possible?

2014-09-11 Thread Costin Leau
Yes, simply use a different pattern - {my-index-pattern}/{my-type}-foobar On 9/11/14 9:56 PM, Jinyuan Zhou wrote: I saw hadoop documentation regarding setting up index for a mapreduce job to EsOutuputFormat. Below is a part regarding dynamically decide the document type. (http://www.elasticsea

control primary/replica placement?

2014-09-11 Thread slushi
I have a setup where I have some machines with SSD drives and others with slower spinning disks. I have some indices that I would like to place on the SSD machines so those requests are served more quickly. I have used allocation filtering thus far and it's worked well. However I am running out

Elasticsearch parse failure error

2014-09-11 Thread shriyansh jain
Hi, I am using ELK stack and have a cluster of 2 elasticsearch nodes. When I am querying Elasticsearch from kibana. I am getting the following log error message in the elasticsearch log file. http://pastebin.com/sD539SNZ I am not able to figure out what is causing the error to happen. Any inpu

Re: Move Elasticsearch index's from /auto/abc to /auto/def

2014-09-11 Thread shriyansh jain
Thank you sir for your reply back. I appreciate it. Thank you. -Shriyansh On Thursday, September 11, 2014 1:07:46 PM UTC-7, Mark Walkom wrote: > > You should be able to just copy them across and then start ES with your > new path value, yes. > > Regards, > Mark Walkom > > Infrastructure Engineer

Re: Which UI tool is good for adjusting templates for the future indices?

2014-09-11 Thread Mark Walkom
There isn't a GUI tool for editing templates that I have found, though I imagine if you added a feature request to kopf/elastichq/etc you might get it filled. And it's hard to go past curl for the CLI or even https://github.com/elasticsearch/es2unix for *nix, but Windows is another world in that re

Re: Move Elasticsearch index's from /auto/abc to /auto/def

2014-09-11 Thread Mark Walkom
You should be able to just copy them across and then start ES with your new path value, yes. Regards, Mark Walkom Infrastructure Engineer Campaign Monitor email: ma...@campaignmonitor.com web: www.campaignmonitor.com On 12 September 2014 03:37, shriyansh jain wrote: > Can someone help me out

What is 'marked shard as started, but shard has not been created, mark shard as failed"?

2014-09-11 Thread Jeffrey Zhou
We're using Elasticsearch 1.2.2 in our cluster, and have 3 dedicated master nodes. Last night, two of these master nodes (ES-SEARCH-64 and ES-SEARCH-65) became primary master alternately in a period, and we found quite a few 'marked shard as started, but shard has not been created, mark shard a

Re: Do I need the JDBC driver

2014-09-11 Thread Employ
Like this: http://stackoverflow.com/questions/13576703/indexing-documents-in-elasticsearch-with-php-curl Sent from my iPhone > On 11 Sep 2014, at 19:52, "joergpra...@gmail.com" > wrote: > > I do not know the PHP client in particular, but this is just another one of > the official Elasticsear

Re: Do I need the JDBC driver

2014-09-11 Thread Employ
I'm sorry I'm such this is clear to a lot if people but not to me. Can I not use the official elastic search PHP client to add documents to elasticsearch? In which case my php website can use this library to grab data from the database, convert it to the right format and send it to elasticsearch

Which UI tool is good for adjusting templates for the future indices?

2014-09-11 Thread Konstantin Erman
We have different indexes for different log types and one index of each type is generated every day. What I'm looking for is some convenient to use user interface to see things like "How many shards are allocated for particular index" (a ton of tools can show me that) and then I want to create

elasticsearch hadoop, dynamically decide index name too (not just type name), is it possible?

2014-09-11 Thread Jinyuan Zhou
I saw hadoop documentation regarding setting up index for a mapreduce job to EsOutuputFormat. Below is a part regarding dynamically decide the document type. (http://www.elasticsearch.org/guide/en/elasticsearch/hadoop/current/mapreduce.html). My question is is it possible to parameterize the "

Re: Do I need the JDBC driver

2014-09-11 Thread joergpra...@gmail.com
I do not know the PHP client in particular, but this is just another one of the official Elasticsearch clients, like there are Elasticsearch clients for other language, Perl, Python, Ruby, etc. With an Elasticsearch client, you can use Elasticsearch, not an RDBMS database. Jörg On Thu, Sep 11, 2

Re: [ANN] Elasticsearch Simple Action Plugin

2014-09-11 Thread joergpra...@gmail.com
It was a quick fix. new version is checked in. Thanks for reminding, Jörg On Thu, Sep 11, 2014 at 7:53 PM, 'Sandeep Ramesh Khanzode' via elasticsearch wrote: > Hi Jorg, > > Sure. Thanks, > > Just wondering what changed so much in 1.3? Is there sort of a quick fix? > Or else, will just wait for

Pagination on unique data

2014-09-11 Thread jigish thakar
Hey Guys, I am building some Logging and monitoring product for my employer and using ES as backend. now finding unique value of each/any attribute is core part of business logic I have in hand. lets say I want unique dst_ip, to achieve that, - I have used "index":"not_analyzed" for selected fie

Re: Search Plugin to intercept search response

2014-09-11 Thread joergpra...@gmail.com
Yes. I have checked in some code for a simple action plugin. https://github.com/jprante/elasticsearch-simple-action-plugin The plugin implements a simple "match_all" search action, by reusing much of the code of the search action. Best, Jörg On Thu, Sep 11, 2014 at 7:55 PM, Sandeep Ramesh Kh

Aggregations across values returned by term then date histogram

2014-09-11 Thread ppearcy
I haven't been able to figure out how to do this and it may not be possible, but figured I'd ask. I have a query with multiple aggregations that looks like this: https://gist.github.com/ppearcy/0c6a86ebf32a0bbcb1fc This returns a time series of data per user: https://gist.github.com/ppearcy/7c

Re: Search Plugin to intercept search response

2014-09-11 Thread Sandeep Ramesh Khanzode
Thanks for bearing with me till now :) Please provide one final input on this issue. Is there any example for a custom search action? If not, can you please provide some details on how I can implement one? Thanks, Sandeep On Thu, Sep 11, 2014 at 4:53 PM, joergpra...@gmail.com < joergpra...@gmai

Re: [ANN] Elasticsearch Simple Action Plugin

2014-09-11 Thread 'Sandeep Ramesh Khanzode' via elasticsearch
Hi Jorg, Sure. Thanks, Just wondering what changed so much in 1.3? Is there sort of a quick fix? Or else, will just wait for an update from you. Thanks, Sandeep On Wednesday, 10 September 2014 15:20:57 UTC+5:30, Jörg Prante wrote: > > The plugin is for 1.2, I have to update the simple action

Context in Native Scripts

2014-09-11 Thread zeev . sands
Hello everyone, I've been playing with native scripts and have a few questions: Is there any notion of context for native scripts? For example, is there a way to know that a method "runAsDouble", for example, is called for the last time? I might, for instance, like to s

Cannot Get REST API Clients to See Server on Win 8

2014-09-11 Thread Jerry Burman
I downloaded ElasticSearch (ES) 1.3.2 and Java jre1.8.0_20 and attempted to follow the ES tutorial. I am new to ES. I installed ES on my Windows 8.1 x64 laptop and it appears that the server is running in the prompt window. I also set up JAVA_HOME. However, when I attempt to run the simple

Re: Move Elasticsearch index's from /auto/abc to /auto/def

2014-09-11 Thread shriyansh jain
Can someone help me out with this question.? Is there any ambiguity with the question.? Thank you. Shriyansh On Wednesday, September 10, 2014 6:30:30 PM UTC-7, shriyansh jain wrote: > > Hi, > > I need an advice on migrating all Elasticsearch indexes from one partition > to another partition. Cu

Re: complex nested query

2014-09-11 Thread yancey
Vineeth! Thanks for your reply! I’ll try your solution,hope this can solve my problem. Thanks && Best Regard! 在 2014年9月12日,0:12,vineeth mohan 写道: > Hello , > > I don't feel you can do this in a single call. > What i have in mind would be > > Run a two level aggregation query with date h

Marvel - Total Queries Per Day

2014-09-11 Thread Scott Decker
I must be missing something, or not be querying the dashboards correctly =( How do I get a graph of the total queries being generated for nodes? Basically, just trying to see counts, per hour/per day/per week of how many queries that are being run against the es cluster we have. I know query_tot

Re: Do I need the JDBC driver

2014-09-11 Thread Employ
Thank you, that answers a lot of my questions. There is still the point of using the Php library for elastic search, where I can send documents directly to elastic search in JSON format without needing a JDBC driver. Is this not a good option? Sent from my iPhone > On 11 Sep 2014, at 16:33, "j

Re: ElasticsearchIntegrationTest issue

2014-09-11 Thread Jean-Bernard Damiano
I found the problem with the code. Is a test configuration issue. The pluginsService class loads plugin from plugin.types information, but it calls another method, tupleBuilder.addAll(loadPluginsFromClasspath(settings)); The loadPluginsFromClasspath, in my case it find my plugin another time.

Re: Simple query string does not work

2014-09-11 Thread vineeth mohan
Hello Dan , The format of the entire query is wrong. You need to at-least specify the type of query that you are using. In this case , wild card query would be the best fit. Thanks Vineeth On Thu, Sep 11, 2014 at 9:42 PM, Dan wrote: > Hi Vineeth, > > > Thanks for your reply. > > > {"

Re: complex nested query

2014-09-11 Thread vineeth mohan
Hello , I don't feel you can do this in a single call. What i have in mind would be 1. Run a two level aggregation query with date histogram aggregation on first level with date and term aggregation on second with sum aggregation on prize field on second level. You might need to use nes

Re: Simple query string does not work

2014-09-11 Thread Dan
Hi Vineeth, Thanks for your reply. {"from":0,"size":10,"query":{"field":{"tags":"*blaat*"}},"filter":{"and":[{"term":{"representative":1}},{"term":{"is_gift":0}},{"term":{"active":1}},{"terms":{"website_ids":[1],"execution":"and"}}]}} Is this enough? Thanks! Op donderdag 11 septembe

Re: searching across multiple types returns doesn't find all documents matching

2014-09-11 Thread ben
Thank you! On Wednesday, September 10, 2014 8:59:31 PM UTC-7, vineeth mohan wrote: > > Hello Ben , > > > This is the type/field ambiguity bug - > https://github.com/elasticsearch/elasticsearch/issues/4081 > > Basically , if you use the field name and type name as same , this might > come up. >

Re: Do I need the JDBC driver

2014-09-11 Thread joergpra...@gmail.com
Synchronization of data is a very broad question. This is just because the data organization in an RDBMS is very different from ES. You surely know that. See also object-relational impedance mismatch http://en.wikipedia.org/wiki/Object-relational_impedance_mismatch The JDBC river plugin allows you

Does the wares transport support the plugin sites?

2014-09-11 Thread John Smith
I installed wares and it seems to work fine, though it doesn't serve the plugin sites. When I tried to access the _plugin url It get a a "No handler registered for _plugin". I haven't touched servlets in for ages. So I assume it may be doable with a filter... So map ES servlet to /es and use

Re: Do I need the JDBC driver

2014-09-11 Thread James
Hi Jorg, Thank you for the reply. Yes I meant the elasticsearch river. Simply put, I want to syncronize the entries in my SQL database with my elasticsearch, so I can use elasicsearch for searching and not doing fulltext search. I want to know that when a new item gets added or removed from tha

Re: Error on adding the new field mapping in already existing mapping

2014-09-11 Thread David Pilato
Probably at some point you did send something to elasticsearch which created the username field. Try to get the actual mapping for your YsFact type using: GET /index/YsFact/_mapping  And you should see the existing definition. May be you are using templates? --  David Pilato | Technical Advoca

Re: Do I need the JDBC driver

2014-09-11 Thread joergpra...@gmail.com
How do you mean "PHP elasticsearch library can convert SQL to JSON"? How can this be? It is only for Elasticsearch. As a matter fact, there is no "JDBC driver used by elasticsearch", there is a plugin elasticsearch-river-jdbc, a community effort - I assume you mean this implementation? What do yo

Re: What is better - create several document types or several indices?

2014-09-11 Thread smonasco
Every index has a minimum of one shard. Multiple types can live in the same shard. Shards both have maintenance overheads and slow down queries. However, if you have a lot of targeted queries you can more easily reduce the shards accessed by reducing indexes than you could if you had multi-te

Re: Simple query string does not work

2014-09-11 Thread vineeth mohan
Hello Dan , Can you paste the above as JSON. I am not exactly able to make out what is the query. Thanks Vineeth On Thu, Sep 11, 2014 at 5:50 PM, Dan wrote: > Nobody? :( > > Op woensdag 10 september 2014 21:24:19 UTC+2 schreef Dan: > >> Hi Guys, >> >> I have a simple query which is n

Re: What is better - create several document types or several indices?

2014-09-11 Thread Konstantin Erman
Vineeth, thank you for your advice! It seems we already do everything as you said. We name indices in Logstash style with the date. Is that what you are referring to as tailing? Creating an index per hour would lead to hundreds of indices open. I wonder what are the guidelines regarding the numb

Re: Simple query string does not work

2014-09-11 Thread Dan
Nobody? :( Op woensdag 10 september 2014 21:24:19 UTC+2 schreef Dan: > > Hi Guys, > > I have a simple query which is not working. I am using the same query on > another server with the same mapping; where it does work. > Everything else is working like a charm. > > I am talking about the followin

Re: Do I need the JDBC driver

2014-09-11 Thread James
I'm sorry but that doesn't answer my question. It's elasticsearch that is Java. I need to sync elasticsearch with my SQL DB. I'm stuck between these two scenarios: Scenario 1: PHP website adds data to the SQL DB JDBC driver used by elasticsearch to grab values from SQL DB into index Scenario 2: P

Re: complex nested query

2014-09-11 Thread 闫旭
Anyone can help this? Thanks && Best Regard! 在 2014年9月11日,13:24,闫旭 写道: > Thank you ! But nested bool query can not plus all price with the data > range. how can i do this?? > > Thx again. > > Thanks && Best Regard! > > 在 2014年9月11日,12:04,vineeth mohan 写道: > >> Hello , >> >> >> First

Re: Ramifications of G1GC in ES1.3 with JDK 1.8

2014-09-11 Thread Mark Walkom
We also use it in dev for months across various ES and Java 8 releases, I have been considering rolling it out to a smaller prod cluster as well as we've had no problems at all. Regards, Mark Walkom Infrastructure Engineer Campaign Monitor email: ma...@campaignmonitor.com web: www.campaignmonitor

Re: Ramifications of G1GC in ES1.3 with JDK 1.8

2014-09-11 Thread joergpra...@gmail.com
Nice to see another success of G1 GC :) Jörg On Thu, Sep 11, 2014 at 11:34 AM, Robert Gardam wrote: > Yeah, we are seeing much better gc performance here too! > > We were experiencing the stop the world GC with CMS and then nodes would > time out. > > Our heap is 32gb, we run two nodes per syst

Re: Do I need the JDBC driver

2014-09-11 Thread joergpra...@gmail.com
I think I answered the question, or I do not fully understand. JDBC is Java Database Connectivity, it is Java only, it has nothing to do with PHP. So if you choose PHP, it is obvious that you can not use it. Jörg On Thu, Sep 11, 2014 at 12:08 PM, James wrote: > I've also put this question up

Re: Search Plugin to intercept search response

2014-09-11 Thread joergpra...@gmail.com
You can not intercept the SearchResponse on the ES server itself. Instead, you must implement your custom search action. Jörg On Thu, Sep 11, 2014 at 10:00 AM, Sandeep Ramesh Khanzode < k.sandee...@gmail.com> wrote: > When you say, 'receive the SearchResponse', is that in the ES Server node > or

Re: More Like This - Results Is Empty

2014-09-11 Thread phenrigomes
I am making an application for product comparison, but "more like this" query not is adequate. Fuzzy query is adequate to bind to products the same vendor? -- View this message in context: http://elasticsearch-users.115913.n3.nabble.com/More-Like-This-Results-Is-Empty-tp4063176p4063262.html Sen

Re: Do I need the JDBC driver

2014-09-11 Thread James
I've also put this question up on stackoverflow for anyone who might be able to help me understand. http://stackoverflow.com/questions/25763997/elasticsearch-do-i-need-the-jdbc-driver On Wednesday, September 10, 2014 10:59:18 AM UTC+1, James wrote: > > Hi, > > I'm setting up a system where I hav

Error on adding the new field mapping in already existing mapping

2014-09-11 Thread Narinder Kaur
Hi, We already have a type in our system, *YsFact*. Now I needed to add a new field in this type, *username*. And username has following mapping. *"username":{"type":"string","index":"not_analyzed"}* We have a script in the system, that executes the mappings automatically. and in t

Re: No results in REST API

2014-09-11 Thread Nimit Jain
Hi Could you please help me to connect my server xx.xxx.xx.xxx:12345 with elasticsearch rest api in python. I tried alot but still not able to established the connection. On Wednesday, 21 May 2014 09:59:29 UTC+5:30, Pratik Poddar wrote: > > When I am doing es.search using pyelasticsearch I am ab

Re: Ramifications of G1GC in ES1.3 with JDK 1.8

2014-09-11 Thread Robert Gardam
Yeah, we are seeing much better gc performance here too! We were experiencing the stop the world GC with CMS and then nodes would time out. Our heap is 32gb, we run two nodes per system. IO doesn't seem to be an issue here. 20 nodes = 10 boxes, 128gb ram each Field cache is limited to 20% We're

Re: I need to call my server xxx.xx.xx.xxx:xxxxx using elasticsearch api in python

2014-09-11 Thread Honza Král
Hi, the code you have here should work, what do you get when you try: from elasticsearch import Elasticsearch es = Elasticsearch("10.120.xx.xxx:6xxx8") print(es.info()) Thanks On Thu, Sep 11, 2014 at 11:14 AM, Nimit Jain wrote: > Hi All, > I need I need to call my server xxx.xx.xx.xxx:x u

Re: Copying fields to a geopoint type ?

2014-09-11 Thread Kushal Zamkade
Hello, I have created a location filed by using below code if [latitude] and [longitude] { mutate { rename => [ "latitude", "[location][lat]", "longitude", "[location][lon]" ] } } But when i check location field type then it is not created as geo_point. when i am trying to

I need to call my server xxx.xx.xx.xxx:xxxxx using elasticsearch api in python

2014-09-11 Thread Nimit Jain
Hi All, I need I need to call my server xxx.xx.xx.xxx:x using elasticsearch api in python but I am not able to get the proper code to run that. Below is that I have done yet. from datetime import datetime from elasticsearch import Elasticsearch es = Elasticsearch("10.120.xx.xxx:6xxx8") prin

Re: Preparing for ElasticSearch in production

2014-09-11 Thread David Pilato
Sure. If you don't care at the beginning of your production about replication (and failover), that's perfectly fine. --  David Pilato | Technical Advocate | Elasticsearch.com @dadoonet | @elasticsearchfr Le 11 septembre 2014 à 09:17:44, Simon Forsberg (simon.fo...@gmail.com) a écrit: Hello, I

Re: Search Plugin to intercept search response

2014-09-11 Thread Sandeep Ramesh Khanzode
When you say, 'receive the SearchResponse', is that in the ES Server node or the TransportClient node that spawned the request? I would want to intercept the SearchResponse when created at the ES Server itself, since I want to send the subset of Response to another process on the same node, and it

Re: Java Client integration with Jetty Plugin

2014-09-11 Thread joergpra...@gmail.com
There are so much authentication layers out there. I do not see much sense in reinventing the wheel. You should run ES cluster in private subnets only where nobody has access to the machines, except your frontend service which is open to the web (HTTP port 80/443). Such a frontend service can be a

Re: cluster can't recover after upgrade from 1.1.1 to 1.3.2 due to MaxBytesLengthExceededException

2014-09-11 Thread Jilles van Gurp
You are running into this problem: http://elasticsearch-users.115913.n3.nabble.com/encoding-is-longer-than-the-max-length-32766-td4056738.html You need to change the mapping and define a maximum token length in your analyzer. Unfortunately, you would need to do that before you migrate and I do

Re: Error while reading elasticsearch data in hadoop program

2014-09-11 Thread Costin Leau
Unfortunately there's no clear answer since each distro and version (in particular 1.x vs 2.x) added more options to configure the classpath and thus configure the cluster and its jobs. This is actually the reason why in the docs we don't recommend one big way - the classpath config is fragile (

Preparing for ElasticSearch in production

2014-09-11 Thread Simon Forsberg
Hello, I am wondering if it's a valid approach to start with a single-noded ElasticSearch cluster and then scale out when needed? This would of course involve a proper shard management. Thanks, -- You received this message because you are subscribed to the Google Groups "elasticsearch" group

Re: Ramifications of G1GC in ES1.3 with JDK 1.8

2014-09-11 Thread joergpra...@gmail.com
Java 8 / G1GC works well here, what issues do you have? Jörg On Wed, Sep 10, 2014 at 8:13 PM, Robert Gardam wrote: > I had been hitting my head up against heap issues until this afternoon > after enabling G1GC. > > What are the known issues with this type of GC? > > -- > You received this messa

Re: Search Plugin to intercept search response

2014-09-11 Thread joergpra...@gmail.com
You can receive the SearchResponse, process the response, and return the response with whatever format you want. Jörg On Wed, Sep 10, 2014 at 11:59 AM, Sandeep Ramesh Khanzode < k.sandee...@gmail.com> wrote: > Hi Jorg, > > Thanks for the links. I was checking the sources. There are relevant to m

MVEL script and checks on boolean type fields

2014-09-11 Thread Florian B.
hola everybody, i have a field in my mapping like "some_flag" : { "type" : "boolean", "store" : "yes" } and i want to give bias to results that have the flag set to false. first i ran into the issue that apparently the field is treated as a string (was gettin