Description
The Property2Index filters by node type, so each index only contains data for a list of node types.
But the getCost and and query methods ignore the node type.
Because of that, if there are multiple indexes for the same property, each index filtering on certain node types, then running a query might pick the wrong index.
The result is that the query doesn't return any data where it should, because the index doesn't return the right nodes.