User Profile

User
 andremedeiros
Location
 Portugal
Time Zone
 (GMT -1): Brazil Atlantic Islands, Cape Verde, Greenland Scoresbysun
URL
 http://www.andremedeiros.info/

Recent Articles

Integrating Zend Framework Lucene with your Cake Application

This is a short tutorial that teaches you how to integrate Zend Framework's Lucene implementation (100% PHP) to your application. It requires your server to have PHP5 installed, since ZF only runs on PHP5, and is likelly to be deprecated very soon.
  • Published by andremedeiros 10/16/06 - 13:27
  • 34522 views
  • 16 comments

Recent Comments

Posted 04/12/2006 11:23am
Is there a maximum size that the index can be??

Can this support terabytes of data?

Thanks,
Darius

I wouldn't know. It would, of course, vary according to a number of factors, like php's configured memory limit, if they rebuild the index all at once, or by parts, etc.

To be honest, I wouldn't count on it supporting terabytes of data.
Posted 08/11/2006 10:16am
Tried to implement your tutorial, but unfortunately I am having a few issues...

Firstly just a correction to your code - $indexPath is declared using an uppercase P, but then in the line below you use a lowercase.

Now, I have been able to successfully index my table and am able to view the documents using Luke. I am also able to use getDocument($id) which retrieves the document in an array. I can also successfully getFieldNames() which tells me how many fields are in the document.

Unfortunately though, when I try to query the index, no results are returned. If I use the same query string in Luke, I get the correct results.

I have tried the preview version 0.2.0 as well as the snapshot.

Any ideas?

Thanks for the catch!

Although Zend Search is byte-compatible with Apache's Lucene, the query engine still needs a lot of polishing.

What worked for me was querying using fields, ie:

tags:cars tags:beer
title:specs

And so on.

Let me know how it worked out
Posted 24/10/2006 02:02pm
I just was curios about threaded links. What i mean is if i have categories like:

Art

1. Film
2. Music
1. Jazz
2. Pop

I want to implement urls for any category like:

/art/film
/art/music
/art/music/jazz
/art/music/pop

Did you think of this? And is it posible with regexp routes ...
I need to figure out this, all this will be good solution for some direcotory web app.

Thanks, and James Hall this is great tutorial!

I think you actually can. Any parameter passed after the method is treated as an argument to the controller class' function, therefore I think it is safe to assume you can use func_num_args, get the last arg, and do a filter from there.

Check http://pt.php.net/func_num_args
Posted 18/10/2006 06:55am
There is a sollution. It doesn't support UTF8 nativelly, but you can convert your data to ISO-8559-1, for instance.

http://framework.zend.com/manual/en/zend.search.charset.html