HelpHub icon indicating copy to clipboard operation
HelpHub copied to clipboard

Search functionality

Open hlashbrooke opened this issue 9 years ago • 15 comments

WordPress has a decent built-in search, but it might be a good idea to look into how we can improve that. There are plugins that improve the default WordPress search (the ones that come to mind are SearchWP and Relevanssi), so it might be good to investigate an option like that, or look into building an enhanced search ourselves as the search functionality is very important to achieving HelpHub's goals.

hlashbrooke avatar Feb 01 '16 12:02 hlashbrooke

Agreed! This for sure will be the heaviest used feature in the entire system IMO. From my understanding search functionality searches 3 areas with a match type check. Title, Content and Excerpt are default where adding CPT is easy enough.

I would caution using non core plugins for such a solid support beam in this project. We can keep this light weight and make it do exactly what we what. I opt for in-house on this one.

justingreerbbi avatar Feb 01 '16 15:02 justingreerbbi

I would love to see an Ajax-enabled 'Suggested Search'

Clueless users really won't know what terms to search for.

Kenshino avatar Feb 01 '16 16:02 Kenshino

Auto complete on titles only (maybe more fields later) to conserve energy but I definitely think we should have some sort of autocomplete as well.

justingreerbbi avatar Feb 01 '16 16:02 justingreerbbi

+1 to everything suggested so far :smile:

hlashbrooke avatar Feb 02 '16 08:02 hlashbrooke

I am holding off on this template until we get some more styles and templates in place.

EDITED: I would like to get the actual content / CPT / Taxonomy structure in place before moving on this.

justingreerbbi avatar Feb 05 '16 14:02 justingreerbbi

@justingreerbbi I added a widget area after the homepage page title to be utilized the search functionality https://github.com/hlashbrooke/HelpHub/pull/22 ,please let me know if that would suffice for the homepage

carl-alberto avatar Apr 20 '16 11:04 carl-alberto

@carl-alberto Thanks. I am starting on this portion here shortly and your widget area will come in handy.

justingreerbbi avatar May 10 '16 14:05 justingreerbbi

Working on this, I am at a fork in the road. Are we looking for something like http://polarblau.github.io/suggest/? Maybe we do a standard autocomplete. I am a big fan of simple stupid but standard autocomplete is also an option.

Suggestions with examples would be awesome. My fallback will be to using the suggest script in WP core.

justingreerbbi avatar May 10 '16 18:05 justingreerbbi

@justingreerbbi jQuery.suggest seems to only take the first related term to help with auto complete.

I want to really suggest actual search terms via that text box. Think Amazon

Kenshino avatar May 17 '16 08:05 Kenshino

Agreed. I have an auto complete example in https://github.com/hlashbrooke/HelpHub/tree/feature-search right now. It is very basic and returns based on the title of articles. I am going to browse the articles we have and see what terms/cats other fields we have at our expense to make it better.

I am also looking for a relativity factor so we can show based on relativity to the input terms and not list all articles returned. If anyone has ideas, please feel free to share.

justingreerbbi avatar May 17 '16 10:05 justingreerbbi

Tagging this as maybe later, Jetpack now includes ES for searches, and it's slowly being rolled out to various parts of WordPress.org.

For now, as we're a part of the support subsite, all searches there are directed through Google for performance reasons, so let's not put too much effort in here at this time.

Clorith avatar Feb 16 '18 06:02 Clorith

Now that HelpHub will land on /support this will use the proposed search enhancements as part of https://meta.trac.wordpress.org/ticket/3388, removed maybe later because of this

ntwb avatar Feb 16 '18 08:02 ntwb

@ntwb imo while enabling an ES instance or indexing will certainly help this endeavour on meta, getting it working to an acceptable level would still require a fair bit of work on both the ES side and the front end area.

Kenshino avatar May 22 '18 05:05 Kenshino

Does HelpHub already have Jetpack enabled on it yet. If so then you can just turn on Jetpack Search and add a search filtering to the sidebar: https://jetpack.com/support/search/

Customizing the algorithm may take a bit extra work, but just turning it on and configuring it should be pretty easy.

gibrown avatar May 22 '18 16:05 gibrown

HelpHub is going to live on wordpress.org/support, so it will have the "good search" when it's introduced for the support forums as well.

We may want to weight it so that articles are prioritized above forum results at taht time, but it's not the biggest concern for phase 1 which is just getting content out in a better and curated format.

Clorith avatar May 27 '18 14:05 Clorith