Skip to content

notexpected result type #1

@thesunshade

Description

@thesunshade

Use Case

Currently there is a bug in the search where even if partial search is turned off, it still does partial search in the titles of suttas.

For example searching for by:sujato cat with the match partial off returns 52 suttas. One of the results is for "A Delicate Lifestyle" AN3.39. When you go to the sutta and search it doesn't have the word "cat" in the text. However the title, "A DeliCATe Lifestyle" does.

So I would like a test like this:

[[test-case]]
description = "Do not match partial in text title "
match-partial = false
selected-languages = ["en"]
query = "by:sujato cat"
notexpected.sutta = "/an3.39/en/sujato"

With our current code base, this test will fail. But once the bug is fixed (and stays fixed!) it should pass.

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