just one small thing, what about
Code:
$hget(search.results,0).item
to get the total number of entries in the hash table, that's fine to use right ? (or is there a better way of doing this)

Thanks.