Re: Wrong paging with embedded es instance

2014-06-06 Thread Дмитрий Киселев
@elasticsearchfr / @scrutmydocs > > Le 6 juin 2014 à 20:26, Дмитрий Киселев a > écrit : > > I asked for 5 docs. > > With 1 shard - I got 5 docs. > With 5 shards - I got 25 docs. > With 5 shards, using curl instead of embedded java client - I got 5 docs. > >

Re: Wrong paging with embedded es instance

2014-06-06 Thread Дмитрий Киселев
missing something I guess. > > > -- > David ;-) > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs > > Le 6 juin 2014 à 20:02, Дмитрий Киселев a > écrit : > > Sorry, there littlebit different dataset. > Here is answer with same data and 1 shard

Re: Wrong paging with embedded es instance

2014-06-06 Thread Дмитрий Киселев
hit number is really inconsistent: > > With one shard you get: 656523 > With 5 shards you get: 3879 > > I think you are doing something wrong but I can't tell more without > looking at the full source code. > Could you share how you actually execute the query? > >

Re: Wrong paging with embedded es instance

2014-06-06 Thread Дмитрий Киселев
; : "gazetteer", "_type" : "location", "_id" : "adrpnt-0007815983-w175372179-regular", "_score" : 1.0 }, { "_index" : "gazetteer", "_type" : "location", "

Re: Wrong paging with embedded es instance

2014-06-06 Thread Дмитрий Киселев
Yep. System.out.println(searchQ.toString()); { "from" : 0, "size" : 5, "query" : { "match_all" : { } }, "explain" : false, "fields" : [ ] } Also, I think it's might be connected with sharding. I've tried to change number_of_shards to 1 and paging starts act as I expect. Set numb

Wrong paging with embedded es instance

2014-06-06 Thread Дмитрий Киселев
Hi everyone. I use embedded ES node as part of java application. Node node = nodeBuilder().clusterName("OSM-Gazetteer").node(); Client client = node.client(); I try to fetch some data paged. SearchRequestBuilder searchQ = client.prepareSearch("gazetteer") .setSearchType(SearchTy

Re: geo_shape type

2014-05-16 Thread Дмитрий Киселев
Got it. I was miss JTS dependency. com.vividsolutions jts 1.13 -- 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: geo_shape type

2014-05-16 Thread Дмитрий Киселев
Hi everyone. I have got exactly the same error org.elasticsearch.index.mapper.MapperParsingException: No handler for type [geo_shape] declared on field [full_geometry] This is a part of mapping "center_point": { "type": "geo_point", "index": "not_analyzed" }, "full_geometry": { "typ