From 673655cc7b7ab115257f75e64be4c9d918fc9144 Mon Sep 17 00:00:00 2001 From: Shay Banon Date: Tue, 18 Oct 2011 01:26:53 +0200 Subject: [PATCH] When searching against an index/type, use the type information to derive different search aspects, closes #1391. --- .../index/mapper/MapperService.java | 30 +++++++++++++++++++ .../index/query/NestedFilterParser.java | 2 +- .../index/query/NestedQueryParser.java | 2 +- .../index/query/QueryParseContext.java | 5 ++++ .../search/facet/FacetParseElement.java | 2 +- .../search/internal/SearchContext.java | 4 +++ 6 files changed, 42 insertions(+), 3 deletions(-) diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/index/mapper/MapperService.java b/modules/elasticsearch/src/main/java/org/elasticsearch/index/mapper/MapperService.java index 102f8619a06..5474d4a9480 100644 --- a/modules/elasticsearch/src/main/java/org/elasticsearch/index/mapper/MapperService.java +++ b/modules/elasticsearch/src/main/java/org/elasticsearch/index/mapper/MapperService.java @@ -446,6 +446,36 @@ public class MapperService extends AbstractIndexComponent implements Iterable