Re: Why is has_parent so slow? and can anything be done?

2015-03-03 Thread Martijn v Groningen
Are you also adding/modifying documents while searching with has_parent or has_child query? In that it makes sense to enable global ordinals loading on the _parent field: http://www.elasticsearch.org/guide/en/elasticsearch/guide/current/parent-child-performance.html#_global_ordinals_and_latency Th

Re: SparkSQL and ElasticSearch not inferring JSON Schema correctly, possible bugs?

2015-02-11 Thread Aris V
Costin Leua saw this on the Spark User Mailing List, and I have filed this as a bug in github: https://github.com/elasticsearch/elasticsearch-hadoop/issues/377 On Tuesday, February 10, 2015 at 5:18:57 PM UTC-8, Aris V wrote: > > I'm using ElasticSearch with elasticsearch-spark-BUI

SparkSQL and ElasticSearch not inferring JSON Schema correctly, possible bugs?

2015-02-10 Thread Aris V
I'm using ElasticSearch with elasticsearch-spark-BUILD-SNAPSHOT and Spark/SparkSQL 1.2.0, from Costin Leau's advice. I want to query ElasticSearch for a bunch of JSON documents from within SparkSQL, and then use a SQL query to simply query for a column, which is actually a JSON key -- normal th

Re: percolator filtering not working?

2015-02-04 Thread Martijn v Groningen
tering works fine - so this should mean that the percolator >> **is** in the index and is accessible via the alias. >> >> So again, I'm not sure why percolator filtering isn't working - as I've >> said, I assume I'm misunderstanding/doing something wrong, bu

Re: percolator filtering not working?

2015-02-03 Thread Martijn v Groningen
The index that the percolator query is in is named: ' activities-20150107-162224', but your are percolating on the `activities` index. I think in the activities index there is no `doc_type` field defined in the `.percolator` type, so that is why there are no matches. If you you use activities* as i

Re: behavior of scrolling search with "from" parameter in newer ES versions

2015-01-21 Thread Martijn v Groningen
nything that even implies that `from` > is not supported for a scroll search, except of course when > `search_type=scan`. > > I would love to get support for that back into the product. > > --g > > > > On Wednesday, January 21, 2015 at 2:57:29 AM UTC-6, Martijn v Groningen

Re: behavior of scrolling search with "from" parameter in newer ES versions

2015-01-21 Thread Martijn v Groningen
Hi Gordon, This `from` is kind of ignored for scroll search. I don't remember why that was the case, but it seems to me that scroll search can/should take into account the `from` option during the first scroll search request. Martijn On 20 January 2015 at 23:33, Gordon Tillman wrote: > Greetin

Re: Bucket query results | top hits performance

2015-01-08 Thread Martijn v Groningen
docid, which is a kind of arbitrary, because you can't have control over these sort values, but you can sort by any field in your mapping. More information about collect mode: 1) http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-aggregations-bucket-terms-aggregation.html#_collect

Re: Bucket query results | top hits performance

2015-01-08 Thread Martijn v Groningen
ess memory. But I > understand it needs to be able to handle more general cases.) > > Is this at all close to how it works? > > On Tuesday, January 6, 2015 11:20:08 PM UTC-8, Martijn v Groningen wrote: >> >> Hi Michael, >> >> In general the more buckets being

Re: Bucket query results | top hits performance

2015-01-06 Thread Martijn v Groningen
Hi Michael, In general the more buckets being returned by the parent aggregator the top_hits is nested in, the more work the top_hits agg needs to do, but I didn't come across performance issues with `size` on terms agg being set to 50 and the time it takes to execute increasing 30 times when top_

Re: elasticsearch 1.4.0 yellow with shards stuck initializing - need help diagnosing this

2014-11-27 Thread Martijn v Groningen
t of things via logstash almost continuously. > > Jilles > > > > On Thursday, November 27, 2014 4:06:21 PM UTC+1, Martijn v Groningen wrote: >> >> This looks like a mapping issue to me (not 100% sure). A document that is >> in the translog has a string field (with

Re: elasticsearch 1.4.0 yellow with shards stuck initializing - need help diagnosing this

2014-11-27 Thread Martijn v Groningen
rs to be related to the logstash index > rollover. Our app servers and kibana talk to the two non data nodes that we > run on both our application servers. > > My next stop was kibana which we use on the same cluster with the logstash > index that is probably causing us issues. Looking at th

Re: Percolator with lookup terms filter not working?

2014-11-03 Thread Martijn v Groningen
In the case of percolator queries are indexed before actual data is evaluated, which triggers the automatic addition of fields in mappings. Most of the times this is ok, but there are a number of queries that require the field mapping to exist before the percolator query is indexed. Because of thi

Re: Children aggregation (1.4.0.Beta1) Round-Robin result

2014-11-03 Thread Martijn v Groningen
cluster (8 rxlarge, etc etc) went down > after 2 days updating paren-child relations. > Index volume is tiny, but the number of child documents updated is huge. > > Thank you. > > Vlad > > > On Tuesday, October 21, 2014 4:38:55 PM UTC+2, Martijn v Groningen wrote: >> >

Re: Children aggregation (1.4.0.Beta1) Round-Robin result

2014-10-21 Thread Martijn v Groningen
rtijn On 21 October 2014 16:17, Vlad Vlaskin wrote: > Hi Martijn, > > great news, thank you! > > Would you recommend to keep parent-child data model and wait for a > release? (Do you have a feeling of the date?). > > Thank you > > Vlad > > > > On Tuesda

Re: Children aggregation (1.4.0.Beta1) Round-Robin result

2014-10-21 Thread Martijn v Groningen
> #Update child document: > curl -XPOST 'http://localhost:9200/test/metric/1/_update?parent=1' -d > '{"script":"ctx._source.count+=ct", "params":{"ct":1}}' > #Query with benchmark query, it should return 2 > curl -XGET localho

Re: Children aggregation (1.4.0.Beta1) Round-Robin result

2014-10-21 Thread Martijn v Groningen
Hi Vlad, What you're describing shouldn't happen. The child docs should get detached. I think this is a bug. Let me verify and get back to you. Martijn On 21 October 2014 13:26, Vlad Vlaskin wrote: > After some experiments I believe I found the cause of the discrepancy > problem: > > *ElasticS

Re: Children aggregation (1.4.0.Beta1) Round-Robin result

2014-10-21 Thread Martijn v Groningen
Hi Vlad, I see that the doc_count is also different between the requests. Is the actual bucket key also different between A and B? Martijn On 21 October 2014 03:18, Vlad Vlaskin wrote: > Dear ES group, > we've been using ES in production for a while and test eagerly all > new-coming features s

Re: OutOfMemoryError after index throttling

2014-10-09 Thread Martijn v Groningen
y cluster has 3 nodes with each 32 GB RAM, ES_HEAP_SIZE=16g, > Elasticsearch V. 1.3.4 > I am using `index.merge.scheduler.max_thread_count: 1` as I am using a > spinning hard disc. > > Unfortunately I often get OutOfMemory errors on every node after merges > and I have to restar

Re: has_parent filter acting strange

2014-10-02 Thread Martijn v Groningen
which clearly contains > a "_parent" field, when I'm doing a "must_not" "has_parent" filter? That > should never be possible. > > On 2 October 2014 20:54, Martijn v Groningen < > martijn.v.gronin...@gmail.com> wrote: > >> Can you sha

Re: has_parent filter acting strange

2014-10-02 Thread Martijn v Groningen
Can you share a reproduction of the mismatches you're experiencing? (in a gist or something like that, so that I can see on what data you're running these queries) The has_parent query in a must clause should return all child documents with a parent and a has_parent in must_not should return all c

Re: Filtered not working with has_parent in elasticsearch 1.3.0

2014-09-16 Thread Martijn v Groningen
You need to wrap the has_parent query in the query part of the filtered query: http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-filtered-query.html#query-dsl-filtered-query I don't see how this query could have worked in 0.90.5, since the format is incorrect, but if

Re: Question on top hits aggregation

2014-09-14 Thread Martijn v Groningen
Hi, In that case you would need to wrap a terms agg in a nested aggregation (with the desired path) and a top_hits inside that terms aggregation. Unfortunately the top_hits aggregation doesn't yet work inside a nested aggregation. However work is being done that will add this support: https://gith

Re: stuck thread problem?

2014-09-10 Thread Martijn v Groningen
yen wrote: > Thanks for the response, Martijn! We'll consider upgrading, but it'd be > great to root cause the issue. > > On Tuesday, September 9, 2014 12:03:57 AM UTC-7, Martijn v Groningen wrote: >> >> Patrick: I have never seen this, but this means the openjdk o

Re: stuck thread problem?

2014-09-09 Thread Martijn v Groningen
Patrick: I have never seen this, but this means the openjdk on FreeBSD doesn't support cpu sampling of threads. Not sure, but maybe you can try with an Oracle jdk/jre? Otherwise jstack should be used on order to figure out on what threads of ES get stuck on. Hieu: This doesn't look like the issue

Re: stuck thread problem?

2014-08-29 Thread Martijn v Groningen
s thread. > All I know is what I've posted in my first message. > > I've restarted ES, and currently I've no stuck thread to investigate. In > the mean time, you can teach me how I should use jstack, so next time it > happens I'll be ready. > > On 2

Re: stuck thread problem?

2014-08-29 Thread Martijn v Groningen
Hi Patrick, Did you see the same stuck thread via jstack or the hot thread api that Martin reported? This can only happen if scan search was enabled (by setting search_type=scan in a search request) If that isn't the case then something else is maybe stuck. Martijn On 29 August 2014 09:58, Patr

Re: Top hits aggregation default sort

2014-08-19 Thread Martijn v Groningen
t; } >> } >> } >> >> The result is: >> >> >>- aggregations: { >> - replies: { >> - buckets: [ >> - { >>- key: 5643 >>- doc_count: 1 >>- top_s

Re: Top hits aggregation default sort

2014-08-19 Thread Martijn v Groningen
Hi Dan, The buckets of there replies terms agg are sorted by default by their doc count, but the hits inside topChildren agg are sorted by default by the score of the query. I think if you sort the replies buckets by highest score you get what you want. In order to do this you need to define a max

Failure connecting to x.x.x.x: dial tcp x.x.x.x:x: connection refused

2014-07-31 Thread Indirajith V
Hi all, I am Naive to elasticsearch and logstash. Logstash suddenly. When I looked in to the logs parsed and I can only see the following. Jul 31 14:55:16 logs 2014-07-31T14:55:16+02:00 logstash-forwarder[22514]: 2014/07/31 14:55:16.595025 Failure connecting to x.x,x.x: dial tcp x.x.x.x:x:

How do I set up ElasticSearch nodes on EC2 so they have consistent DNS entries?

2014-07-23 Thread Ryan V
I have 3 ElasticSearch nodes in a cluster on AWS EC2. My client apps use connection pooling and have the public IP addresses for all 3 nodes in their config files. The problem I have is that EC2 seems to occasionally reassign public IP addresses for these instances. They also change if I stop

How can I break down and diagnose this query error resulting in a NumberFormatException?

2014-07-17 Thread Ryan V
I just converted our ES cluster from 0.90.12 to 1.1.1 and our app from NEST 0.12 to 1.0.0-rc1 and have had a really difficult time fixing all the breaking changes. I'm stuck on the following error. It occurs when I execute what is a rather complex search query: { [my_index][0]: RemoteTransp

Can't get Chef deployed ElasticSearch service to start

2014-07-16 Thread Ryan V
rrors from nginx. If I connect via SSH to one of the instances, I notice elasticsearch is not even running and starting it manually doesn't seem to work. [ec2-user@search1 run]$ sudo service elasticsearch status -v elasticsearch not running [ec2-user@search1 run]$ sudo service elasticsearch

Re: percolator throughput decreases as time passes

2014-07-16 Thread Martijn v Groningen
Do the amount of registered percolate queries also increase? On 15 July 2014 12:02, Seungjin Lee wrote: > > ​ > hi all, > > we use elasticsearch with storm, continuously making percolation request. > > as you see above, percolator throughput decreases as time passes. > > but we are not seeing a

Re: [Hadoop] : Parsing error in MR integration

2014-07-15 Thread Aurélien V
Hi Costin, Thanks for support. Well, I'm still experiencing this issue, and for now I see no obvious reasons for it. My only guess is about environment stuff and I'm trying to clean maven dependencies, environment variables, test version compatibility. For the moment nothing had worked. About the

Re: Setting replication to async

2014-07-04 Thread Varun Vasan V
: @dadoonet / @elasticsearchfr / @scrutmydocs > > > Le 4 juil. 2014 à 07:22, Varun Vasan V a écrit : > > Hey, > > I am trying to set the replication to async. I tried the following. > > $ curl -XPOST 'http://localhost:9200/myindex' -d '{ > "setting

Setting replication to async

2014-07-03 Thread Varun Vasan V
Hey, I am trying to set the replication to async. I tried the following. $ curl -XPOST 'http://localhost:9200/myindex' -d '{ "settings": { "replication": "async" } }' Is it the correct way to do it? -- You received this message because you are subscribed to the Google Groups "elastics

Re: Shards considered in write consistency

2014-07-03 Thread Varun Vasan V
uide/en/elasticsearch/guide/current/distrib-write.html > > HTH > > > -- > *David Pilato* | *Technical Advocate* | *Elasticsearch.com* > @dadoonet <https://twitter.com/dadoonet> | @elasticsearchfr > <https://twitter.com/elasticsearchfr> > > > Le 2 juillet 20

Shards considered in write consistency

2014-07-02 Thread Varun Vasan V
Hey, I have a question related to write consistency. I have a elasticsearch cluster with 2 nodes. The nodes are configured as number_of_shards = 5 number_of_replicas = 1 If i set the action.write_consistency value as `quorum`, what is the number of active shards required to satisfy the quorum

Re: Reverse nested aggregation parsing error

2014-05-30 Thread Martijn v Groningen
Hi Stephan, The bug has been fixed, can you try out a new build? Martijn On 30 May 2014 09:45, Martijn v Groningen wrote: > This is indeed a bug, thanks for sharing it! This should be easy to fix. > > > On 27 May 2014 11:35, wrote: > >> Hello, >> I tried the n

Re: Reverse nested aggregation parsing error

2014-05-30 Thread Martijn v Groningen
This is indeed a bug, thanks for sharing it! This should be easy to fix. On 27 May 2014 11:35, wrote: > Hello, > I tried the new top_hots aggregation and made it work on denormalized data. > > However, when I tries to add a filter I ran into the following exception: > > [2014-05-27 11:32:12,869

Re: Aliases and percolators

2014-05-22 Thread Martijn v Groningen
0:9200/idx-1/docs/123/_percolate -d '{ > "filter": { > "term": { > "account_id": 1 > } > } > }' > ``` > > Thanks again. > > On Tuesday, May 20, 2014 2:18:02 AM UTC-7, Martijn v Groningen wrote: > >>

Re: Percolate nested document with geobounding box filter in percolator

2014-05-20 Thread Martijn v Groningen
Is the `location` field an object field or a nested field? The nested filter should only be used if in the mapping you have specified the `location` field to be nested. If that isn't the case you can just remove the nested filter from you query. On 20 May 2014 09:24, razafinr wrote: > Hi! > > I

Re: Aliases and percolators

2014-05-20 Thread Martijn v Groningen
1. Yes, the routing will be taken into during adding the percolator query. 2. At the moment only the routing will be taken into account, the filter will not be taken into account. I opened issue percolator against an alias with a filter: https://github.com/elasticsearch/elasticsearch/issues/6241

Re: Help with ES 1.x percolator query plz

2014-05-19 Thread Martijn v Groningen
;6b256fd1-cd04-4e3c-8f38-aaa87ac2220d"]}}} > }, > > > { > "_index" : "my_idx", > "_type" : ".percolator", > "_id" : "inFilterQ", > "_score" : 1.0, "_source" : &

Re: Percolator on nested object shard failure

2014-05-09 Thread Martijn v Groningen
You would only get this error if the "doc" part in the request body is missing of the percolate request. Can you share the entire percolate request? On 6 May 2014 18:54, razafinr wrote: > I am using elasticsearch 1.1. > > Normally in this version, percolator on nested documents should work. > >

Re: Heisenbug with Percolator

2014-05-09 Thread Martijn v Groningen
Hi, Can you also share the document being percolated? I would expect the query to match if gasoline occurs in it and 'product' is equal to 'some_product'. You may have ran into a big regarding to the percolator and mappings: https://github.com/elasticsearch/elasticsearch/pull/5776 That has been f

Re: Help with ES 1.x percolator query plz

2014-05-09 Thread Martijn v Groningen
> such behavior of elasticsearch? >>>> >>>> Our another question is if there is any way we could put the UUID list >>>> as a list into a query that is working with the percolator, like what we >>>> can do for inQuery or inFilter. We tried register an inQu

Re: Help with ES 1.x percolator query plz

2014-05-02 Thread Martijn v Groningen
Hi, Can you share the stored percolator queries and the percolate request that you were initially trying with, but didn't work?\ Martijn On 2 May 2014 11:14, JGL wrote: > Can anybody help plz? > > -- > You received this message because you are subscribed to the Google Groups > "elasticsearch"

Re: [Ann] Elasticsearch Image Plugin 1.2.0 released

2014-04-20 Thread V
is there something bad about returning the Lire score? Could you possibly explain please? if (Float.compare(distance, 1.0f) <= 0) { // distance less than 1, consider as same image score = 2f - distance; } else { score = 1 / distance; } Thank you, V -- You received this message because you a

Re: [Ann] Elasticsearch Image Plugin 1.2.0 released

2014-04-20 Thread V
the scoring, do you have any insight? Many thanks, V On Thursday, March 20, 2014 10:41:20 AM UTC, Kevin Wang wrote: > > Hi All, > > I've released version 1.2.0 of Elasticsearch Image Plugin. > The Image Plugin is an Content Based Image Retrieval Plugin for > Elasticsearc

Re: has_child queries fail if queryName is set

2014-03-20 Thread Martijn v Groningen
This is a bug and has been fixed. Can you try using the latest 0.90.x release or maybe upgrade to the latest 1.0.x release? On 20 March 2014 00:02, Riyaz wrote: > Hi, > > I am using elasticsearch v0.90.5 and trying to set QueryName (_name) for a > has_child query as described here: > http://www

Re: Problem with template loading : PutIndexTemplateRequestBuilder JAVA API

2014-03-17 Thread philippe v
Le mercredi 12 mars 2014 09:17:50 UTC+1, philippe v a écrit : >> >> Thanks for your answer, >> >> Yes that's my intention (in my real case my template includes mappings, >> etc...) >> >> I tried to invert indices().preparePutTemplate() with indi

Re: Problem with template loading : PutIndexTemplateRequestBuilder JAVA API

2014-03-12 Thread philippe v
Thanks for your answer, Yes that's my intention (in my real case my template includes mappings, etc...) I tried to invert indices().preparePutTemplate() with indices().create(), as you mentioned, but it didn't change anything. For exemple, 1st launch, NUMBER OF SHARD = 1 -> log numberOfShard

Problem with template loading : PutIndexTemplateRequestBuilder JAVA API

2014-03-11 Thread philippe v
Hello guys, I'm experiencing an issue with the PutIndexTemplateRequestBuilder. My elasticsearch is embeded in a webapp and I need to load mappings and conf on the fly. So I use the PutIndexTemplateRequestBuilder. Sometimes it works, sometimes it doesn't. It seems that the template is not alwa

Re: fielddata breaker question

2014-03-11 Thread Martijn v Groningen
5 percolator queries isn't a big deal. I was thinking order magnitude of 100k percolator queries and up. On 11 March 2014 18:02, Lee Hinman wrote: > Hi Dunaeth, > > Can you attach the output of `curl 'localhost:9200/_nodes/stats?all'`, I > would like to compare the current breaker estimation an

Re: fielddata breaker question

2014-03-11 Thread Martijn v Groningen
:56 UTC+1, Dunaeth a écrit : >>> >>> I'm asking our hoster to monitor these metrics and to avoid any >>> confusion, the breaker indice size actually monitor the >>> fielddata_breaker.estimated_size_in_bytes from the /_nodes/stats >>> endpoint. Thanks

Re: fielddata breaker question

2014-03-10 Thread Martijn v Groningen
Yes, the breaker indices size does grow quickly. Can you share the same graphs for jvm heap used and field data size? On 10 March 2014 15:16, Dunaeth wrote: > Hi, > > In order to be more precise, here are the graphs of the metrics we monitor > since we've had the fielddata breaker issue : > > >

Re: Strange percolator behavior with extra field named "type"

2014-03-05 Thread Martijn v Groningen
Hi James, The `type` top level field is used during registering the query to point to a mapping. This allows ES to properly resolve field names, so for example when indexing a query with a range query/filter it can get properly resolved to a numeric range query if a field is of the type number. T

Re: Slow Percolator Indexing

2014-03-04 Thread Martijn v Groningen
ng Oracle Java 7u45 > > > On Tuesday, March 4, 2014 1:05:13 AM UTC-8, Martijn v Groningen wrote: > >> I see that you a lot of time is spend on just measuring how memory the >> query takes in memory and not parsing the query. I think this slowness >> might be jvm versi

Re: Slow Percolator Indexing

2014-03-04 Thread Martijn v Groningen
ow at all. > 2. A regular document takes ~75ms. > 3. https://gist.github.com/julesbravo/9337810 > > It looks like it's definitely CPU bound. > > > On Monday, March 3, 2014 3:40:05 PM UTC-8, Martijn v Groningen wrote: > >> On top of just indexing a document, the top le

Re: Slow Percolator Indexing

2014-03-03 Thread Martijn v Groningen
On top of just indexing a document, the top level 'query' field part gets parsed into a internal Lucene query. However I don't see why this should take a long time. Some questions: Are you running low on jvm memory? How long does it take to index a regular document? Can you run the hot threads api

Re: fielddata breaker question

2014-03-03 Thread Martijn v Groningen
The settings for the fielddata breaker are global. Any index can be affected by it, new indices and already existing indices. For example when new data is added to an existing index, new field data entries may be created and if there isn't sufficient memory because of other field data entries for

Re: Find parent object for a specific child

2014-03-03 Thread Martijn v Groningen
Did you look into the nested type[1] and nested query[2]? I think that would be a solution for you. 1: http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/mapping-nested-type.html 2: http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-nested-query.html

Re: Elasticsearch and voltdb

2014-02-07 Thread Jithin I V
Is there any river to connect to voltdb from ES > Thanks > > Jithin > -- 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...@googlegr

Re: Elasticsearch and voltdb

2014-02-07 Thread Jithin I V
i want to do a CRUD to voltdb through elasticsearch. That is after connecting elasticsearch to voltdb , i need to query to ES to access data from voltdb. Also if voltDB data is updated it will be available in ES -- You received this message because you are subscribed to the Google Groups "elas

Elasticsearch and voltdb

2014-02-07 Thread Jithin I V
Is it possible to connect elasticsearch with volt db Thanks & Regards Jithin -- 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...@google

Order the bucket by max score of document in Aggregations V1.0.RC2

2014-02-06 Thread Toan V Luu
Hi all, Have you ever tried to order the bucket by field _score of documents given a query? I took example from http://blog.qbox.io/elasticsearch-aggregations and make the query: curl -XPOST "http://localhost:9200/sports/athlete/_search"; -d '{ "query" : { "match" : { "sport" : "

Re: NullPointerException in Elasticsearch 0.90.10 when searching with a nested filter in the parent document

2014-01-29 Thread Martijn v Groningen
Hi, This particular issue has been fixed via another issue: https://github.com/elasticsearch/elasticsearch/issues/4703 The 4703 issue fix will be included 0.90.11 and 1.0-rc2. Martijn On 29 January 2014 05:32, seallison wrote: > I'm getting a NullPointerException in Elasticsearch 0.90.10 w

Re: Stop words , Keep Filter not working

2014-01-27 Thread Bijuv V
Hi Binh If the filter has only "filter" : ["standard", "mywords"], then by default AT or at will appear in the search result as the STOP filter is removed What Im trying to achieve is : Remove all the default english stop words (use STOP filter) Retain the words that I mention under keep words

Re: Trouble with has_parent query containing scripted function_score

2014-01-26 Thread Martijn v Groningen
Hi Paul, The mapping and query that you're sharing make sense and should work. I verified that with a small recreation: https://gist.github.com/martijnvg/8639841 What I think you're running into is that a document of type 'myParent' doesn't have the field `weight`. Can you check if that is the ca

Stop words , Keep Filter not working

2014-01-25 Thread Bijuv V
I have country codes in an index and there are country codes like AT, BE, NO which are also in the English Stop words. For this reason, my search for these countries are not working. I need to have this query working (Search records with AT mentioned in any of the files - AT=Austria) POST m

Re: Query: Parents with at least x children of type y

2014-01-19 Thread Martijn v Groningen
Sorry for responding so late... something like this is possible: https://gist.github.com/martijnvg/8511859 By using `score_type=max` and wrapping the inner query in a `constant_score query`, the score represents the number of child docs that match with a parent. Then by using the `min_score` featu

Re: No hit using scan/scroll with has_parent filter

2014-01-15 Thread Martijn v Groningen
; forward to testing your fix, hopefully in 0.90.11 :) > > Regards, > -- JB.L > > > > 2014/1/14 Martijn v Groningen > >> So this is related to: >> https://github.com/elasticsearch/elasticsearch/issues/4703 >> >> >> On 14 January 2014 23:23, Martijn

Re: No hit using scan/scroll with has_parent filter

2014-01-14 Thread Martijn v Groningen
So this is related to: https://github.com/elasticsearch/elasticsearch/issues/4703 On 14 January 2014 23:23, Martijn v Groningen wrote: > I'm a bit confused the first query with has_parent doesn't return hits, > but the second does according to your gist or I'm I misreading

Re: No hit using scan/scroll with has_parent filter

2014-01-14 Thread Martijn v Groningen
made on my ES 0.90.6 node, as well as a link to the Java code >> responsible for the calls: >> https://gist.github.com/jblievremont/8331460 >> >> Please note that the issue appears only when combining scan/scroll with >> has_parent filter, as it seems to work using a has_parent que

Re: No hit using scan/scroll with has_parent filter

2014-01-08 Thread Martijn v Groningen
Hi Jean, Can you share how you execute the scan request with the has_parent filter? (via a gist or something like that) Martijn On 8 January 2014 15:17, Jean-Baptiste Lièvremont < jean-baptiste.lievrem...@sonarsource.com> wrote: > Hi folks, > > I use a parent/child mapping configuration which

Re: Help with a Query DSL

2013-12-23 Thread Bijuv V
Any help from the experts? Is this not possible using ElasticSearch query DSL or the only option is to change the object structure as described below by Sina? Op vrijdag 20 december 2013 21:16:08 UTC+1 schreef Bijuv V: > > > I have the data in the following format in Elastic Sear

Re: Help with a Query DSL

2013-12-21 Thread Bijuv V
Got the problem - typos ! startime instead of starttime Sense extension really helps in such things! Op zaterdag 21 december 2013 13:45:13 UTC+1 schreef Bijuv V: > > Hi Sina > > i tried your approach and something seems wrong - > > > PUT availswitharray > > PUT ava

Re: Help with a Query DSL

2013-12-21 Thread Bijuv V
; "room_id": 10, > "start_time": [ "08:45", "09:00"] > } > > Now you could do a bool query with must on start_time: > > { >"query": { > "bool": {"must": [ > {"term": { >

Re: Help with a Query DSL

2013-12-21 Thread Bijuv V
quot;start_time": [ "08:45", "09:00"] > } > > Now you could do a bool query with must on start_time: > > { >"query": { > "bool": {"must": [ > {"term": { > "start_time&q

Re: Help with a Query DSL

2013-12-20 Thread Bijuv V
Any pointers on the same would help. Op vrijdag 20 december 2013 21:16:08 UTC+1 schreef Bijuv V: > > > I have the data in the following format in Elastic Search (from sense) > > POST slots/slot/1 > { > locationid:"1", > roomid:"10", >

Help with a Query DSL

2013-12-20 Thread Bijuv V
I have the data in the following format in Elastic Search (from sense) POST slots/slot/1 { locationid:"1", roomid:"10", starttime: "08:45" } POST slots/slot/2 { locationid:"1", roomid:"10", starttime: "09:00" } POST slots/slot/3 { locationid:"2",

Re: Fetching the results from two indexes - how to?

2013-12-19 Thread Bijuv V
erence/current/query-dsl-indices-query.html > - Multiple Indices > > http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/multi-index.html > > Does it make sense? > > -- > Jun Ohtani > > > 2013/12/19 Bijuv V > >> Can you suggest if this is possible

Re: Fetching the results from two indexes - how to?

2013-12-19 Thread Bijuv V
Can you suggest if this is possible or this is not possible using query DSL ? If you think its possible, a pointer would also help. Op donderdag 19 december 2013 01:35:24 UTC+1 schreef Bijuv V: > > I have some data indexed in Index 1 - for e.g - I have all of the routes > of a train

Fetching the results from two indexes - how to?

2013-12-18 Thread Bijuv V
I have some data indexed in Index 1 - for e.g - I have all of the routes of a train listed in Index 1. I can search the train that goes in a particular route by querying the index 1. This is ok. I have another index that has has the details of all trains that are under maintenance. So from