Thanks very much for the reply. I will certainly 'try' that - it seems
like a bit of a hack though?
till wrote:
Luke,
On 5/18/07, Luke Mackenzie <[EMAIL PROTECTED]> wrote:
(...)
if ($result->getFieldValue('news_title')){
echo 'News Title:
'.$result->getFieldValue('news_title').'<br />';
}
Why not "just" add a try/catch block here to trap the exception. :-)
If one occurs you could log it or disregard it, and essentially go on.
I have no experience with Lucene, but since the exception thrown looks
very generic, check the code. In my example, if the code doesn't equal
WHATEVER (which would be the code thrown along with "field not found"
style errors) it throws the exception again, otherwise it's
disregarded.
try {
// foo
}
catch(Zend_Search_Lucene_Exception $e) {
if ($e->getCode() != 'WHATEVER') {
throw $e;
}
}
Hoep that helps!
Till