Skip to content

free-text search with unquoted, space-separated terms does not work #386

@hrodmn

Description

@hrodmn

If you pass "q": "word1 word2" to a search, it will fail with a tsquery syntax error. If the phrase is quoted (e.g. `"q": ""word1 word2""), it works but it is a slightly different search.

To stay compliant with the OGC specification for the q parameter I think we should represent space-separated terms (without other operators) using the adjacency operator <->.

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