LUCENE-1285: WeightedSpanTermExtractor incorrectly treats the same terms occurring in different query types