@@ -180,7 +180,6 @@ |
||
180 | 180 | * Builds the indexed data for first indexation |
181 | 181 | * |
182 | 182 | * @param Docman_Item $item |
183 | - * @param Docman_Version $version |
|
184 | 183 | * |
185 | 184 | * @return array |
186 | 185 | */ |
@@ -77,6 +77,7 @@ discard block |
||
77 | 77 | } |
78 | 78 | |
79 | 79 | /** |
80 | + * @param string $terms |
|
80 | 81 | * @return array to be used for querying ES |
81 | 82 | */ |
82 | 83 | protected function getSearchInFieldsQuery($terms, $fields, $offset) { |
@@ -161,6 +162,9 @@ discard block |
||
161 | 162 | return $query; |
162 | 163 | } |
163 | 164 | |
165 | + /** |
|
166 | + * @param string[] $returned_fields |
|
167 | + */ |
|
164 | 168 | private function addFieldsForDocman(&$returned_fields) { |
165 | 169 | $returned_fields[] = 'title'; |
166 | 170 | } |
@@ -273,6 +273,9 @@ |
||
273 | 273 | ); |
274 | 274 | } |
275 | 275 | |
276 | + /** |
|
277 | + * @param integer $project_id |
|
278 | + */ |
|
276 | 279 | public function isProjectReindexationAlreadyQueued($project_id) { |
277 | 280 | return $this->system_event_manager->areThereMultipleEventsQueuedMatchingFirstParameter(SystemEvent_FULLTEXTSEARCH_DOCMAN_REINDEX_PROJECT::NAME, $project_id); |
278 | 281 | } |
@@ -43,7 +43,6 @@ |
||
43 | 43 | * |
44 | 44 | * @param string $type |
45 | 45 | * @param string $document_id |
46 | - * @param array $options Parameters to pass to delete action |
|
47 | 46 | * |
48 | 47 | * @return array |
49 | 48 | */ |
@@ -27,7 +27,7 @@ |
||
27 | 27 | /** |
28 | 28 | * Search for data in the index, filter them with permissions |
29 | 29 | * |
30 | - * @param String $term terms |
|
30 | + * @param String $terms terms |
|
31 | 31 | * @param array $facets submitted by user for faceted navigation |
32 | 32 | * @param int $offset The offset of the search |
33 | 33 | * @param PFUser $user The user which do the request |
@@ -152,6 +152,9 @@ |
||
152 | 152 | } |
153 | 153 | } |
154 | 154 | |
155 | + /** |
|
156 | + * @param integer $project_id |
|
157 | + */ |
|
155 | 158 | public function isProjectReindexationAlreadyQueued($project_id) { |
156 | 159 | return $this->system_event_manager->areThereMultipleEventsQueuedMatchingFirstParameter(SystemEvent_FULLTEXTSEARCH_TRACKER_REINDEX_PROJECT::NAME, $project_id); |
157 | 160 | } |
@@ -182,7 +182,6 @@ discard block |
||
182 | 182 | * Update document approval comments |
183 | 183 | * |
184 | 184 | * @param Docman_Item $item |
185 | - * @param Docman_Version $version |
|
186 | 185 | */ |
187 | 186 | public function indexDocumentApprovalComment(Docman_Item $item) { |
188 | 187 | $this->logger->debug('index new document approval comment #' . $item->getId()); |
@@ -227,7 +226,7 @@ discard block |
||
227 | 226 | * Index a new document with permissions |
228 | 227 | * |
229 | 228 | * @param Docman_Item $item The docman item |
230 | - * @param Docman_Version $version The version to index |
|
229 | + * @param Docman_LinkVersion $version The version to index |
|
231 | 230 | */ |
232 | 231 | public function indexNewLinkVersion(Docman_Item $item, Docman_LinkVersion $version) { |
233 | 232 | try { |
@@ -245,7 +244,6 @@ discard block |
||
245 | 244 | * Index a new wiki document with permissions |
246 | 245 | * |
247 | 246 | * @param Docman_Item $item The docman item |
248 | - * @param Docman_Version $version The version to index |
|
249 | 247 | * @param array $wiki_page_metadata WikiPage metadata |
250 | 248 | */ |
251 | 249 | public function indexNewWikiVersion(Docman_Item $item, array $wiki_page_metadata) { |
@@ -411,6 +409,9 @@ discard block |
||
411 | 409 | |
412 | 410 | } |
413 | 411 | |
412 | + /** |
|
413 | + * @param integer $project_id |
|
414 | + */ |
|
414 | 415 | public function reIndexProjectDocuments( |
415 | 416 | Docman_ProjectItemsBatchIterator $document_iterator, |
416 | 417 | $project_id, |
@@ -24,6 +24,9 @@ |
||
24 | 24 | |
25 | 25 | class FulltextsearchPluginInfo extends PluginFileInfo { |
26 | 26 | |
27 | + /** |
|
28 | + * @param fulltextsearchPlugin $plugin |
|
29 | + */ |
|
27 | 30 | public function __construct($plugin) { |
28 | 31 | parent::__construct($plugin, 'fulltextsearch'); |
29 | 32 | $this->setPluginDescriptor(new FulltextsearchPluginDescriptor()); |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | * |
44 | 44 | * @param FullTextSearch_IIndexDocuments $client Search client |
45 | 45 | * |
46 | - * @return Void |
|
46 | + * @return FullTextSearchTrackerActions |
|
47 | 47 | */ |
48 | 48 | public function __construct(FullTextSearch_IIndexDocuments $client, ElasticSearch_1_2_RequestTrackerDataFactory $tracker_data_factory, Logger $logger) { |
49 | 49 | $this->client = $client; |
@@ -77,6 +77,9 @@ discard block |
||
77 | 77 | $this->indexAllArtifacts($tracker); |
78 | 78 | } |
79 | 79 | |
80 | + /** |
|
81 | + * @param Tracker $tracker |
|
82 | + */ |
|
80 | 83 | private function deleteTracker($tracker) { |
81 | 84 | $tracker_id = $tracker->getId(); |
82 | 85 |