Bug: Not showing correct content when hovering over a footnote in Search Results

The circled footnotes "Prophets" are the only ones displaying the correct hover content (below).

image

If the word "prophets" is not part of the query eg. <bible ~ 2 Kings 8-19>, then the hover display is correct.

Dave
===

Windows 11 & Android 13

Comments

  • NetworkGeek
    NetworkGeek Member Posts: 3,813 ✭✭✭

    I can duplicate this bug on my system too.

  • Mark Barnes
    Mark Barnes Member Posts: 15,432 ✭✭✭

    How interesting. This query should return very few results of course (just finding results where prophets and a reference to 2 Kings are found in the same footnote). Which is exactly what's happening on my computer (but not yours). So I guess that means you're having the same problem with prophets, as Rosie and I are having with churches. The bug is not the display of the results, as the results are invalid anyway.

    This is my personal Faithlife account. On 1 March 2022, I started working for Faithlife, and have a new 'official' user account. Posts on this account shouldn't be taken as official Faithlife views!

  • Melissa Snyder
    Melissa Snyder Member Posts: 4,702 ✭✭✭

    We thought this bug was fixed in 4.2 B2, but apparently there are still some outstanding instances. I'll let development know. Thanks.

  • Dave Hooton
    Dave Hooton MVP Posts: 36,339

    So I guess that means you're having the same problem with prophets, as Rosie and I are having with churches.

    The results are valid. The query only returns 167 results in 21 of my library resources.  <bible ~ 2 Kings 8-19>  returns  65,810 results in 433 resources.

     <bible ~ 2 Kings 8-19> ANDEQUALS church  returns 71 results in footnotes of 8 resources; some are numbered and the rest (44) are in Reformation Study Bible eg. "prophets"!

    I rebuilt my library index after the problem with HCSB OT-Quotes.

    Dave
    ===

    Windows 11 & Android 13

  • Mark Barnes
    Mark Barnes Member Posts: 15,432 ✭✭✭

    I rebuilt my library index after the problem with HCSB OT-Quotes.

    So did I!

    This is my personal Faithlife account. On 1 March 2022, I started working for Faithlife, and have a new 'official' user account. Posts on this account shouldn't be taken as official Faithlife views!

  • Bradley Grainger (Logos)
    Bradley Grainger (Logos) Administrator, Logos Employee Posts: 12,191

    The circled footnotes "Prophets" are the only ones displaying the correct hover content (below).

    [snip]

    If the word "prophets" is not part of the query eg. <bible ~ 2 Kings 8-19>, then the hover display is correct.

    The "bug" is occurring because the word appears both in the surface text (when means "display the article text on hover") and in the footnote (which means "display the footnote text on hover"). We can't do both, so the search engine (possibly arbitrarily) picks one behaviour. It may be possible to coerce it into choosing one behaviour over another.

  • Dave Hooton
    Dave Hooton MVP Posts: 36,339

    The "bug" is occurring because the word appears both in the surface text (when means "display the article text on hover") and in the footnote (which means "display the footnote text on hover").

    Results for <bible = Jn 3>  show consistently incorrect text on hover ie. it chooses article text in any form eg. John 3 and 3.

    Dave
    ===

    Windows 11 & Android 13

  • Bradley Grainger (Logos)
    Bradley Grainger (Logos) Administrator, Logos Employee Posts: 12,191

    Results for <bible = Jn 3>  show consistently incorrect text on hover ie. it chooses article text in any form eg. John 3 and 3.

    The search result hit is in the surface text of the resource, so the hover tip shows the surrounding text at the search hit location. (The only alternative I can think of is that the search hover tip would show you the text of John 3 from your preferred Bible instead—is this what you're expecting?)

    The same thing will happen if you search for a Strong's Number or Josephus reference or any other hyperlinked data type: the search results tooltip shows the context of the search hit, not the ultimate destination of any hyperlink that the search hit may have happened to coincide with.

  • Dave Hooton
    Dave Hooton MVP Posts: 36,339

    The search result hit is in the surface text of the resource, so the hover tip shows the surrounding text at the search hit location. (The only alternative I can think of is that the search hover tip would show you the text of John 3 from your preferred Bible instead—is this what you're expecting?)

    It was, but it makes more sense to not complicate Search Results for data types that are only in the surface text. I would rather see the footnote text when the result (eg. prophets) is also in the surface text. 

    Example (Reformation Study Bible):

    34:10-12 See note 18:15-19; “Prophets” at 18:18.  --> where "Prophets" is a footnote and both bible references (18:) are for articles in the resource!

    .

    Dave
    ===

    Windows 11 & Android 13

  • Bradley Grainger (Logos)
    Bradley Grainger (Logos) Administrator, Logos Employee Posts: 12,191

    I would rather see the footnote text when the result (eg. prophets) is also in the surface text. 

    Right, it would be nice to be consistent (e.g., always show footnote text on hover if at least one of the hits is in the footnote text), but I haven't looked into the code to see how difficult this would be. (It may be that the search engine arbitrarily discards hits at the "same" position at a low level before the result presentation code decides which tooltip to show based on whether the hit is in surface or non-surface text.) I think this should be possible, but it's a bit of an edge condition (and lower priority than some other bugs we want to fix).

This discussion has been closed.