Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.

Search Function. Is this a Bug or what?

0 votes
401 views
asked Sep 9, 2014 in Q2A Core by takesi
Hi, i think there is a bug in the search function. Let me explain:

I have 1 post which contains the word "table" inside the title. When i try to perform a search and type "table" in the search field then i am getting 1 result and this is ok. But when i am typing "tabl" in the search field i am getting no results!!

Why the search looking for entire words only???

 

How can i make it display all results that CONTAINS the letters "tabl" or "tab" ?

 

Thanks in advance.

1 Answer

0 votes
answered Sep 10, 2014 by q2apro

Why the search looking for entire words only???

If you would search for parts of words like "tabl*", the mysql queries would need much more time. Especially if you have bigger data.

This would lead to a server time out, showing up in your browser.

Google "search engines algorithms, performance, implementation" to get more information on this topic.

commented Sep 10, 2014 by takesi
right now is  function process_search($query, $start, $count, $userid, $absoluteurls, $fullcontent)

What i have to change??
commented Sep 10, 2014 by takesi
Any help please ???
...