Skip to content

Index multiple columns within one index #80

@SteveLauC

Description

@SteveLauC

Hi there, will pg_textsearch allow indexes over multiple columns? Like what Elasticsearch does. In this case, a term is a combination of "column" and "term", this allows better performance for queries like:

title:postgres AND body:search

because terms "title:postgres" and "body:search" belong to the same index, we can simply fetch the IDs of the documents that contain them, intersect the IDs, then return. The con of this design is that an update to a column needs us to re-index all the columns (the whole document in ES's term).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions