Skip to content

Instantly share code, notes, and snippets.

@treff7es
treff7es / error message
Created May 21, 2012 21:30
Facet search with _script property which is more than 2 level depth
curl -XGET http://localhost:9200/twitter/tweet/_search -d '{"query":{"query_string":{"query":"*"}},"facets":{"termStatFacet":{"terms":{"size":500,"script":"_source.prop.prop1"}}}}'
{"took":183,"timed_out":false,"_shards":{"total":5,"successful":3,"failed":2,"failures":[{"index":"twitter","shard":2,"status":500,"reason":"QueryPhaseExecutionException[[twitter][2]: query[ConstantScore(NotDeleted(cache(_type:tweet)))],from[0],size[10]: Query Failed [Failed to execute main query]]; nested: PropertyAccessException[[Error: could not access: prop; in class: org.elasticsearch.search.lookup.SourceLookup]\n[Near : {... _source.prop.prop1 ....}]\n ^\n[Line: 1, Column: 1]]; "},{"index":"twitter","shard":3,"status":500,"reason":"RemoteTransportException[[Thor][inet[/10.0.1.5:9301]][search/phase/query]]; nested: QueryPhaseExecutionException[[twitter][3]: query[ConstantScore(NotDeleted(cache(_type:tweet)))],from[0],size[10]: Query Failed [Failed to execute main query]]; nested: PropertyAccessException[[Error: co
@treff7es
treff7es / config1
Created January 17, 2012 20:06
my "does not have us registered with it..." issue
transport.tcp.port: 9301
discovery.zen.ping.multicast.enabled: false
discovery.zen.ping.unicast.hosts: ["localhost:9300"]