Re: [fw-general] Deleting Documents w/ Lucene

2008-06-21 Thread Pete Spicer
'd or instance,. but the problem is that $hits is empty. so the foreach is never excuting. On 6/21/08, Pete Spicer <[EMAIL PROTECTED]> wrote: Hello, Can't see anything obviously wrong with it, but I have one idea which might make some tiny difference... Personally in my own

Re: [fw-general] Deleting Documents w/ Lucene

2008-06-21 Thread Pete Spicer
Hello, Can't see anything obviously wrong with it, but I have one idea which might make some tiny difference... Personally in my own scripts where I do a delete, in the foreach loop, I don't pull anything fancy out from each $hit instance, I simply reference $hit->id for the internal document

Re: [fw-general] Zend_Search_Lucene Best N Results

2008-06-19 Thread Pete Spicer
Hello, I've been having similar problems with ZSL as well, but whilst I haven't found a quick solution, I've found that going back to the index itself and understanding what is going on will prove useful - depending on what kinds of documents you're indexing and what kinds of searches you're r

Re: [fw-general] THE BIG Q&A and submitting questions. . .

2008-04-29 Thread Pete Spicer
Hi all, Quick question for tomorrow... Is there any possibility of Zend building and using a toolset (bug tracker/wiki etc) based on Zend Framework? It just seems a bit odd that Zend - the PHP company - is using Java-based technology to power part of their site, instead of PHP-based. I also

Re: [fw-general] instantiate an object with a variable name for the class

2008-04-24 Thread Pete Spicer
Hello It is possible to instantiate a class from a variable name - before PHP 5.3 even. I've been doing this with 5.2 in a project I'm working on. I think the key thing is the syntax: $table1 = new $originClass; // note no brackets Hopefully that'll help! Pete On 4/24/08, *Denis Fohl* <

Re: [fw-general] Updating Documents with Lucene

2008-04-19 Thread Pete Spicer
I can see two problems - the field type and how you're searching against it. 1) If a field is UnIndexed, AFAIK it can't be searched for, it's simply stored with the record itself and is returned along with the search results. You might use this for some metadata such as the URL for a page. In

Re: [fw-general] ZF - APC tuning

2008-04-08 Thread Pete Spicer
Hi there, As a developer who builds and tests apps on Windows/Apache/MySQL/PHP stack and run release versions on a Linux server optimised for web serving, I can confirm the following from my experience... I built a project which functions like RinkWorks' "Dialectizer" - www.thevoicesofmany.co

[fw-general] Zend_Search_Lucene and missing search terms

2008-04-04 Thread Pete Spicer
Hi there, I've been building a search platform for a custom database I have, using Zend_Search_Lucene, and I've run into a couple of oddities. The prototype version I have gets its index rebuilt from scratch occasionally, currently approximately 3,000 documents. All of the documents are being

Re: [fw-general] Speeding up Lucene

2008-03-26 Thread Pete Spicer
Well, I'm using Lucene myself for a specialist search project, with several thousand documents at a time. Search performance is good, I'm throwing queries with multiple terms, including range searches and the odd fuzzy search at it and queries are taking very small fractions of a second, even