Support for partial search

If `node['ossec']['use_partial_search']` is set to true, use a partial search instead of a full node search to avoid running the node out of memory.