Page MenuHomePhabricator

Introduce getFieldsForSearchIndex, to supersede getTextForSearchIndex.
Closed, DuplicatePublic

Description

Content::getFieldsForSearchIndex() returns an associative array, representing the individual fields to be indexed by the search index. The only well known and required field is "text", which per default is set to what getTextForSearchIndex() returns.

Additional fields can be provided, the values can be primitive or nested arrays (no objects for now).

ContentHandler::getSearchIndexFieldInfo() can be implemented to provide hints about the individual fields to the search index (such as data type or index type).

Event Timeline

daniel raised the priority of this task from to Needs Triage.
daniel updated the task description. (Show Details)
daniel changed Security from none to None.
daniel added a subscriber: daniel.