Hi José.

If you want to search a database, you need to use the database built-in
functions. If you're using mysql for example, id recommend you to look at:
http://dev.mysql.com/doc/en/Fulltext_Search.html
This is done via SQL, therefore you should have a look at Zend_Db instead of
Zend_Search: http://framework.zend.com/manual/en/zend.db.html

However, if you have millions of products you shouldnt use a database (at
least not mysql imo) for searching. Then you should take a look at
Zend_Search. To use Zend_Search you'll have to export your database to a
search-index. How to create a search index is explained here:
http://framework.zend.com/manual/en/zend.search.index-creation.html

Cheers,
Johannes

On 4/2/07, José de Menezes Soares Neto <[EMAIL PROTECTED]> wrote:

 I am trying to explain what I want in a simple way...

I want to create a search engine not for files, but for a database with
products. They produtcs will be sorted by date or price.

I want to create a form input for it, but with Zend_Search its possible?
Cause I only found Zend_Search examples for files, not for databases...

Other question:

What is the best way to build an search engine service (like google or
open directory project) using Zend Framework? I would like to storage
100.000.000 records in the database...

Thanks!



----- Original Message -----
*From:* José de Menezes Soares Neto <[EMAIL PROTECTED]>
*To:* Alexander Veremyev <[EMAIL PROTECTED]>
*Cc:* [email protected]
*Sent:* Monday, April 02, 2007 3:10 PM
*Subject:* Re: [fw-general] search engine

Hi,

But I already have a database, and this article shows how to search an
index created by zend_search_lucene

So, I need to create a index from my database, and this is not what they
explain...

Thanks!


----- Original Message -----
*From:* Alexander Veremyev <[EMAIL PROTECTED]>
*To:* José de Menezes Soares Neto <[EMAIL PROTECTED]>
*Cc:* [email protected]
*Sent:* Monday, April 02, 2007 1:33 PM
*Subject:* Re: [fw-general] search engine

Hi,

It looks like you need Zend_Search_Lucene component to be used
(http://framework.zend.com/manual/en/zend.search.html).

Some number of Zend Search Lucene tutorials can be found here -
http://www.zftutorials.com/zend-search/


With best regards,
    Alexander Veremyev.


José de Menezes Soares Neto wrote:
> hi friends,
> how to create a search engine using zend framework??
>
> i have a database with a lot of products, and when someone type
> "notebook" for example, it searchs title and description fields.
>
> best regards,
>
> José de Menezes


Reply via email to