0

I am trying hard to find a text facet to filter the results by node title. Is it possible?

I tried the following method but facet is not appearing on the search page:

function biyixia_apachesolr_field_mappings_alter(&$mappings, $entity_type) {
  // Enable indexing for text fields
  $mappings['text'] = array(
    'indexing_callback' => 'apachesolr_fields_default_indexing_callback',
    'map callback' => '',
    'index_type' => 'string',
    'facets' => TRUE,
    'facet missing allowed' => TRUE,
    'dependency plugins' => array('bundle', 'role'),
    'hierarchy callback' => FALSE,
    'name_callback' => '',
    'facet mincount allowed' => FALSE,
    'multiple' => FALSE,
  );
}
3
  • Will node title will be repeated for several nodes ?
    – RajeevK
    Jun 6, 2013 at 7:07
  • No, it will more likely be unique but I think it is irrelevant here
    – qasimzee
    Jun 8, 2013 at 4:38
  • Managed to do it using my own module. Thanks for the comments
    – qasimzee
    Sep 25, 2014 at 11:28

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.