[RFC] Ajax Live Search

Note: We are moving the topics of this forum and it will be deleted at some point

Publish your own request for comments/change or patches for the next version of phpBB. Discuss the contributions and proposals of others. Upcoming releases are 3.2/Rhea and 3.3.
Post Reply
User avatar
Registered User
Posts: 394
Joined: Fri Apr 04, 2014 12:32 am

[RFC] Ajax Live Search

Post by Louis7777 »


Add a dropdown results box below the quick search, to show results as the user is typing.


Nowadays users often expect something to happen when they start typing in a search box. They may expect to see keyword suggestions or results related to the content they are interested in, because they have got used to such functionality.

I think that an Ajax Live Search should be core functionality, because most of the world's top websites have it even though they are of different nature (e.g. search engines, social networks, e-commerce websites, e-mail web services etc.). A few examples:

Google, Yahoo, Bing, Baidu, YouTube, Gmail, Outlook, Facebook, LinkedIn, GitHub, Amazon, Ebay, IMDb, Alexa, Podnapisi etc.

Also, top CMS such as Joomla and Wordpress have it. I don't know any forum software that has it yet (I've only seen it in Administration Panels)... so why not be the first?


I think it should look similar to Facebook's and it could display the top related topic titles. PhpBB already has the functionality to search in topic titles, posts, topic titles + posts or only in the first post of topics and display an ordered list of results.

There could be a couple of ACP options to limit the number of results and to enable/disable searching in posts (i.e. search only in titles).

If the user has JavaScript disabled, then no problem - he'll only miss this enhancement.

If there are performance concerns, then no problem - have it disabled by default and make an On/Off switch in ACP.

Registered User
Posts: 10
Joined: Mon Jul 14, 2014 10:14 am

Re: [RFC] Ajax Live Search

Post by valid »

How to prevent abuse? This function is quite intensive.

User avatar
Former Team Member
Posts: 733
Joined: Sun Oct 07, 2007 11:54 am
Location: Stuttgart, Germany

Re: [RFC] Ajax Live Search

Post by nickvergessen »

We have a search flood limit?
Member of the Development-TeamNo Support via PM

User avatar
Registered User
Posts: 964
Joined: Fri Dec 18, 2009 3:55 pm

Re: [RFC] Ajax Live Search

Post by brunoais »

I'm cool with this but we also need to prevent flooding the server with requests when this is on. We better wait a while before trying to search. Anyway, sounds good to me, specially when searching for posts from a specific username (help typing the username) and help typing some more common words (larger than x letters) in the board.

User avatar
Registered User
Posts: 165
Joined: Wed Nov 17, 2010 1:40 am
Location: Atlantic Canada

Re: [RFC] Ajax Live Search

Post by jsebean »

I'm gonna say -1 on this one. This is WAY too cpu intensive. 99% of boards on the net I'd be willing to bet do not have the processing power as facebook or google. I could see this getting abused. If people want this, I'd say leave it as an extension as there'd be nothing wrong with that.

User avatar
Registered User
Posts: 624
Joined: Tue May 31, 2011 12:08 pm
Location: Romania

Re: [RFC] Ajax Live Search

Post by Dragosvr92 »

This would be nice, as the current search system is unable to find certain keywords. Maybe it can suggest what it can be searched.
But they really should expand the search function and make that possible.
Previous user: TheKiller
Avatar on Memberlist 1.0.3

User avatar
Registered User
Posts: 110
Joined: Wed May 04, 2011 7:47 pm
Location: グリーン ヒル ゾーン

Re: [RFC] Ajax Live Search

Post by AmigoJack »

Dragosvr92 wrote: Wed Aug 26, 2015 1:35 pmcurrent search system is unable to find certain keywords
Then a live search would not help either. I modified my board to at least inform the user which stopwords he encountered instead of just giving a generic failure message.

It would be more a help to make users aware of what keywords are, what operators are and what phrases are, as then they'd be able to issue a more precise search, whereas potential suggestions are no help in understanding a board search.

Post Reply