Open daliboris opened 1 year ago
I wonder if this is related to this @daliboris - https://github.com/eXist-db/exist/issues/4789#issuecomment-1458067100 and potentially this - https://github.com/eXist-db/exist/issues/4584
I have added new tests for the inline elements and for deeply nested elements (3 levels). Based on the results I assume that:
Describe the bug
If an element contains multiple found items, after calling
util:expand()
function, only the last matched item in the the parent element is expanded/highlighted.Expected behavior I would expect a function like
util:expand
to highlight all matches in full text hits.To Reproduce
There are multiple scenarios:
$t:XML-multiple-nested
,$t:XML-three-in-three
$t:XML-multiple-nested
$t:XML-two-in-one
$t:XML-two-in-two
$t:XML-three-different-elements
All elements containing search text are found, but not all occurrences are matched with
util:expand
function. It seems that only item in the last nested element is matched:If there are two occurences of search text in one element, both of them are matched:
but not if there are mupltiple elements with matched text:
Context (please always complete the following information) One option is to use xst, and copy and paste the output produced by running
xst info
here:**Additional context
conf.xml
? No.