Skip to content

Conversation

@BenceSzalai
Copy link

@BenceSzalai BenceSzalai commented Jan 15, 2020

Fix: The extracts are searched and extracted from each resource fields individually, so when the &showExtract property of the AdvSearch snippet contains multiple fields and TVs they are examined independently. This help to avoid multiple issues. E.g. &showExtract=`3:content,pagetitle`, and there's a search term match at the beginning of the pagetitle, the extract was showing the end of content concatenated to the beginning of the pagetitle, also worse, if the ending of content concatenated with the beginning of pagetitle created a match, it was shown as a highlight, while in reality none of the two has a match.

…s individually, so when the &showExtract property if the AdvSearch snippet contains multiple fields and TVs they are examined independently. This help to avoid multiple issues. E.g. &showExtract=`3:content,pagetitle`, and there's a search term match at the beginning of the pagetitle, the extract would show the end of content concatenated to the beginning of the pagetitle, also worse, if the ending of content concatenated with the beginning of pagetitle create a match, it'd be shown as a highlight, while in reality none of the two has a match.
@BenceSzalai BenceSzalai changed the title Fis and improve highlighting of independent fields and TVs Fix and improve highlighting of independent fields and TVs Jan 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants