Skip to content

full-text search: add a section about how search compares to contains #2211

@matthewmueller

Description

@matthewmueller

Under the hood contains uses LIKE, search uses the full-text search capabilities of the database.

https://stackoverflow.com/questions/224714/what-is-full-text-search-vs-like

Full-Text Search also does stemming, given "Quick brown fox"

  • contains: "foxes" will return nothing
  • search: "foxes" will return the result

Also if you add indexes, full text search can be quite a bit faster for querying.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/docsDocumentation creation, updates or corrections

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions