#community-help

Discussing Implementation of Typesense WordPress Plugin

TLDR Ugene sought advice from Jason about using a Typesense plugin for WordPress. Jason clarified that it's a template to build their custom plugin, explaining its functionality and noting that they may need to verify its front-end operation.

Powered by Struct AI
12
24mo
Solved
Join the chat
Nov 12, 2021 (24 months ago)
Ugene
Photo of md5-162960a1b037a019d903de2542542f60
Ugene
05:28 AM
Hi Jason, I am ugene (dev for Joe Cando) - I have downloaded the plugin from here: https://github.com/typesense/typesense-wordpress-plugin/tree/91f16218ab32f7d6bee65748fe332e038716019e
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
05:32 AM
Hey Ugene, I mentioned to Joe that that plugin is just a reference (at least for now). I'd recommend using that as reference to then build a custom plugin for your particular use-case
05:32
Jason
05:32 AM
What the plugin essentially does is to make API calls to Typesense when posts are created/updated, and then there's an Admin button to reindex all the data
05:33
Jason
05:33 AM
And then on the front-end, it replaces the default Wordpress search with the instantsearch js and typesense-instantsearch-adapter libraries to send the queries to Typesense
Ugene
Photo of md5-162960a1b037a019d903de2542542f60
Ugene
05:34 AM
In the front end - do I have to do anything in terms of code or it will just overtake
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
05:36 AM
You do have to override the default search in your custom plugin (which the template plugin above does as well)
Ugene
Photo of md5-162960a1b037a019d903de2542542f60
Ugene
05:39 AM
But you said it will replaces the default WordPress search - and if I don’t do anything, will it still work?
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
05:42 AM
By "it" I mean the custom plugin... The template in the repo above, was working fine on the FE as well at one point without any additional configuration, but I'm not sure if it still does. So you'll need to verify that
Ugene
Photo of md5-162960a1b037a019d903de2542542f60
Ugene
05:45 AM
Okay. Jason Thanks. So, I do need to go and correct things on my own as per my need taking the above plugin as a starting point, whether it is for backend or for frontend, am I right?
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
05:46 AM
That's correct
Ugene
Photo of md5-162960a1b037a019d903de2542542f60
Ugene
05:47 AM
Thank you Jason for clearing things, I will do some research on the plugin first and get back to you if needed to sort things out. Thanks you for your time.
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
05:47 AM
Sounds good! :thumbsup: