Skip to content

Commit

Permalink
Query DSL: prefix query to support _id, closes elastic#1648. (fix sup…
Browse files Browse the repository at this point in the history
…port analysis for prefix is configured)
  • Loading branch information
kimchy committed Jan 29, 2012
1 parent 49b6d70 commit 25763e2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -214,12 +214,12 @@ protected Query getPrefixQuery(String field, String termStr) throws ParseExcepti
}
}
if (query == null) {
query = super.getPrefixQuery(currentMapper.names().indexName(), termStr);
query = getPossiblyAnalyzedPrefixQuery(currentMapper.names().indexName(), termStr);
}
return wrapSmartNameQuery(query, fieldMappers, parseContext);
}
}
return super.getPrefixQuery(field, termStr);
return getPossiblyAnalyzedPrefixQuery(field, termStr);
} finally {
analyzer = oldAnalyzer;
}
Expand Down

0 comments on commit 25763e2

Please sign in to comment.