• GitHub
  • Documentation
  • Discord
  • Tip
search
  • chevron_right Threads
  • label Support

Help needed: How can I change the forum's search logic to partial matching

Clifford9547
Sept. 1, 2024
chat_bubble_outline 3
  • link
    Clifford9547
    Members 8 posts
    Sept. 1, 2024, 9:24 a.m. Sept. 1, 2024, 9:24 a.m.
    link

    How can I change the forum's search logic to partial matching? My website seems to only search for exact matches, which is different from the logic used on your site.

    Deleted likes this.

    favorite 1

  • link
    rafalp
    Project Lead 2027 posts
    Sept. 1, 2024, 1:26 p.m. Sept. 1, 2024, 1:26 p.m.
    link

    If your site's locale prefix was set on installation to either of following, PostgreSQL Search will use search configuration specific to it:

    • en
    • nl
    • fi
    • fr
    • de
    • hu
    • it
    • no
    • nb
    • nn
    • pt
    • ro
    • ru
    • es
    • sv
    • tt

    This site runs en-us locale and en prefix is on the list, so PostgreSQL uses english search configuration.

    If your site's locale is not on the list, PostgreSQL will use simple search config which is... less than optimal ;)

    Deleted and Clifford9547 like this.

    favorite 2

  • link
    Clifford9547
    Members 8 posts
    Sept. 1, 2024, 2:16 p.m. Sept. 1, 2024, 2:16 p.m.
    link

    thanks, I understand

  • link
    rafalp
    Project Lead 2027 posts
    Sept. 1, 2024, 4:38 p.m. Sept. 1, 2024, 4:38 p.m.
    link

    To add, the logic I’ve described works only for misago-docker. Custom setups need to configure this themselves.

arrow_upward Go to top
  • This site uses cookies to gather statistical data for use in traffic analysis.
  • GitHub
  • Documentation
  • Discord
  • Tip
  • Terms of service
  • Privacy policy
powered by misago