[development] Search

Andrew Berry andrewberry at sentex.net
Mon Mar 30 18:59:21 UTC 2009


On 30-Mar-09, at 7:02 AM, Ámon Tamás wrote:

> First I like to use the hook_update_index, but it only can to work  
> with node-s, or if I like to insert other content I must use an  
> other type in search_index().

'node' is just a key for the content. You should be able to call  
search_index on whatever content you want. If you look at the function  
comments you'll see it's not bound to nodes specifically.

search_index($unique_id, 'my_external_content',  
$some_fetched_text_from_external_site);

--Andrew
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2672 bytes
Desc: not available
URL: <http://lists.drupal.org/pipermail/development/attachments/20090330/6385ee9b/attachment.bin>


More information about the development mailing list