Page MenuHomePhabricator

Add setup warning for ft_boolean_syntax for installs using MySQL search
Closed, ResolvedPublic

Description

If MySQL search is used, the MySQL value ft_boolean_syntax should be set to:

ft_boolean_syntax = ' |-><()~*:""&^'

This makes MySQL search default to "AND" (sensible, desired) instead of "OR" (basically useless).


One thing we've been having some difficulty with is that there doesn't seem to be the ability to search for keywords in Maniphest and require all the search terms to show up in each result. For example, our iOS QA engineer might want to search for all the tasks that have both "iOS" and "backup" but not just one or the other. If there were a way to do that, that'd be very helpful.

Event Timeline

ahoffer2 raised the priority of this task from to Needs Triage.
ahoffer2 updated the task description. (Show Details)
ahoffer2 added projects: Search, Maniphest.
ahoffer2 added subscribers: ahoffer2, epriestley.

I think search already works like this? It depends on some configuration settings, but, for example, if you search for "search" on this install, you get 100+ results:

https://secure.phabricator.com/maniphest/query/D_ERwGYnPfxC/#R

Searching for "search words" returns only 4 results, i.e. the executed search is equivalent to "search AND words":

https://secure.phabricator.com/maniphest/query/L9BQBAq.aUPJ/#R

Am I misunderstanding?

Huh, our install definitely treats it as an OR. Do you know which configuration settings I should be looking at to control it?

epriestley renamed this task from Create "all of these words" or AND based search to Add setup warning for ft_boolean_syntax for installs using MySQL search .Dec 14 2014, 11:38 AM
epriestley updated the task description. (Show Details)

If you're using the MySQL index (I think you are), the MySQL configuration value ft_boolean_syntax should be set per the edited task description. We'll add a setup warning to make this more clear to administrators.

Until that gets fixed, I would expect the search +ios +backup to behave like you want (that is, prefix each term with "+" to force AND mode).

Thanks! The + thing didn't work but I've just asked the team that owns the Phabricator install to change the config setting.

epriestley claimed this task.

Presuming resolved by D11030.