Я использую Lucene.Net 2.9.2. Я хочу использовать функцию выделение для реализации этой функции:
highlighter.Keyword = "wiping citroen berlingo";
highlighter.StartTag = "<span>";
highlighter.EndTag = "</span>";
var text = "The Citroen Berlingo has two windscreen wipers at the front and one wiper at the back. They're great for wiping stuff away.";
Я хотел этот результат:
"The <span>Citroen</span> <span>Berlingo</span> has two windscreen <span>wipers</span> at the front and one <span>wiper</span> at the back. They're great for <span>wiping</span> stuff away."
Но я получил это:
"The <span>Citroen</span> <span>Berlingo</span> has two windscreen wipers at the front and one wiper at the back. They're great for **<span>wiping</span>** stuff away."
Что может быть причиной этой разницы?