 readme  id readmetxt v 1121236 20100725 161646 pwolanin exp this module integrates drupal with the apache solr search platform solr search can be used as a replacement for core content search and boasts both extra features and better performance among the extra features is the ability to have faceted search on facets ranging from content author to taxonomy to arbitrary cck fields the module comes with a schemaxml and solrconfigxml file which should be used in your solr installation this module depends on the search framework in core however you may not want the core searches and only want solr search if that is the case you want to use the core searches module in tandem with this module when used in combination with core search module apache solr is not the default search access it via a new tab on the default search page called search installation prerequisite java 5 or higher aka 15x php 514 or higher those with php site configuration apache solr enabled filters then position them as you like at administer site building blocks configuration variables the module provides some hidden variables that can be used to tweak its behavior apachesolrlukelimit the limit in terms of number of documents in the index above which the module will not retrieve the number of terms per field when performing luke queries for performance reasons apachesolrtagstoindex the list of html tags that the module will index see apachesolraddtagstodocument apachesolrexcludecommentstypes an array of node types any type listed will have any attached comments excluded from the index apachesolrpingtimeout the timeout in seconds after which the module will consider the apache solr server unavailable apachesolroptimizeinterval the interval in seconds between automatic optimizations of the apache solr index set to 0 to disable apachesolrcachedelay the interval in seconds after an update after which the module will requery the apache solr for the index structure set it to your autocommit delay plus a few seconds apachesolrserviceclass the apachesolrservice class used for communicating with the apache solr server apachesolrqueryclass the default query class to use apachesolrcronmasslimit update or delete at most this many documents in each solr request such as when making apachesolrsearchnode consistent with node troubleshooting problem links to nodes appear in the search results with a different host name or subdomain than is preferred eg sometimes at http examplecom and sometimes at http wwwexamplecom solution set baseurl in settingsphp to insure that an identical absolute url is generated at all times when nodes are indexed alternately set up a redirect in htaccess to prevent site visitors from accessing the site via more than one site address developers exposed hooks in 6x hookapachesolrmodifyquery query params caller any module performing a search should call apachesolrmodifyquery query params modulename that function then invokes this hook it allows modules to modify the query object and params array caller indicates which module is invoking the hook example function mymoduleapachesolrmodifyquery query params caller i only want to see articles by the admin query addfilter uid 1 callerfinalizequery query params the module calling apachesolrdoquery may implement a function that is run after hookapachesolrmodifyquery and allows the caller to make final changes to the query and params before the query is sent to solr the function name is built from the caller parameter to apachesolrdoquery hookapachesolrpreparequery query params caller this is pretty much the same as hookapachesolrmodifyquery but runs earlier and before the query is statically cached it can eg be used to add available sorts to the query example function mymoduleapachesolrpreparequery query add a sort on the node id query setavailablesort nid array title t node id default asc hookapachesolrcckfieldsalter mappings add or alter index mappings for cck types the default mappings array handles just text fields with option widgets mappings text array optionwidgetsselect array callback indextype string optionwidgetsbuttons array callback indextype string in your alter hook implementation you can add additional field types such as mappings numberinteger number array callback indextype integer you can allso add a mapping for a specific field this will take precedence over any mapping for a general field type a fieldspecific mapping would look like mappings perfield fieldmodelname array callback indextype string or mappings perfield fieldmodelprice array callback indextype float hookapachesolrtypesexclude namespace invoked by apachesolrmodule when generating a list of nodes to index for a given namespace return an array of node types to be excldued from indexing for that namespace eg apachesolrsearch this is used by apachesolrsearch module to exclude certain node types from the index hookapachesolrnodeexclude node namespace this is invoked by apachesolrmodule for each node to be added to the index if any module returns true the node is skipped for indexing hookapachesolrupdateindex document node allows a module to change the contents of the document object before it is sent to the solr server to add a new field to the document you should generally use one of the predefined dynamic fields follow the naming conventions for the type of data being added based on the schemaxml file hookapachesolrsearchresultalter doc the is invoked by apachesolrsearchmodule for each document returned in a search new in 6xbeta7 as a replacement for the call to hooknodeapi hookapachesolrsortlinksalter sortlinks called by the sort link block code allows other modules to modify add or remove sorts themers see inline docs in apachesolrtheme and apachesolrsearchtheme functions within apachesolrmodule and apachesolrsearchmodule  