So I've been working on a crawler script to index all the pages on the my site using Zend Lucene search. I've been able to get the script to work but for some reason will not find the other links on the pages. The problem seems to be when the script hits the find method:
$hits = $index->find('url:'.$targets[$i]);
When I execute the script there are no hits in the array so the crawler indexes only the starting URI. Any ideas on what I can try?