elasticsearch/elasticsearch — pull request #2099 by imotov (2012-07-11 18:21:53+00:00)
Title: Query Parser caching does not take types into account

The QueryParserSettings class that is [used as a key](https://github.com/elasticsearch/elasticsearch/blob/3bf55a0858c17ac48208210dd71a84a6fde35dbf/src/main/java/org/elasticsearch/index/query/QueryStringQueryParser.java#L202) in the parser cache doesn't contain any information about types that the cached query was parsed on. As a result some type-specific cached queries might be reused with wrong types.

The problem can be reproduced with _id:1234 queries: https://gist.github.com/b36137fb228eb54db8ce