i have field contains forward slashes. i'm trying execute query:
querybuildres.termquery("id", queryparser.escape("/my/field/val")) and cannot results. when i'm looking 'val' only, proper results. ideas why happening? of course without escaping doesn't return results.
update qp.escape parses string properly, when request goes elasticsearch it's double escaped
[2015-07-10 01:53:00,063][warn ][index.search.slowlog.query] [aaa aa] [index_name][4] took[420.8micros], took_millis[0], types[page], stats[], search_type[query_then_fetch], total_shards[5], source[{"query":{"term":{"pageid":"\\/path\\/and\\/testestest"}}}], extra_source[], update 2: works when i'm using querystring, wouldn't user , type hand.
you might have use _id instead of id
Comments
Post a Comment