Upgrade to 0.0.1.2023.08.08~ynh1

This commit is contained in:
yalh76 2023-08-08 22:53:42 +02:00
parent 1884cd0f90
commit d22e957701
5 changed files with 65 additions and 8 deletions

View file

@ -1,5 +1,5 @@
SOURCE_URL=https://framagit.org/framasoft/peertube/search-index/-/archive/b44e850fa1604cebac19eb822e9d555f673085b0/search-index-b44e850fa1604cebac19eb822e9d555f673085b0.tar.gz SOURCE_URL=https://framagit.org/framasoft/peertube/search-index/-/archive/36a36379b469982e6b2fc219825283e2470135e7/search-index-36a36379b469982e6b2fc219825283e2470135e7.tar.gz
SOURCE_SUM=7a68fd70aeaac05d06fbbb3c8cf7a375e9d2e112235e4af6857630380e114b18 SOURCE_SUM=d5f92138c38642cb1cf559f2260652203aa38cfd03c5811c49e9299d1cdfe3ef
SOURCE_SUM_PRG=sha256sum SOURCE_SUM_PRG=sha256sum
SOURCE_FORMAT=tar.gz SOURCE_FORMAT=tar.gz
SOURCE_IN_SUBDIR=true SOURCE_IN_SUBDIR=true

View file

@ -8,11 +8,20 @@ webserver:
port: __PORT__ port: __PORT__
elastic-search: elastic-search:
# https or http
http: 'http'
auth:
username: null
password: null
ssl:
# Specificy a custom CA
ca: null
hostname: 'localhost' hostname: 'localhost'
port: 9200 port: 9200
indexes: indexes:
videos: 'peertube-index-videos' videos: 'peertube-index-videos'
channels: 'peertube-index-channels' channels: 'peertube-index-channels'
playlists: 'peertube-index-playlists'
log: log:
level: 'debug' # debug/info/warning/error level: 'debug' # debug/info/warning/error
@ -50,34 +59,82 @@ videos-search:
boost-languages: boost-languages:
enabled: true enabled: true
# Add ability to change videos search fields boost value # Add ability to change videos search fields boost and match value
# See https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-multi-match-query.html for more information # See https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-multi-match-query.html for more information
#
# If boost == 0, the field will not be part of the search # If boost == 0, the field will not be part of the search
#
# match_type could be 'default' or 'phrase'
# * default: use default Elastic Search match query, including fuzziness
# * phrase: use Elastic Search phrase match query
search-fields: search-fields:
uuid:
boost: 100
match_type: 'default'
short-uuid:
boost: 100
match_type: 'default'
name: name:
boost: 5 boost: 5
match_type: 'default'
description: description:
boost: 1 boost: 1
match_type: 'phrase'
tags: tags:
boost: 3 boost: 2
match_type: 'default'
account-display-name: account-display-name:
boost: 2 boost: 2
match_type: 'default'
channel-display-name: channel-display-name:
boost: 2 boost: 2
match_type: 'default'
channels-search: channels-search:
# Add ability to change channels search fields boost value # Add ability to change channels search fields boost and match value
# See https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-multi-match-query.html for more information # See https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-multi-match-query.html for more information
#
# If boost == 0, the field will not be part of the search # If boost == 0, the field will not be part of the search
#
# match_type could be 'default' or 'phrase'
# * default: use default Elastic Search match query, including fuzziness
# * phrase: use Elastic Search phrase match query
search-fields: search-fields:
name: name:
boost: 5 boost: 5
match_type: 'default'
description: description:
boost: 1 boost: 1
match_type: 'phrase'
display-name: display-name:
boost: 3 boost: 3
match_type: 'default'
account-display-name: account-display-name:
boost: 2 boost: 2
match_type: 'default'
playlists-search:
# Add ability to change playlists search fields boost and match value
# See https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-multi-match-query.html for more information
#
# If boost == 0, the field will not be part of the search
#
# match_type could be 'default' or 'phrase'
# * default: use default Elastic Search match query, including fuzziness
# * phrase: use Elastic Search phrase match query
search-fields:
uuid:
boost: 100
match_type: 'default'
short-uuid:
boost: 100
match_type: 'default'
display-name:
boost: 5
match_type: 'default'
description:
boost: 1
match_type: 'phrase'
api: api:
# Blacklist hosts that will not be returned by the search API # Blacklist hosts that will not be returned by the search API

View file

@ -6,7 +6,7 @@
"en": "Search engine for PeerTube videos and channels", "en": "Search engine for PeerTube videos and channels",
"fr": "Moteur de recherche de vidéos et chaînes PeerTube" "fr": "Moteur de recherche de vidéos et chaînes PeerTube"
}, },
"version": "0.0.1.2022.06.03~ynh1", "version": "0.0.1.2023.08.08~ynh1",
"url": "https://search.joinpeertube.org/", "url": "https://search.joinpeertube.org/",
"upstream": { "upstream": {
"license": "AGPL-3.0-only", "license": "AGPL-3.0-only",

View file

@ -9,7 +9,7 @@ pkg_dependencies="git"
extra_pkg_dependencies="elasticsearch-oss" extra_pkg_dependencies="elasticsearch-oss"
NODEJS_VERSION=14 NODEJS_VERSION=16
REPOSITORY="https://framagit.org/framasoft/peertube/search-index" REPOSITORY="https://framagit.org/framasoft/peertube/search-index"