Zend Lucene or sphinx?
Asked Answered
N

2

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

Nordgren answered 17/3, 2011 at 21:15 Comment(2)
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.Svensen
Thanks for your reply,andreas.And where should i start from?Any suggestion on sphinxAkel
C
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

Capitoline answered 18/3, 2011 at 0:9 Comment(1)
Sphinx is especially useful because of its MySQL native integration, simplyfying infrastructure.Brassie
C
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.

Ceremonious answered 17/3, 2011 at 22:30 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.