arclanguage / anarki

Community-managed fork of the Arc dialect of Lisp; for commit privileges submit a pull request.
http://arclanguage.github.io
Other
1.17k stars 160 forks source link

Search does not work #198

Closed tarvos21 closed 3 years ago

tarvos21 commented 3 years ago

I run the news app on macOS and Linux, but search does not work.

After I press Enter after inputing some text in the bottom search bar, there is no results listed on the page, even the 'Search results' prompt (I see it in search.arc) does not show up.

What may be the problem here? Thanks!

akkartik commented 3 years ago

I had no idea the news app had a search bar! Looks like it was added by @kennethrapp.

It calls out to https://searx.me/?q=__, but browsing to that site, it looks like a hosted search service isn't provided anymore. It's also possible that it only searched the web at large even when it worked.

I suspect there's no easy way to make search work, and this was just a proof of concept. You'd need to provide your own backend search engine. But others may know more than me.

kennethrapp commented 3 years ago

Isn't it part of the original Arc forum? I don't remember.

Maybe it could be changed to a Google or Bing site search (ex: https://www.google.com/search?q=site:arclanguage.org)

tarvos21 commented 3 years ago

@akkartik @kennethrapp I try to load the search.arc provided in news app, obviously the HTML part works, because the search bar shows up on the page, but the search function does not work, I don't know why yet.

kennethrapp commented 3 years ago

I merged search.arc into news because it was so short, it was using an outdated version of the listpage template but it should work now.

I left the proxy link as is - this feels like it should be a per-site configuration to me, I didn't know what service to replace it with.