You are here

function _apachesolr_tags_to_index in Apache Solr Search 7

Same name and namespace in other branches
  1. 8 apachesolr.index.inc \_apachesolr_tags_to_index()
  2. 6.3 apachesolr.index.inc \_apachesolr_tags_to_index()
2 calls to _apachesolr_tags_to_index()
apachesolr_index_add_tags_to_document in ./apachesolr.index.inc
Extract HTML tag contents from $text and add to boost fields.
DrupalSolrNodeTestCase::testNodeToDocument in tests/apachesolr_base.test

File

./apachesolr.index.inc, line 379
Functions related to Apache Solr indexing operations.

Code

function _apachesolr_tags_to_index() {
  $tags_to_index = variable_get('apachesolr_tags_to_index', array(
    'h1' => 'tags_h1',
    'h2' => 'tags_h2_h3',
    'h3' => 'tags_h2_h3',
    'h4' => 'tags_h4_h5_h6',
    'h5' => 'tags_h4_h5_h6',
    'h6' => 'tags_h4_h5_h6',
    'u' => 'tags_inline',
    'b' => 'tags_inline',
    'i' => 'tags_inline',
    'strong' => 'tags_inline',
    'em' => 'tags_inline',
    'a' => 'tags_a',
  ));
  return $tags_to_index;
}