Will the new improved search function on Sharetribe.com come to the open source version?

Hi there,

thanks for the candid feedback! I definitely understand the frustration here.

One challenge is that things for the location search are not really in a state ready to be shared. Documentation is far from perfect, code could be improved and commented, etc. Releasing things in the current state wouldn’t be too helpful without some decent context and docs, and we wouldn’t be able to support and answer questions without lots of extra work.

Unfortunately we’ve decided not to prioritize that task so far.

We have to make choices and we’ve decided to focus on new Go features, updates, upgrades but also on our latest product Flex, along with everything that happens in the daily life of a company.

I know this isn’t the answer you expected, and I really hope that at some point we’ll be able to work again on Go location search to make it ready to be publicly released. I don’t have any timeline to share, but we’ll of course annonce it here if things change.

Hopefully you’ll be able to move forward with your marketplace with all the other features available (and the new ones recently added) and/or consider building your own service for this (or use code from others if they are willing to share it)!

Hi,

I can customise it for you. I have integrated in several marketplaces.

Regards
Mo.Nadeem

Location search uses a different search engine called Zappy which is still unavailable to opensource community, but it doesn’t mean you can’t use location search in opensource version,

using this patch https://github.com/sharetribe/sharetribe/pull/3256 you can make Sphinx (currently available search engine) work for location search

Apply patch:

wget https://patch-diff.githubusercontent.com/raw/sharetribe/sharetribe/pull/3256.patch 
patch -p1 <3256.patch

after applying the patch do

RAILS_ENV=production bundle exec rake ts:stop
RAILS_ENV=production bundle exec rake ts:rebuild
#restart server
#restart delayed jobs

More details at https://www.sharetribe.com/community/t/external-search-in-use-problem

1 Like

Hello Mo. Can you drop me an e-mail? raduvldsv@yahoo.com

I have tried the patch, and the sphinx engine is working well.

There is still a bug (after I activated the location search in the admin panel:

  • I can search for locations. This works.
  • But when viewing the results, I can only see then when clicking on the MAP.
  • By switching to GRID or LIST view, I do not see the results anymore, but I get the error message (on the website), that the search is not working at the moment with no search results.

Any idea what the problem could be?

Please make sure the search service is running, by executing this command

 ps aux | grep searchd


if not most probably you’ve run into a MySQL bug caused by the patch,
to get around the bug update => app/indices/listing_index.rb

replace

 has 'RADIANS(locations.latitude)', as: :latitude, type: :float
 has 'RADIANS(locations.longitude)', as: :longitude, type: :float

with

has 'RADIANS(MIN(locations.latitude))', as: :latitude, type: :float
has 'RADIANS(MIN(locations.longitude))', as: :longitude, type: :float

and again

RAILS_ENV=production bundle exec rake ts:stop
RAILS_ENV=production bundle exec rake ts:rebuild
#restart server
#restart delayed jobs