Skip to content

Commit

Permalink
Merge pull request #6309 from kaltura/Mercury-13.7.0-KMS-14857_elasti…
Browse files Browse the repository at this point in the history
…cCore

KMS-14857: add language support to name and description in partial search
  • Loading branch information
NadavHarnik committed Nov 9, 2017
2 parents 431aa57 + 8a70020 commit b629a1d
Show file tree
Hide file tree
Showing 16 changed files with 764 additions and 52 deletions.
2 changes: 1 addition & 1 deletion plugins/content/caption/search/CaptionSearchPlugin.php
Expand Up @@ -258,7 +258,7 @@ protected static function getElasticLines($items, $language, $assetId)
$content = substr($content, 0, kElasticSearchManager::MAX_LENGTH);
$line['content'] = $content;

$analyzedFieldName = elasticSearchUtils::getAnalyzedFieldName($language, 'content');
$analyzedFieldName = elasticSearchUtils::getAnalyzedFieldName($language, 'content' ,elasticSearchUtils::UNDERSCORE_FIELD_DELIMITER);
if($analyzedFieldName)
$line[$analyzedFieldName] = $content;

Expand Down
Expand Up @@ -99,6 +99,138 @@
"raw" : {
"type" : "text",
"analyzer" : "kaltura_keyword"
},
"english" : {
"type" : "text",
"analyzer": "english"
},
"arabic" : {
"type" : "text",
"analyzer": "arabic"
},
"armenian" : {
"type" : "text",
"analyzer" : "armenian"
},
"basque" : {
"type" : "text",
"analyzer" : "basque"
},
"brazilian" : {
"type" : "text",
"analyzer" : "brazilian"
},
"bulgarian" : {
"type" : "text",
"analyzer" : "bulgarian"
},
"catalan" : {
"type" : "text",
"analyzer" : "catalan"
},
"cjk" : {
"type" : "text",
"analyzer" : "cjk"
},
"czech" : {
"type" : "text",
"analyzer" : "czech"
},
"danish" : {
"type" : "text",
"analyzer" : "danish"
},
"dutch" : {
"type" : "text",
"analyzer" : "dutch"
},
"finnish" : {
"type" : "text",
"analyzer" : "finnish"
},
"french" : {
"type" : "text",
"analyzer" : "french"
},
"galician" : {
"type" : "text",
"analyzer" : "galician"
},
"german" : {
"type" : "text",
"analyzer" : "german"
},
"greek" : {
"type" : "text",
"analyzer" : "greek"
},
"hindi" : {
"type" : "text",
"analyzer" : "hindi"
},
"hungarian" : {
"type" : "text",
"analyzer" : "hungarian"
},
"indonesian" : {
"type" : "text",
"analyzer" : "indonesian"
},
"irish" : {
"type" : "text",
"analyzer" : "irish"
},
"italian" : {
"type" : "text",
"analyzer" : "italian"
},
"latvian" : {
"type" : "text",
"analyzer" : "latvian"
},
"lithuanian" : {
"type" : "text",
"analyzer" : "lithuanian"
},
"norwegian" : {
"type" : "text",
"analyzer" : "norwegian"
},
"persian" : {
"type" : "text",
"analyzer" : "persian"
},
"portuguese" : {
"type" : "text",
"analyzer" : "portuguese"
},
"romanian" : {
"type" : "text",
"analyzer" : "romanian"
},
"russian" : {
"type" : "text",
"analyzer" : "russian"
},
"sorani" : {
"type" : "text",
"analyzer" : "sorani"
},
"spanish" : {
"type" : "text",
"analyzer" : "spanish"
},
"swedish" : {
"type" : "text",
"analyzer" : "swedish"
},
"turkish" : {
"type" : "text",
"analyzer" : "turkish"
},
"thai" : {
"type" : "text",
"analyzer" : "thai"
}
}
},
Expand Down Expand Up @@ -157,6 +289,138 @@
"raw" : {
"type" : "text",
"analyzer" : "kaltura_keyword"
},
"english" : {
"type" : "text",
"analyzer": "english"
},
"arabic" : {
"type" : "text",
"analyzer": "arabic"
},
"armenian" : {
"type" : "text",
"analyzer" : "armenian"
},
"basque" : {
"type" : "text",
"analyzer" : "basque"
},
"brazilian" : {
"type" : "text",
"analyzer" : "brazilian"
},
"bulgarian" : {
"type" : "text",
"analyzer" : "bulgarian"
},
"catalan" : {
"type" : "text",
"analyzer" : "catalan"
},
"cjk" : {
"type" : "text",
"analyzer" : "cjk"
},
"czech" : {
"type" : "text",
"analyzer" : "czech"
},
"danish" : {
"type" : "text",
"analyzer" : "danish"
},
"dutch" : {
"type" : "text",
"analyzer" : "dutch"
},
"finnish" : {
"type" : "text",
"analyzer" : "finnish"
},
"french" : {
"type" : "text",
"analyzer" : "french"
},
"galician" : {
"type" : "text",
"analyzer" : "galician"
},
"german" : {
"type" : "text",
"analyzer" : "german"
},
"greek" : {
"type" : "text",
"analyzer" : "greek"
},
"hindi" : {
"type" : "text",
"analyzer" : "hindi"
},
"hungarian" : {
"type" : "text",
"analyzer" : "hungarian"
},
"indonesian" : {
"type" : "text",
"analyzer" : "indonesian"
},
"irish" : {
"type" : "text",
"analyzer" : "irish"
},
"italian" : {
"type" : "text",
"analyzer" : "italian"
},
"latvian" : {
"type" : "text",
"analyzer" : "latvian"
},
"lithuanian" : {
"type" : "text",
"analyzer" : "lithuanian"
},
"norwegian" : {
"type" : "text",
"analyzer" : "norwegian"
},
"persian" : {
"type" : "text",
"analyzer" : "persian"
},
"portuguese" : {
"type" : "text",
"analyzer" : "portuguese"
},
"romanian" : {
"type" : "text",
"analyzer" : "romanian"
},
"russian" : {
"type" : "text",
"analyzer" : "russian"
},
"sorani" : {
"type" : "text",
"analyzer" : "sorani"
},
"spanish" : {
"type" : "text",
"analyzer" : "spanish"
},
"swedish" : {
"type" : "text",
"analyzer" : "swedish"
},
"turkish" : {
"type" : "text",
"analyzer" : "turkish"
},
"thai" : {
"type" : "text",
"analyzer" : "thai"
}
}
},
Expand Down

0 comments on commit b629a1d

Please sign in to comment.