From 427891191f18c089a68b242018321832e45e90bd Mon Sep 17 00:00:00 2001 From: Martijn van Groningen Date: Thu, 10 Sep 2015 11:23:47 +0200 Subject: [PATCH] test: fixed compile error due to https://github.com/elastic/elasticsearch/pull/13418 Original commit: elastic/x-pack-elasticsearch@24d22f23095a638f7f2898b4afedaf8cf8ac31c4 --- .../integration/ShieldCachePermissionTests.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/shield/src/test/java/org/elasticsearch/integration/ShieldCachePermissionTests.java b/shield/src/test/java/org/elasticsearch/integration/ShieldCachePermissionTests.java index 0c00d7e7ffc..ff6cded6c02 100644 --- a/shield/src/test/java/org/elasticsearch/integration/ShieldCachePermissionTests.java +++ b/shield/src/test/java/org/elasticsearch/integration/ShieldCachePermissionTests.java @@ -78,8 +78,7 @@ public class ShieldCachePermissionTests extends ShieldIntegTestCase { @Test public void testThatTermsFilterQueryDoesntLeakData() { - SearchResponse response = client().prepareSearch("data").setTypes("a").setQuery(QueryBuilders.filteredQuery( - QueryBuilders.matchAllQuery(), + SearchResponse response = client().prepareSearch("data").setTypes("a").setQuery(QueryBuilders.constantScoreQuery( QueryBuilders.termsLookupQuery("token") .lookupIndex("tokens") .lookupType("tokens") @@ -91,8 +90,7 @@ public class ShieldCachePermissionTests extends ShieldIntegTestCase { // Repeat with unauthorized user!!!! try { - response = client().prepareSearch("data").setTypes("a").setQuery(QueryBuilders.filteredQuery( - QueryBuilders.matchAllQuery(), + response = client().prepareSearch("data").setTypes("a").setQuery(QueryBuilders.constantScoreQuery( QueryBuilders.termsLookupQuery("token") .lookupIndex("tokens") .lookupType("tokens")