Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix and improve highlighting of independent fields and TVs #88

Open
wants to merge 1 commit into
base: Development
Choose a base branch
from

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