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 created this task.Dec 9 2014, 5:00 PM
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.
demon added a comment.Dec 10 2014, 7:58 PM

We could utilize this in something similar to what Brion started here

demon removed a subscriber: demon.Aug 19 2015, 3:37 PM
Restricted Application added a project: Discovery. · View Herald TranscriptAug 19 2015, 3:37 PM
Restricted Application added a subscriber: StudiesWorld. · View Herald TranscriptNov 16 2015, 2:43 PM
Restricted Application added a project: Discovery-Search. · View Herald TranscriptAug 23 2016, 5:13 PM