X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fsearch%2FSearchIndexField.php;h=a348d6dc9aa51e546f8224779d2ca71667763b85;hp=6b5316f009fa2592998b56bdd0568c27cacf30ff;hb=12601ff7d2796752404bfb331fccc41083d31f9f;hpb=ce079cf6ad79ca8d3360817f809b219d166f9153 diff --git a/includes/search/SearchIndexField.php b/includes/search/SearchIndexField.php index 6b5316f009..a348d6dc9a 100644 --- a/includes/search/SearchIndexField.php +++ b/includes/search/SearchIndexField.php @@ -72,4 +72,21 @@ interface SearchIndexField { * @return SearchIndexField|false New definition or false if not mergeable. */ public function merge( SearchIndexField $that ); + + /** + * A list of search engine hints for this field. + * Hints are usually specific to a search engine implementation + * and allow to fine control how the search engine will handle this + * particular field. + * + * For example some search engine permits some optimizations + * at index time by ignoring an update if the updated value + * does not change by more than X% on a numeric value. + * + * @param SearchEngine $engine + * @return array an array of hints generally indexed by hint name. The type of + * values is search engine specific + * @since 1.30 + */ + public function getEngineHints( SearchEngine $engine ); }