From 62ea45f2c9fe0c1cbc1e215f716b55a911fab048 Mon Sep 17 00:00:00 2001 From: Eric Tschetter Date: Thu, 13 Dec 2012 17:55:32 -0600 Subject: [PATCH] 1) Register SearchQueryDimFilter with DimFilter so that it can actually be used. --- .../src/main/java/com/metamx/druid/query/filter/DimFilter.java | 3 ++- .../com/metamx/druid/query/filter/SearchQueryDimFilter.java | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/client/src/main/java/com/metamx/druid/query/filter/DimFilter.java b/client/src/main/java/com/metamx/druid/query/filter/DimFilter.java index 5a6a6d79761..9dc819cb8ec 100644 --- a/client/src/main/java/com/metamx/druid/query/filter/DimFilter.java +++ b/client/src/main/java/com/metamx/druid/query/filter/DimFilter.java @@ -31,7 +31,8 @@ import org.codehaus.jackson.annotate.JsonTypeInfo; @JsonSubTypes.Type(name="not", value=NotDimFilter.class), @JsonSubTypes.Type(name="selector", value=SelectorDimFilter.class), @JsonSubTypes.Type(name="extraction", value=ExtractionDimFilter.class), - @JsonSubTypes.Type(name="regex", value=RegexDimFilter.class) + @JsonSubTypes.Type(name="regex", value=RegexDimFilter.class), + @JsonSubTypes.Type(name="search", value=SearchQueryDimFilter.class) }) public interface DimFilter { diff --git a/client/src/main/java/com/metamx/druid/query/filter/SearchQueryDimFilter.java b/client/src/main/java/com/metamx/druid/query/filter/SearchQueryDimFilter.java index dd3c57c33ca..b579acd87c5 100644 --- a/client/src/main/java/com/metamx/druid/query/filter/SearchQueryDimFilter.java +++ b/client/src/main/java/com/metamx/druid/query/filter/SearchQueryDimFilter.java @@ -34,7 +34,7 @@ public class SearchQueryDimFilter implements DimFilter public SearchQueryDimFilter( @JsonProperty("dimension") String dimension, - @JsonProperty("query")SearchQuerySpec query + @JsonProperty("query") SearchQuerySpec query ) { this.dimension = dimension;