X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=blobdiff_plain;f=includes%2Fsearch%2FSearchIndexFieldDefinition.php;h=8a06b65ed7bd3e8aebfafae7e6ccd1ff24e407c0;hb=48df0714bbfe0d5cf3ced3de9081c02d583d78c3;hp=3a86c82d0db192708cd2a66ae3f7bc6021f0038c;hpb=425090d4eb0b9de89ad6818f40ab8295368f645e;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/search/SearchIndexFieldDefinition.php b/includes/search/SearchIndexFieldDefinition.php index 3a86c82d0d..8a06b65ed7 100644 --- a/includes/search/SearchIndexFieldDefinition.php +++ b/includes/search/SearchIndexFieldDefinition.php @@ -2,8 +2,10 @@ /** * Basic infrastructure of the field definition. - * Specific engines will need to override it at least for getMapping, - * but can reuse other parts. + * + * Specific engines should extend this class and at at least, + * override the getMapping method, but can reuse other parts. + * * @since 1.28 */ abstract class SearchIndexFieldDefinition implements SearchIndexField { @@ -115,4 +117,12 @@ abstract class SearchIndexFieldDefinition implements SearchIndexField { $this->subfields = $subfields; return $this; } + + /** + * @param SearchEngine $engine + * + * @return array + */ + abstract public function getMapping( SearchEngine $engine ); + }