Re: Custom date format in elasticsearch mapping

2014-10-16 Thread Roopendra Vishwakarma
Resolved: Corrected version date format is : postDate: { type: date, format: E MMM d H:m:s z Y }, On Tuesday, 14 October 2014 17:53:30 UTC+5:30, Roopendra Vishwakarma wrote: I am trying to index data with date format *Tue May 14 17:06:01

Custom date format in elasticsearch mapping

2014-10-14 Thread Roopendra Vishwakarma
I am trying to index data with date format *Tue May 14 17:06:01 PDT 2013*. As described in Elasticsearch Date Format http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/mapping-date-format.html document I need to use custom date format. I refer to DateTimeFormat

Re: Filtered not working with has_parent in elasticsearch 1.3.0

2014-09-16 Thread Roopendra Vishwakarma
Any Suggestion?? On Monday, 15 September 2014 23:31:26 UTC+5:30, Roopendra Vishwakarma wrote: In elasticsearch 1.3.0 *filtered* not working with *has_parent*. In *elasticsearch 0.90.5* its working fine. I am using below query. In this query I need add filtered inside *has_parent-query

Filtered Query not working with Elasticsearch 1.3.0

2014-09-15 Thread Roopendra Vishwakarma
Filtered query not working with Elasticsearch 1.3.0. I upgrade elasticsearch 0.90.5 to 1.3.0. I am using elasticsearch Query DSL; { query: { match_all: {}, filtered: { filter: { bool: { must: [

Filtered Query not working with Elasticsearch 1.3.0

2014-09-15 Thread Roopendra Vishwakarma
Filtered query not working with *Elasticsearch 1.3.0*. I upgrade elasticsearch *0.90.5* to *1.3.0*. I am using elasticsearch below Query DSL. In *Elasticsearch 0.90.5* below query DSL is working fine. But in *Elasticsearch 1.3.0* getting error *ElasticsearchParseException[Expected field name

Filtered not working with has_parent in elasticsearch 1.3.0

2014-09-15 Thread Roopendra Vishwakarma
In elasticsearch 1.3.0 *filtered* not working with *has_parent*. In *elasticsearch 0.90.5* its working fine. I am using below query. In this query I need add filtered inside *has_parent-query-filtered-bool-must*. But my basic query is not working. { query: { has_parent:

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

Elasticsearch restart task hangs up in Ansible Playbook

2014-09-10 Thread Roopendra Vishwakarma
I am using ansible playbook to install elasticsearch and elasticsearch plugin. after successfully installation of Elasticsearch I written one ansible task to Restart Elasticsearch. Its restarting elasticsearch but ansible playbook hang up in this task. My ansible task is: - name: Ensure

Re: Elasticseach query optimizations

2014-02-13 Thread Roopendra Vishwakarma
@Binh Ly, Thanks for your response. I have tried to change query as per your suggestion and I analysed after using _cache:true performance little bit increase after second/third hit. I am trying in SENSE chrome plugin. I have tried third point to change my query but its not working for me.

Elasticseach query optimizations

2014-02-12 Thread Roopendra Vishwakarma
Is there any way to optimize query in Elasticsearch? I am using below query. Its taking average `15-20s` and sometimes it little bit fast `4-5s`. My server configuration :- Centos 6.3, 8 Core 16GB RAM { fields: [ _id, aff_id, post_uri, blog_cat,