apachesolr.module

Version 1.1.2.12.2.202 (checked in on 2010/06/16 at 20:43:39 by jpmckinney)

Constants

NameDescription
APACHESOLR_READ_ONLY
APACHESOLR_READ_WRITE

Functions

NameDescription
apachesolr_blockImplementation of hook_block().
apachesolr_cck_fieldsInvokes hook_apachesolr_cck_field_mappings to find out how to handle CCK fields.
apachesolr_clear_cacheA wrapper for cache_clear_all to be used as a submit handler on forms that require clearing Luke cache etc.
apachesolr_clear_last_indexClear a specific namespace's last changed and nid, or clear all.
apachesolr_commentImplementation of hook_comment().
apachesolr_cronImplementation of hook_cron().
apachesolr_current_queryStatic getter/setter for the current query
apachesolr_date_determine_gapDetermine the best search gap to use for an arbitrary date range.
apachesolr_date_facet_blockHelper function for displaying a date facet block.
apachesolr_date_find_query_gapDetermine the gap in a date range query filter that we generated.
apachesolr_date_format_iso_by_gapFormat an ISO date string based on the gap used to generate it.
apachesolr_date_format_rangeFormat the beginning of a date range query filter that we generated.
apachesolr_date_gap_drilldownReturn the next smaller date gap.
apachesolr_date_isoConvert date from timestamp into ISO 8601 format. http://lucene.apache.org/solr/api/org/apache/solr/schema/DateField.html
apachesolr_delete_node_from_index
apachesolr_document_idGenerate a unique ID for an entity being indexed.
apachesolr_do_queryExecute a search based on a query object.
apachesolr_drupal_queryFactory function for query objects.
apachesolr_facetcount_formUsed by the 'configure' $op of hook_block so that modules can generically set facet limits on their blocks.
apachesolr_facetcount_saveUsed by the 'save' $op of hook_block so that modules can generically set facet limits on their blocks.
apachesolr_facet_blockHelper function for displaying a facet block.
apachesolr_failureDetermines Apache Solr's behavior when searching causes an exception (e.g. Solr isn't available.) Depending on the admin settings, possibly redirect to Drupal's core search.
apachesolr_field_name_mapTry to map a schema field name to a human-readable description.
apachesolr_flush_cachesImplementation of hook_flush_caches().
apachesolr_form_block_admin_configure_alterImplementation of hook_form_[form_id]_alter().
apachesolr_form_block_admin_display_form_alterImplementation of hook_form_[form_id]_alter
apachesolr_form_content_field_edit_form_alterImplementation of hook_form_[form_id]_alter().
apachesolr_form_content_field_overview_form_alterImplementation of hook_form_[form_id]_alter().
apachesolr_form_node_type_form_alterImplementation of hook_form_[form_id]_alter().
apachesolr_get_enabled_facetsReturn the enabled facets from the specified block array.
apachesolr_get_last_indexReturns last changed and last nid for an indexing namespace.
apachesolr_get_nodes_to_indexReturns an array of rows from a query based on an indexing namespace.
apachesolr_get_solrFactory method for solr singleton object. Structure allows for an arbitrary number of solr objects to be used based on the host, port, path combination. Get an instance like this: $solr = apachesolr_get_solr();
apachesolr_has_searchedSemaphore that indicates whether a search has been done. Blocks use this later to decide whether they should load or not.
apachesolr_index_keyarray('index_type' => 'integer', 'multiple' => TRUE, 'name' => 'fieldname', ),
apachesolr_index_nodesFunction to handle the indexing of nodes.
apachesolr_index_statusHelper function for modules implmenting hook_search's 'status' op.
apachesolr_index_updatedHelper function to keep track of when the index has been updated.
apachesolr_lA replacement for l()
apachesolr_mark_nodeMark one node as needing re-indexing.
apachesolr_menuImplementation of hook_menu().
apachesolr_mlt_list_blocksReturns a list of blocks. Used by hook_block
apachesolr_mlt_load_block
apachesolr_mlt_suggestionsPerforms a moreLikeThis query using the settings and retrieves documents.
apachesolr_modify_queryThis hook allows modules to modify the query and params objects.
apachesolr_nodeapiImplementation of hook_nodeapi().
apachesolr_node_typeImplementation of hook_node_type().
apachesolr_pager_initInitialize a pager for theme('pager') without running an SQL query.
apachesolr_rebuild_index_tableTruncate and rebuild the apachesolr_search_node table, reset the apachesolr_index_last variable. This is the most complete way to force reindexing, or to build the indexing table for the first time.
apachesolr_save_enabled_facetsSave the enabled facets for all modules.
apachesolr_save_module_facetsSave the enabled facets for one module.
apachesolr_set_stats_messageCall drupal_set_message() with the text.
apachesolr_site_hashLike $site_key in _update_refresh() - returns a site-specific hash.
apachesolr_static_response_cacheIt is important to hold on to the Solr response object for the duration of the page request so that we can use it for things like building facet blocks.
apachesolr_taxonomyImplementation of hook_taxonomy().
apachesolr_themeImplementation of hook_theme().
apachesolr_userImplementation of hook_user().
theme_apachesolr_facet_link
theme_apachesolr_facet_list
theme_apachesolr_mlt_recommendation_block
theme_apachesolr_sort_link
theme_apachesolr_sort_list
theme_apachesolr_unclick_link
_apachesolr_exclude_types
_apachesolr_nodeapi_deleteHelper function for hook_nodeapi().
_apachesolr_nodeapi_updateHelper function for hook_nodeapi().

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.