5.1a: BUG: Quoted Library filter spans across fields when it shouldn't.

Rosie Perera
Rosie Perera Member Posts: 26,202 ✭✭✭✭✭
edited November 20 in English Forum

I filtered my library to see if I had a tag called "NTStudies-Paul":

I didn't, but it found a book nonetheless. I found that odd. My tags for that book are as follows:

Trying to figure out how it was picked up by "NTStudies-Paul," I tried it with a space instead of a hyphen. Same result.

Then I tried mytag:"NTStudies Paul"; that didn't find it. So I tried tag:"NTStudies Paul"; that did find it. Hmm, the plot thickens.

The community tags for this book are as follows (no "NTStudies" in there at all).

I figured that what must have happened is that my NTStudies tag which is the last of my tags was abutted up against the first of the community tags (paul) such that the phrase "NTStudies Paul" matched.

Tried another experiment: "paul theology" to see if it would match this book (which has those two tags adjacent to each other), and voila, it matched.

Tried another experiment: "earlychurchfathers hermeneutics" and sure enough, it confirms my theory:

A filter with quotes around it should match only an exact phrase, and should not span across different fields or different tags. Unexpected results could ensue.

Comments

  • NB.Mick
    NB.Mick MVP Posts: 15,972

    A filter with quotes around it should match only an exact phrase

    I think we had this topic come up in another search-related bug-nonbug discussion. Back then, Bradley explained that the Logos search engine does break up search terms in quotes since the match actually runs against the index which contains no punctuation and no text strings, but only words.

    Thus I assume, your examples might prove to Logos "works as designed" (even not as "as expected"). 

    Forgive my ignorance, but with your mytag: vs tag: search you seem to actually disprove your thread title, since the community tags are not interpreted as mytags (spanning the field), however, as I see it, the isssue is that the text within qoutes should come from one of the tags, not be aggregated from multiple partial hits from several tags.  

    Have joy in the Lord! Smile

  • Dave Hooton
    Dave Hooton MVP Posts: 35,770

    A filter with quotes around it should match only an exact phrase

    I agree it should match within a single field/tag. But it is complicated by the use of the hyphens e.g. "N.T.1-John" will find N.T.1 John in Subjects, and "N.T.-commentaries" will find N.T.--commentaries in Subjects. So if a phrase is to be an exact match then use of these terms will be wrecked.

    Also, "bible-illustrations-pictorial" will match bible--illustrations.; pictorial works.  ==> spanning two values in Subjects. So how exact do you want it to be?  Strict match = "bible-illustrations-pictorial-works" or no match because it is not the same as bible-illustrations AND pictorial-works?

    Dave
    ===

    Windows 11 & Android 13

  • Rosie Perera
    Rosie Perera Member Posts: 26,202 ✭✭✭✭✭

    NB.Mick said:

    Forgive my ignorance, but with your mytag: vs tag: search you seem to actually disprove your thread title, since the community tags are not interpreted as mytags (spanning the field),

    Yes, community tags also have this behavior of quoted search strings spanning multiple tags which I think is weird even if it's by design.

    NB.Mick said:

    however, as I see it, the isssue is that the text within qoutes should come from one of the tags, not be aggregated from multiple partial hits from several tags.  

    Yes, that's precisely the issue I was trying to communicate, but I didn't state it as succinctly as you did.

    I agree it should match within a single field/tag. But it is complicated by the use of the hyphens e.g. "N.T.1-John" will find N.T.1 John in Subjects, and "N.T.-commentaries" will find N.T.--commentaries in Subjects. So if a phrase is to be an exact match then use of these terms will be wrecked.

    No, it wouldn't be wrecked. I meant exact match ignoring punctuation. I know that punctuation is treated specially or ignored, as is the case for phrase searches in the Search tab. And of course I meant it could be a substring of the tag (for example "bible-illustrations" should match "bible-illustrations-pictorial-works")

    Also, "bible-illustrations-pictorial" will match bible--illustrations.; pictorial works.  ==> spanning two values in Subjects. So how exact do you want it to be?  Strict match = "bible-illustrations-pictorial-works" or no match because it is not the same as bible-illustrations AND pictorial-works?

    I would not want it to span two values. If I had entered "bible-illustrations" AND "pictorial-works" I would expect it to match resources with either bible--illustrations.; pictorial works or with bible-illustrations-pictorial-works in their metadata. However, I would expect "bible-illustrations-pictorial-works" to match only the latter.

  • Dylan Rondeau
    Dylan Rondeau Member, Logos Employee Posts: 1,401

    NB.Mick said:

    the isssue is that the text within qoutes should come from one of the tags, not be aggregated from multiple partial hits from several tags.  

    I have created a case for development to investigate this issue, and linked to this thread.

    Dylan Rondeau, Software Tester

    Enable Logging: Mac | Windows (Right-click "Save As...")

  • Dave Hooton
    Dave Hooton MVP Posts: 35,770

    Dave
    ===

    Windows 11 & Android 13

  • Dylan Rondeau
    Dylan Rondeau Member, Logos Employee Posts: 1,401

    NB.Mick said:

    the isssue is that the text within qoutes should come from one of the tags, not be aggregated from multiple partial hits from several tags.  

    This should be fixed in 5.2 Beta 1 and a Stable release to follow.

    Dylan Rondeau, Software Tester

    Enable Logging: Mac | Windows (Right-click "Save As...")