From 0f4751875250d93f185df4e6387390939c6efaa6 Mon Sep 17 00:00:00 2001 From: Shay Banon Date: Mon, 18 Jun 2012 15:04:49 +0200 Subject: [PATCH] add getTerms for uid filter --- src/main/java/org/elasticsearch/index/search/UidFilter.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/org/elasticsearch/index/search/UidFilter.java b/src/main/java/org/elasticsearch/index/search/UidFilter.java index babcc4e8824..b0f6a343b40 100644 --- a/src/main/java/org/elasticsearch/index/search/UidFilter.java +++ b/src/main/java/org/elasticsearch/index/search/UidFilter.java @@ -57,6 +57,10 @@ public class UidFilter extends Filter { } } + public Term[] getTerms() { + return this.uids; + } + // TODO Optimizations // - If we have a single id, we can create a SingleIdDocIdSet to save on mem // - We can use sorted int array DocIdSet to reserve memory compared to OpenBitSet in some cases