Skip to content
Browse files

Text Query does not use search_analyzer on field that is prefixed wit…

…h the type name, closes #1390.
  • Loading branch information...
1 parent 1012f6a commit 036710342323b14315b7f683299324ab5f2d62b4 @kimchy kimchy committed Oct 12, 2011
View
3 modules/elasticsearch/src/main/java/org/elasticsearch/index/search/TextQueryParser.java
@@ -130,6 +130,9 @@ public Query parse(Type type) {
if (mapper != null) {
analyzer = mapper.searchAnalyzer();
}
+ if (analyzer == null && smartNameFieldMappers != null && smartNameFieldMappers.docMapper() != null) {
+ analyzer = smartNameFieldMappers.docMapper().searchAnalyzer();
+ }
if (analyzer == null) {
analyzer = parseContext.mapperService().searchAnalyzer();
}

0 comments on commit 0367103

Please sign in to comment.
Something went wrong with that request. Please try again.