mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-09-02 11:18:56 +00:00
Remove dot and hyphens from searchnames when inserting into ES index
This commit is contained in:
@@ -1183,12 +1183,13 @@ class ProcessAdditional
|
||||
->groupBy('releases.id')
|
||||
->first();
|
||||
if ($new !== null) {
|
||||
$searchName = str_replace(['.', '-'], ' ', $new->searchname);
|
||||
$data = [
|
||||
'body' => [
|
||||
'doc' => [
|
||||
'id' => $this->_release->id,
|
||||
'name' => $new->name,
|
||||
'searchname' => $new->searchname,
|
||||
'searchname' => $searchName,
|
||||
'fromname' => $new->fromname,
|
||||
'filename' => ! empty($new->filename) ? $new->filename : '',
|
||||
],
|
||||
@@ -1764,6 +1765,7 @@ class ProcessAdditional
|
||||
$release->retag($newCat['tags']);
|
||||
|
||||
if (config('nntmux.elasticsearch_enabled') === true) {
|
||||
$newTitle = str_replace(['.', '-'], ' ', $newTitle);
|
||||
$data = [
|
||||
'body' => [
|
||||
'doc' => [
|
||||
|
||||
Reference in New Issue
Block a user