mohamed elbruki
2025-May-19 06:22 UTC
[Samba] WSP Search Issue: Can’t Find Filenames or Directories, Only Content
Hi Noel, I've been trying to get the WSP server working for about a week now, and I could really use your guidance ? I?m excited about the functionality and want to help test it properly. My issue is that I can?t seem to search for **filenames or directory names** via the WSP protocol. Interestingly, content *within* files shows up just fine in searches, and something like `kind:video` also works as expected. Just to clarify , I set up a share in windows and I am testing using windows 10 search box. Is this a current limitation (since I know the feature is still in progress), or does it sound like I?ve misconfigured something? Here?s my setup for reference: smb.conf: [global] bind interfaces only = Yes getwd cache = Yes interfaces = lo net1 log file = /var/log/samba/%m.log max log size = 10000 min receivefile size = 16384 netbios name = DC realm = CLOUDOWNER.LOCAL server role = active directory domain controller server services = s3fs, rpc, nbt, wrepl, ldap, cldap, kdc, drepl, winbindd, ntp_signd, kcc smb3 directory leases = Yes socket options = IPTOS_LOWDELAY TCP_NODELAY SO_RCVBUF=65536 SO_SNDBUF=65536 workgroup = CLOUDOWNER idmap_ldb:use rfc2307 = yes use sendfile = Yes wsp backend = elasticsearch elasticsearch:username map = /etc/samba/map_searchusers [share] path = /srv/share guest ok = yes read only = no browseable = yes vfs objects = shadow_copy2 shadow:snapdir = .snap shadow:snapdirseverywhere = yes shadow:format = _csi-snap wsp = true elasticsearch:index = cloudowner_samba_search elasticsearch:max results = 200 elasticsearch:address elasticsearch.elasticsearch.svc.cluster.local FsCrawler config (_settings.yaml): name: "cloudowner" fs: url: "/srv/share" excludes: - "*/~*" attributes_support: true add_filesize: true raw_metadata: true index_content: true filename_as_content: true index_folders: true remove_deleted: true continue_on_error: true ocr: enabled: "true" language: "eng" pdf_strategy: ocr_and_text elasticsearch: push_templates: false Any thoughts would be greatly appreciated. Thanks again for your work on this ? it?s really exciting to see this feature coming to Samba. Best regards, Mohamed Elbruki