1) Register SearchQueryDimFilter with DimFilter so that it can actually be used.

This commit is contained in:
Eric Tschetter 2012-12-13 17:55:32 -06:00
parent 4bc721f3b3
commit 62ea45f2c9
2 changed files with 3 additions and 2 deletions

View File

@ -31,7 +31,8 @@ import org.codehaus.jackson.annotate.JsonTypeInfo;
@JsonSubTypes.Type(name="not", value=NotDimFilter.class), @JsonSubTypes.Type(name="not", value=NotDimFilter.class),
@JsonSubTypes.Type(name="selector", value=SelectorDimFilter.class), @JsonSubTypes.Type(name="selector", value=SelectorDimFilter.class),
@JsonSubTypes.Type(name="extraction", value=ExtractionDimFilter.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 public interface DimFilter
{ {

View File

@ -34,7 +34,7 @@ public class SearchQueryDimFilter implements DimFilter
public SearchQueryDimFilter( public SearchQueryDimFilter(
@JsonProperty("dimension") String dimension, @JsonProperty("dimension") String dimension,
@JsonProperty("query")SearchQuerySpec query @JsonProperty("query") SearchQuerySpec query
) )
{ {
this.dimension = dimension; this.dimension = dimension;