mozilla/kitsune — pull request #1551 by mythmon (2013-08-08 21:10:42+00:00)
Title: [Bug 876912] Fix document summary highlighting.

This fixes problems with highlighting in non-English languages. The problem is that if `'term_vector': 'with_positions_offsets'` is not set, the field is reanalyzed for highlighting ,and that reanalysis (apparently) did not take into account the locale specific analyzer. Using position offsets skips the reanalysis of the field, so it keeps the correct information from stemming and stop words.

This is technically a mapping change, but the code will work equally well with both the new and the old mapping, so a step1/step2 is not strictly needed, I think. Do we re-index documents occasionally when we re-parse the wiki? If so, the changes will be picked up then. Otherwise we might have to do a mapping switcheroo, which would be annoying.

r?