Is library filtering the "#" character properly?

Lew Worthington
Lew Worthington Member Posts: 1,538 ✭✭✭

I wanted to filter my library by "mytag:#ReadLater". I have distilled all of my custom tags so that only "#ReadLater" uses the "#" character. However, when I typed "mytag:#Read", I had a number of books show up in my library that did not include "#"; things like "Greek Reading Exercises" showed up. (By extension, typing "mytag:#" doesn't filter anything out at all.)

Is this expected behavior?

Tagged:

Comments

  • Dave Hooton
    Dave Hooton MVP Posts: 35,765

    I don't experience that behaviour.
    Try {MyTag "#Read"} as it returns only the exact expression.

    Dave
    ===

    Windows 11 & Android 13

  • DMB
    DMB Member Posts: 13,613 ✭✭✭

    OK, I've had issues similar to Lew over the years, so I was hoping to get some 'learnin'. However, using #test and test, as a test (with and without the '#' sign):

    • Clicking on the tag column in the library, sorts #test correctly (separate from test). Good.
    • Typing #test as a filter ignores the # sign; pulls both tests
    • mytag:#test and mytag:"#test" are synonymous (ignore the # sign and pull both tests)
    • {mytag "#test"} doesn't pull anything (Dave's example; maybe I'm misunderstanding)

    So, it seems to me, I'm still confused!

    "If myth is ideology in narrative form, then scholarship is myth with footnotes." B. Lincolm 1999.

  • Lew Worthington
    Lew Worthington Member Posts: 1,538 ✭✭✭

    Thanks for the responses, you two!

    I still wonder if it's a bug. I normally use quotation marks when I want an exact match, but it was always my understanding that a character string with no spaces did not require them; it was that confusion that led to the question. I'll confess, though, that the {MyTag "#Read"} syntax is new to me. I may have known it at one point, but I've successfully and effectively forgotten it.

    Also, as DMB suggests (at least this is my inference), I would've expected the column to sort by the same rules as the filter.

  • Willem J. de Wit
    Willem J. de Wit Member Posts: 20 ✭✭

    You can make things easier by using a digit instead of a # in your tags: e.g., 0read .
    If you just type 0r (without mytag: in front of it), you will already be filtering your library for this tag.

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

    Yes, this is expected behavior.

    The column sort operates on the exact value, which is also what the {MyTag "#Read"} syntax (and the facet from the sidebar) operates on.

    The myTag:"#Read" (and #Read) syntax operates on indexed data, which generally ignores punctuation characters like #.

    Andrew Batishko | Logos software developer

  • Lew Worthington
    Lew Worthington Member Posts: 1,538 ✭✭✭

    Thanks for the explanation, @Andrew Batishko.

    @Willem J. de Wit, I think the #ReadLater tag is a standard tag that happens automatically if you "Add to read later".

    And thanks everyone for the discussion.

  • Dave Hooton
    Dave Hooton MVP Posts: 35,765

    {mytag "#test"} has to be {MyTag "#test"} as both the field name and the value have to be exact.

    Dave
    ===

    Windows 11 & Android 13

  • DMB
    DMB Member Posts: 13,613 ✭✭✭

    Wow! I always do a conversion in my app for my stupid user (me).

    And thank you

    "If myth is ideology in narrative form, then scholarship is myth with footnotes." B. Lincolm 1999.