Hello,

I have some problems with searchingi in my aplication. It works great on my
local machine (WinXP, Apache/2.2.4 php5.2.1), but it wont find anything on
my web hosting provider (Apache/2 php5.1.6). 

My example:

//Create document...
$doc = Zend_Search_Lucene_Document_Html::loadHTMLFile($filename);
$doc->addField(Zend_Search_Lucene_Field::Text('urlmd5', $url_checksum));
...

//Searching...
$hits = $index->find('urlmd5:"87141142e8d95ec2f1caa962a02eb2cd"');
...

Results:
my local machine - 1 result with score 1 ($hit->score)
my web hosting provider  - 0 result...

Index it seems be ok (index contains 7 documents, object is the same for
both servers)

...
["urlmd5"] => object(Zend_Search_Lucene_Field)#108 (9) {
      ["name"] => string(6) "urlmd5"
      ["value"] => string(32) "87141142e8d95ec2f1caa962a02eb2cd"
      ["isStored"] => bool(true)
      ["isIndexed"] => int(1)
      ["isTokenized"] => int(1)
      ["isBinary"] => bool(false)
      ["storeTermVector"] => bool(false)
      ["boost"] => float(1)
      ["encoding"] => string(5) "UTF-8"
    }
...

I'm using ZF1.0

Anyone can help with the above problems?

Many thanks!

Regards,
paullo
-- 
View this message in context: 
http://www.nabble.com/Zend_Search_Lucene%3A-Results-No-Results-tf4119305s16154.html#a11715076
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to