In https://gerrit.wikimedia.org/r/#/c/197397/ it was observed that highlighting isn't working correctly for phrase prefix queries.
To do:
- Define desired highlighting behavior for phrase prefix queries
- Make it so, Number One
• Jdouglas | |
Mar 17 2015, 9:22 PM |
F109777: 2015-04-07-134830_655x246_scrot.png | |
Apr 7 2015, 8:49 PM |
F107915: 2015-04-01-142115_829x277_scrot.png | |
Apr 1 2015, 9:21 PM |
F107495: 2015-03-31-105056_774x273_scrot.png | |
Mar 31 2015, 5:51 PM |
F107483: 2015-03-31-101523_765x459_scrot.png | |
Mar 31 2015, 5:17 PM |
F99597: 2015-03-17-140557_708x290_scrot.png | |
Mar 17 2015, 9:25 PM |
In https://gerrit.wikimedia.org/r/#/c/197397/ it was observed that highlighting isn't working correctly for phrase prefix queries.
To do:
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Invalid | None | T88724 EPIC: CirrusSearch: various undesirables detected in Russian Wikipedia | |||
Resolved | • Jdouglas | T93014 CirrusSearch: Fix highlighting for phrase prefix queries |
Here's what I see with the current patch in https://gerrit.wikimedia.org/r/#/c/197397/:
Seaching for "programming is ref*" highlights the phrase programming is referential in Functional programming is referential transparency.
Oh, actually, that looks like its working.... Are you using the experimental highlighter?
Ok - so this is an error in the highlighter I think. It must not know what to do with these queries. Its actually a reasonably fix - we reproduce it with the unit tests in https://github.com/wikimedia/search-highlighter and then fix it and backport the fix to the 1.3 branch there because we're still running Elasticsearch 1.3.
Now I'm having trouble reproducing this locally with the patch in https://gerrit.wikimedia.org/r/#/c/197397/:
This problem appears to be twofold:
This gets us halfway there: https://gerrit.wikimedia.org/r/#/c/201350/
Still to figure out - why phrase prefix highlighting is working for the title, but not the text.