Jump to content

Recommended Posts

I am developing a intranet forum in Php and MySQL and I am using ajax to display searched results on the same page but right now I am using query LIKE text% to search in database which is slower. but I want to make it fast search engin which can parse *,+ and show result.

 

Since I am using ajax i am not able to use free search engin,so if possible pls provide a complete solution

Thanks for yor reply.

But i also want Wildcard search functionality and for that i want a php code to parse the user input and then form a query eg: user enters bla* then result should contain all occurances of bla.

Alexv's suggestion is a good one, fulltext in boolean mode is the way to go.

http://dev.mysql.com/doc/refman/5.6/en/fulltext-search.html

requires the MyISAM table type, InnoDB not supported

 

Another alternative is sphinx.

http://sphinxsearch.com/about/sphinx/

 

Or even Lucene

http://lucene.apache.org/java/docs/index.html

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.