dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Avoid 'message' in log context in AuthManager"
[lhc/web/wiklou.git]
/
includes
/
search
/
SearchIndexFieldDefinition.php
diff --git
a/includes/search/SearchIndexFieldDefinition.php
b/includes/search/SearchIndexFieldDefinition.php
index
3a86c82
..
8a06b65
100644
(file)
--- a/
includes/search/SearchIndexFieldDefinition.php
+++ b/
includes/search/SearchIndexFieldDefinition.php
@@
-2,8
+2,10
@@
/**
* Basic infrastructure of the field definition.
/**
* 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 {
* @since 1.28
*/
abstract class SearchIndexFieldDefinition implements SearchIndexField {
@@
-115,4
+117,12
@@
abstract class SearchIndexFieldDefinition implements SearchIndexField {
$this->subfields = $subfields;
return $this;
}
$this->subfields = $subfields;
return $this;
}
+
+ /**
+ * @param SearchEngine $engine
+ *
+ * @return array
+ */
+ abstract public function getMapping( SearchEngine $engine );
+
}
}