On 03-02-2023 11:37, npower via samba wrote:> Resending (maillist subscription error) apologies if you are receiving > this again > > On 03/02/2023 10:34, npower wrote: >> Hi Robert, >> >> While I don't have a version that works against recent versions of >> samba I'd be happy to work on getting something working that you >> could test against if you were interested :-) >> >> I haven't abandoned the whole idea of integrating this but it is a >> question of time (and interest from others). In order for the search >> capability to work you will need to run and configure an indexer on >> the server (samba) side to catalog the files to be searched. >> >> Note: in previous iterations of the code I used gnome-tracker for >> this purpose, however... for any new iteration of this code I don't >> intend to support gnome-tracker but would support elasticsearch >> instead, it's easier to configure/run and is a better match for the >> search capabilities that the windows side expects. >> >> To use and test this you would need to: >> >> ? * build samba from source OR I could provide a SUSE repository that >> could be used with opensuse systems >> >> ? * use filecrawler https://fscrawler.readthedocs.io/en/latest/ to >> populate the elasticsearch index >> >> ? * configure elasticsearch >> https://www.elastic.co/products/elasticsearch >> >> let me know if you are interested :-) >> >> NoelHi Noel, I would be interested in getting this working. There are a few obstacles however: - Do you really need java and elasticsearch? Would it be feasible to use something more lightweight like xapian? - I am currently using mjt's debian repo (for debian bullseye). I guess my best option is to build the packages myself from mjt's debian source with your extra patches and compile options. Not a big issue but it takes some time to set that up :-) - Kees.>> >> On 01/02/2023 20:07, Jeremy Allison wrote: >>> On Wed, Feb 01, 2023 at 07:58:52PM +0000, Vaughan, Robert J via >>> samba wrote: >>>> Hello Samba listers >>>> >>>> Is there a way to search Samba share file contents from the Windows >>>> client explorer?? This works on Windows shares.? I can't seem to >>>> get a hit on this on Google .. >>> >>> Noel Power (Samba Team member at SuSE) has sample code implementing >>> Windows >>> search. It hasn't been integrated yet. If you want to test it he >>> may be able to make it available to you. I'm CC:ing him on this >>> reply. >>> >>> https://sambaxp.org/archive-data-samba/sxp15/SambaXP2015-SLIDES/wed/track1/sambaxp2015-wed-track1-Noel_Power-WindowSearchProtocolAndSamba.pdf >>> >
On 03/02/2023 11:07, Kees van Vloten via samba wrote:> Hi Noel, > > I would be interested in getting this working. There are a few > obstacles however: > > - Do you really need java and elasticsearch? Would it be feasible to > use something more lightweight like xapian?In theory yes, but I have already got it working previously with elasticsearch, elasticsearch is hugely scaleable (so additionally probably would be attractive to corporations). I have at least a little (hard won) idea about the integration needed to convert the WSP queries to elasticsearch, I have no idea about xapian (which to be honest I hadn't heard about) what it supports and what is needed to convert WSP queries to something it understands. Also there is some crossover too with the spotlight support which also supports elasticsearch (so there is already some knowledge about it with other here) So in short I don't intend to work on getting a different indexer to work right now, but internally the server has a generic api so different backends should be possible in the future. If you are still interested in testing it out with elasticsearch let me know Noel> > - I am currently using mjt's debian repo (for debian bullseye). I > guess my best option is to build the packages myself from mjt's debian > source with your extra patches and compile options. Not a big issue > but it takes some time to set that up :-) > > - Kees. > >>> >>> On 01/02/2023 20:07, Jeremy Allison wrote: >>>> On Wed, Feb 01, 2023 at 07:58:52PM +0000, Vaughan, Robert J via >>>> samba wrote: >>>>> Hello Samba listers >>>>> >>>>> Is there a way to search Samba share file contents from the >>>>> Windows client explorer?? This works on Windows shares.? I can't >>>>> seem to get a hit on this on Google .. >>>> >>>> Noel Power (Samba Team member at SuSE) has sample code implementing >>>> Windows >>>> search. It hasn't been integrated yet. If you want to test it he >>>> may be able to make it available to you. I'm CC:ing him on this >>>> reply. >>>> >>>> https://sambaxp.org/archive-data-samba/sxp15/SambaXP2015-SLIDES/wed/track1/sambaxp2015-wed-track1-Noel_Power-WindowSearchProtocolAndSamba.pdf >>>> >> >
03.02.2023 14:07, Kees van Vloten via samba ?????: ..> - I am currently using mjt's debian repo (for debian bullseye). I guess my best option is to build the packages myself from mjt's debian source with > your extra patches and compile options. Not a big issue but it takes some time to set that up :-)It's quite easy to set up really. You don't need the complete build environment on your main OS, something like sbuild is enough. See for example this: https://wiki.debian.org/sbuild#Using_unshare_with_mmdebstrap_.28no_root_needed.29 or the old'good way with sbuild and schroot. The idea is that you set up a minimal clean chroot for a given distribution or release, and build the package with sbuild: sbuild -d unstable samba_foo.dsc (or -d bullseye, with bullseye-amd64 chroot set up as in previous step). Debian samba git repository is linked to from the debian package page, https://tracker.debian.org/pkg/samba (see links on the left). But you don't need the repository (you can use it if you want, for sure), - just `apt source samba' is enough to get started. Next is `dpkg-buildpackage -S -d' to create a .dsc, and use it with sbuild. FWIW. /mjt