function apachesolr_user_get_users_to_index in Apachesolr User 6
1 call to apachesolr_user_get_users_to_index()
- apachesolr_user_update_index in ./
apachesolr_user.module - This module will index users and there profile information in Solr. As this is a D6 module we are treating them like nodes
File
- ./
apachesolr_user.module, line 23
Code
function apachesolr_user_get_users_to_index($namespace, $limit) {
$rows = array();
if (variable_get('apachesolr_read_only', 0)) {
return $rows;
}
extract(apachesolr_get_last_index($namespace));
$args = array(
$last_change,
$last_change,
$last_nid,
);
// @TODO Extend this to support indexing of only certain roles etc
$result = db_query_range("SELECT asu.uid as nid, asu.changed FROM {apachesolr_search_user} asu WHERE (asu.changed > %d OR (asu.changed = %d AND asu.uid > %d)) AND asu.status = 1 ORDER BY asu.changed ASC, asu.uid ASC", $args, 0, $limit);
while ($row = db_fetch_object($result)) {
$rows[] = $row;
}
return $rows;
}