Page MenuHomePhabricator

Make it more clear to users how to rebuild search indexes after adding search support to custom fields
Open, LowPublic

Description

Created a severity custom field for maniphest with below json:

"mycompany:company-severity": {

"name": "Severity",
"type": "select",
"required": true,
"options": {
  "mycompany:critical": "Critical",
  "mycompany:high": "High",
  "mycompany:medium": "Medium",
  "mycompany:low": "Low"
}

Added few tasks with in the system by setting appropriate values for this field. Realized that the "search" key was not set and changed the custom field configuration and added the missing "search" key, now the json looks like below:

"mycompany:company-severity": {

"name": "Severity",
"type": "select",
"required": true,
"search": true,
"options": {
  "mycompany:critical": "Critical",
  "mycompany:high": "High",
  "mycompany:medium": "Medium",
  "mycompany:low": "Low"
}

Though "Severity" field is seen in the Maniphest search page, the tasks created before the "search" key was set are not showing in the search results. How do I get the older ones in the search results ?

Event Timeline

Use bin/search index --type task to rebuild the index.

epriestley renamed this task from On setting "search" key for an existing custom maniphest fields is not returning correct results. to Make it more clear to users how to rebuild search indexes after adding search support to custom fields.Feb 10 2016, 1:26 PM
epriestley triaged this task as Low priority.
epriestley edited projects, added Documentation, Search, Custom Fields; removed Bug Report.

I hit this as well - I was able to fix the handful of tasks created before setting "search" -> "true" by just re-saving those tasks.