[Samba] Samba failing to connect to ElasticSearch v8 index

Christopher Snowhill chris at kode54.net
Sun Jul 3 00:52:06 UTC 2022


I am attempting to use Samba v4.13.13-Debian with ElasticSearch v8.3.1, which is receiving index data from fs2es-indexer. It fails to be searchable, spitting out the following into my smbd log for each searching client:

[2022/07/02 01:32:05.986986,  0] ../../source3/rpc_server/mdssvc/mdssvc.c:977(slrpc_open_query)
  slrpc_open_query: backend search_start failed
[2022/07/02 17:35:30.811248,  0] ./source3/rpc_server/mdssvc/es_parser.y:249(map_type)
  map_type: Mapping type [public.*-archive] failed
[2022/07/02 17:35:30.811424,  0] ./source3/rpc_server/mdssvc/es_parser.y:555(map_expr)
  map_expr: Mapping [file.content_type = public.*-archive ()] failed
[2022/07/02 17:35:30.811434,  0] ../../source3/rpc_server/mdssvc/mdssvc.c:977(slrpc_open_query)
  slrpc_open_query: backend search_start failed

My Spotlight configuration is as follows:

[global]
...
spotlight backend = elasticsearch
elasticsearch:address = localhost
elasticsearch:port = 9200
elasticsearch:use tls = no
elasticsearch:index = files

[share]
...
spotlight = yes


More information about the samba mailing list