PHP-based search angles

I am going to create a small site that requires advanced search capabilities. Since reinventing the wheel is not such a worthy activity, I did a bit of searching and found that there are some PHP-based search frames, one of which is integrated into the Zend framework.

What I would like to have as part of:

  • Both full-text and search catalog features
  • Search results are sorted by relevance.
  • Ability to filter results by category
  • Sort results by various criteria
  • Quick search
  • No quick insert required

Since the site will contain fairly static content (some text and a product catalog), I could go with some pre-generated index.

Are there any (free) frameworks that could meet the above requirements? Suggestions, tips and ideas are more than welcome. It would be great if you could share your impressions about the implementation of the search engine.

+3
source share
4 answers

Take a look at Omega (based on Xapian) - link to the Xapian project page p>

cgi-wise. Xapian, , . , ( , - (html, pdf, word, excel, sql databases...) "stemming" ..)

( ) Apache Lucene → , Zend, ( "Zend Search" ). , Xapian.

: , Omega ( Xapian) GPL, Apache Lucene LGPL, .

+1

CMS, Joomla Drupal, . . , . HTML- , , # - , / , CMS.

+1

SOLR. Solr . / ....

, php- solr...

EDIT:

, , : Lucene Port To PHP Zend

+1

-, Zend Framework, - , , () . :

http://devzone.zend.com/node/view/id/1304

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

, " ", . kw_search_summary, (script ), . "summary" mysql, MATCH() AGAINST() . , , :

    $select = $this->db->select()
                 ->from(array('kwi' => 'kw_search_index'),
                        array('id','prodcatid','itemid','useradid','summary','relevance' => "match(summary) against($safeExp in boolean mode)"))
                 ->where("match(summary) against($safeExp in boolean mode)")
                 ->order('relevance desc')
                 ->limitPage($currentPage,self::RESULTS_PER_PAGE);

, .

0

Source: https://habr.com/ru/post/1705501/


All Articles