This script is used for indexing ez publish content only
There are several routes to index external data:
- write your own script(s), using the base classes in the ezfind extension
- configuring Solr to do this for you through the search backend: see http://wiki.apache.org/solr/DataImportHandler and make a small script using the Solr base classes from the ezfind extension to control this DataImportHandler
In both cases, you will probably need to modify the Solr schema file
To search this content, you can use the ezfind supplied rawSolrRequest fetch function in templates
In a future edition, ez find will be extended to make indexing adn searching external content easier out of the box