Skip to content

Commit

Permalink
Merge pull request #106 from catalyst/master-issue95
Browse files Browse the repository at this point in the history
issue #95: Minor fix for tika validation.
  • Loading branch information
dmitriim committed Jul 26, 2023
2 parents a685965 + a8c038b commit d9559b4
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions classes/enrich/text/tika.php
Expand Up @@ -100,8 +100,8 @@ private function tika_server_ready() {
$url = '';
// Check if we have a valid set of config.
if (! empty($this->config->tikahostname) && ! empty($this->config->tikaport)) {
$port = $this->config->port;
$hostname = rtrim($this->config->hostname, "/");
$port = $this->config->tikaport;
$hostname = rtrim($this->config->tikahostname, "/");
$url = $hostname . ':' . $port;
}

Expand Down Expand Up @@ -138,8 +138,8 @@ public function can_analyze($file) {
/**
* Use tika to extract text from file.
*
* @param file $file
* @param esrequest\client $client client
* @param \stored_file $file
* @param \search_elastic\esrequest $client client
* @return string|boolean
*/
public function extract_text($file, $client) {
Expand Down Expand Up @@ -203,4 +203,3 @@ public static function form_definition_extra($form, $mform, $customdata, $config
}

}

0 comments on commit d9559b4

Please sign in to comment.