You are here

function hook_apachesolr_confgen_solrconfig_alter in Apache Solr Config Generator 7

Same name and namespace in other branches
  1. 6 apachesolr_confgen.api.php \hook_apachesolr_confgen_solrconfig_alter()

Alter the solrconfig.xml using QueryPath.

Parameters

object $qp: A querypath object representing schema.xml @see querypath.module

string $solr_version: switch to target different solr versions, currently '1.4.x', '3.5.x' and '4.5.x'

See also

http://querypath.org/

1 function implements hook_apachesolr_confgen_solrconfig_alter()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

apachesolr_confgen_advanced_settings_apachesolr_confgen_solrconfig_alter in apachesolr_confgen_advanced_settings/apachesolr_confgen_advanced_settings.module
Implements hook_apachesolr_confgen_solrconfig_alter().

File

./apachesolr_confgen.api.php, line 37
Exposed Hooks in 7.x:

Code

function hook_apachesolr_confgen_solrconfig_alter($qp, $solr_version) {
  $qp
    ->find(':root maxTime')
    ->text(variable_get('apachesolr_confgen_advanced_settings_autoCommit_maxTime', 120000));
}