Support UUID search #44
This commit is contained in:
parent
910b415561
commit
da5983f42b
|
@ -68,6 +68,12 @@ videos-search:
|
||||||
# * default: use default Elastic Search match query, including fuzziness
|
# * default: use default Elastic Search match query, including fuzziness
|
||||||
# * phrase: use Elastic Search phrase match query
|
# * 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'
|
match_type: 'default'
|
||||||
|
@ -117,6 +123,12 @@ playlists-search:
|
||||||
# * default: use default Elastic Search match query, including fuzziness
|
# * default: use default Elastic Search match query, including fuzziness
|
||||||
# * phrase: use Elastic Search phrase match query
|
# * phrase: use Elastic Search phrase match query
|
||||||
search-fields:
|
search-fields:
|
||||||
|
uuid:
|
||||||
|
boost: 100
|
||||||
|
match_type: 'default'
|
||||||
|
short-uuid:
|
||||||
|
boost: 100
|
||||||
|
match_type: 'default'
|
||||||
display-name:
|
display-name:
|
||||||
boost: 5
|
boost: 5
|
||||||
match_type: 'default'
|
match_type: 'default'
|
||||||
|
|
|
@ -45,6 +45,16 @@ const CONFIG = {
|
||||||
ENABLED: config.get<boolean>('videos-search.boost-languages.enabled')
|
ENABLED: config.get<boolean>('videos-search.boost-languages.enabled')
|
||||||
},
|
},
|
||||||
SEARCH_FIELDS: {
|
SEARCH_FIELDS: {
|
||||||
|
UUID: {
|
||||||
|
FIELD_NAME: 'uuid',
|
||||||
|
BOOST: config.get<number>('videos-search.search-fields.uuid.boost'),
|
||||||
|
MATCH_TYPE: config.get<string>('videos-search.search-fields.uuid.match_type')
|
||||||
|
},
|
||||||
|
SHORT_UUID: {
|
||||||
|
FIELD_NAME: 'shortUUID',
|
||||||
|
BOOST: config.get<number>('videos-search.search-fields.short-uuid.boost'),
|
||||||
|
MATCH_TYPE: config.get<string>('videos-search.search-fields.short-uuid.match_type')
|
||||||
|
},
|
||||||
NAME: {
|
NAME: {
|
||||||
FIELD_NAME: 'name',
|
FIELD_NAME: 'name',
|
||||||
BOOST: config.get<number>('videos-search.search-fields.name.boost'),
|
BOOST: config.get<number>('videos-search.search-fields.name.boost'),
|
||||||
|
@ -98,6 +108,16 @@ const CONFIG = {
|
||||||
},
|
},
|
||||||
PLAYLISTS_SEARCH: {
|
PLAYLISTS_SEARCH: {
|
||||||
SEARCH_FIELDS: {
|
SEARCH_FIELDS: {
|
||||||
|
UUID: {
|
||||||
|
FIELD_NAME: 'uuid',
|
||||||
|
BOOST: config.get<number>('playlists-search.search-fields.uuid.boost'),
|
||||||
|
MATCH_TYPE: config.get<string>('playlists-search.search-fields.uuid.match_type')
|
||||||
|
},
|
||||||
|
SHORT_UUID: {
|
||||||
|
FIELD_NAME: 'shortUUID',
|
||||||
|
BOOST: config.get<number>('playlists-search.search-fields.short-uuid.boost'),
|
||||||
|
MATCH_TYPE: config.get<string>('playlists-search.search-fields.short-uuid.match_type')
|
||||||
|
},
|
||||||
DISPLAY_NAME: {
|
DISPLAY_NAME: {
|
||||||
FIELD_NAME: 'displayName',
|
FIELD_NAME: 'displayName',
|
||||||
BOOST: config.get<number>('playlists-search.search-fields.display-name.boost'),
|
BOOST: config.get<number>('playlists-search.search-fields.display-name.boost'),
|
||||||
|
|
Loading…
Reference in New Issue