It helps to provide the exact steps that you were trying, otherwise we are left to guess. I tried your example and it worked, but then I probably did it in a slightly different way.
I think the likeliest problem is that you are creating the percolator queries before you index a document or setup the mapping? That means that (eg) the site_id clause defaults to using a string query, because it doesn't have a mapping to refer to to figure out that it is a long field. If you setup the mapping before registering the percolation queries, then things should work correctly. -- 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...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAPt3XKT_EpQO3PnH-MACPOCQYWMw9oeWnQWhOQDybc1JQ2y3TA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.