BUG: Filter library for name "Martin Luther King" doesn't find this book

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

But I do have a book by MLK in my library. I have to do something convoluted with his name to find it:

Maybe it's because there's no comma in his name before "Jr." as is the case with other authors who have a "Jr." in their name:

Tagged:

Comments

  • SineNomine
    SineNomine Member Posts: 7,043

    Looks like an easy issue for Kyle to fix to me.

    “The trouble is that everyone talks about reforming others and no one thinks about reforming himself.” St. Peter of Alcántara

  • Andrew Batishko
    Andrew Batishko Member, Community Manager, Logos Employee Posts: 5,366

    author:"martin luther king" fails to find the resource because your quotes indicate that you are looking for that exact phrase with the words in the specified order.

    Unfortunately, the author fields are treated as simple strings at this time, meaning that the search doesn't have the ability to reorder them to match your desired first name, middle, last pattern.

    Andrew Batishko | Logos software developer

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

    author:"martin luther king" fails to find the resource because your quotes indicate that you are looking for that exact phrase with the words in the specified order.

    Unfortunately, the author fields are treated as simple strings at this time, meaning that the search doesn't have the ability to reorder them to match your desired first name, middle, last pattern.

    That isn't strictly true for author names. There's always been some sort of smarts in the code to figure out what author you mean whether you put the name in "first last" order or "last, first". There are many times when you need to put the full name in quotes because both first and last name are very common in other authors and you want to limit the results to just the author you're looking for. For example, this filter works as I would expect:

    It even works for other authors who have "Jr." at the end of their name, when it's separate from the rest of the name with a comma:

    The difference, with the one above by Martin Luther King, Jr., is that the author shows up as "King, Martin Luther Jr." rather than "King, Martin Luther, Jr." I suspect that if the name had the comma in it before "Jr." like with "Mohler, R. Albert, Jr.", then the code would work as expected. So I think it's a resource error, in fact.

    Kyle?

  • Andrew Batishko
    Andrew Batishko Member, Community Manager, Logos Employee Posts: 5,366

    That isn't strictly true for author names.

    Ah, you are correct! There is special handling for names here, an the problem is indeed the lack of comma, which causes it to think the "Jr" is a middle name.

    I'll let Kyle know so he can correct the metadata.

    Andrew Batishko | Logos software developer