Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement WordPress plugin for sonic search needed #279

Open
osevan opened this issue Apr 18, 2022 · 5 comments
Open

Enhancement WordPress plugin for sonic search needed #279

osevan opened this issue Apr 18, 2022 · 5 comments

Comments

@osevan
Copy link

osevan commented Apr 18, 2022

To deploy sonic on WordPress and making sonic using for larger communitys, we need WordPress plugin.

https://webdesign.tutsplus.com/tutorials/create-a-custom-wordpress-plugin-from-scratch--net-2668

https://www.smashingmagazine.com/2011/09/how-to-create-a-wordpress-plugin/

Thanks and

Best regards

@OllieJones
Copy link

Still any interest in WP Super Sonic Search (or whatever) name? Anybody still want a Sonic search plugin for WordPress? I'm taking a look at creating it. If I do create it, it will be GPL, to play nice with the WordPress.org plugins repository.

= My thoughts on this plugin. =

I imagine this to be a drop-in replacement for WordPress's rudimentary ( WHERE post_content LIKE '%Valerian%') built-in search capability, with the addition of autocompletion on the search form field via REST and the jQueryUI "autocomplete" widget. The plugin will send search terms to Sonic's search channel, then retrieve and format the results just like inbuilt search does.

It will need ingestion support, both at initial deployment when content is inserted, updated, or deleted.

It needs all the WordPress plugin stuff to support the plugin lifecycle. And it needs a WordPress dashboard panel to configure access to the Sonic server, and do things like flush and re-ingest everything (hopefully won't be necessary in production.)

According to the specs of psonic it needs php 7+. That may be OK considering the site owner needs to be able to install Sonic. But requiring 7+ is a disaster for plugins wanting broad adoption on budget hosting services. php 5.6 would be better. (My IDE refactors language constructs, so there's no big penalty).

Are there other requirements? Please let me know. I'll post a link to the work-in-progress repo as soon as I have it.

@valeriansaliou
Copy link
Owner

@OllieJones Thank you for planning to build this! Definite must-have on large WP websites, as I know how poor SQL servers tend to behave regarding search latency and relevance on large databases.

@OllieJones
Copy link

For the typical WordPress site owner it will be very helpful to have a .deb installer so sudo apt install sonic-search or something similar will work. Is anybody working on that?

@valeriansaliou
Copy link
Owner

valeriansaliou commented Oct 25, 2022

I've got a build process based on GH Actions already figured from another Rust project of mine here:

Although note that Sonic cannot be built w/ MUSL just yet (statically linked), and depends on glibc, which availlable versions vary amongst different Debian versions. Meaning, the package for buster would be different than bullseye.

@OllieJones
Copy link

The WordPress plugin repo is here. https://github.com/OllieJones/sss It has nothing in it but a skeleton without flesh as of late October 2022. Development to come.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants