7

I am building a system that has database operations that has millions of records.I am using Zend Framework in all part of my project.I wanted to use a search indexing technique but have you got any advice on this?which technique should i use?

Thanks in advance

Charles
  • 50,943
  • 13
  • 104
  • 142
Hüseyin BABAL
  • 15,400
  • 4
  • 51
  • 73
  • for that scale (millions of records) i would suggest sphinx. but 'scale' is one only factor. sphinx comes with far more options. depends on what you want to do. – Andreas Mar 17 '11 at 21:16
  • Thanks for your reply,andreas.And where should i start from?Any suggestion on sphinx – Hüseyin BABAL Mar 17 '11 at 21:35

2 Answers2

7

Zend Lucene absolutely unrelevant for "millions of records".

Try to use sphinx http://sphinxsearch.com/docs/manual-1.10.html.

It has many usefull fratures, including clasterization to many servers; smart, customizable result ranking and much more. And it is really fast. PHP API docs: http://www.php.net/manual/en/book.sphinx.php

There is C-version of PHP API http://pecl.php.net/package/sphinx

seriyPS
  • 6,817
  • 2
  • 25
  • 16
5

You absolutely don't want to use Zend Framework's Lucene implementation for that many records. Lucene is a great idea, just not a pure-PHP version.

Check out Solr and ElasticSearch, two Lucene-based search services that may fit your needs well. ElasticSearch is incredibly usable right out of the box with effectively zero configuration.

Charles
  • 50,943
  • 13
  • 104
  • 142