Add SearchIndexField::getEngineHints()
authorDavid Causse <dcausse@wikimedia.org>
Tue, 20 Jun 2017 13:43:28 +0000 (15:43 +0200)
committerDavid Causse <dcausse@wikimedia.org>
Thu, 22 Jun 2017 14:03:01 +0000 (16:03 +0200)
commitb5aecfabd96dee76031193b53790dcbcb7c33b7d
tree902d221685cf7c13e6345973e908a69c4650cb79
parent36e6785f8f2bfa75156b4d2c7dbb622bec5e5889
Add SearchIndexField::getEngineHints()

Allows search engine clients that implement custom definitions
to pass engine hints used at index time.
Hints are a way to fine tune the behavior of the search engine
when handling a particular field.
As of now this is introduced for CirrusSearch to let SearchIndexField
implementations to control how the noop script is configured.
The noop hint with CirrusSearch allows to (for example):
- ignore an update if a numeric value does not change for more than X%
- control the merge strategy of complex fields

Bug: T166589
Change-Id: Ia560e41d33013c30ac47e5a60543f8cb133e61fb
includes/search/NullIndexField.php
includes/search/SearchIndexField.php
includes/search/SearchIndexFieldDefinition.php