Skip to content

With update to Grav 1.7.22, TNTSearch now appears to fail when you type in an entire word/string #121

@fseesink

Description

@fseesink

So was tinkering with TNTSearch recently, and all was working well. In fact, a bit TOO well. 😀 The default filter for TNTSearch (- [email protected]) has it index ALL the pages on the site, which in my case had it indexing draft pages I wasn't showing in the menu (since they were drafts and not done yet). So someone could search the site and find posts that weren't really done yet.

So I tinkered with the filter so it only indexed my blog posts and root pages. That all worked fantastically. All this while I was using Grav 1.7.18, then 1.7.20, then 1.7.21. (I've been dealing with other issues related to those.)

Then today, with the updates to Grav 1.7.22 and Admin Panel 1.10.22, I noticed the same search pattern I'd used before wasn't finding both blog posts it found before. And I KNOW the pattern exists in both.

Digging further, what I found was that it would show search results as you typed in a search word like "today"... "t"... "to"..."tod"... dynamically updating as you'd expect. But the moment you typed the last letter in the word ("y" in the case of "today"), suddenly no results! This was not the case just the other day. This is why I mention Grav 1.7.22.

I've tried a few other strings I know to exist, and the same thing is happening with them as far as I can tell. It's ok searching a partial string/word, but the moment you enter the whole thing, it's as if things no longer match. Very odd.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions