0

I am using mvf field for my project . In that i want to index the mvf field . But when i try to index, it is not listed in the Default list nor Add related fields at admin/config/search/search_api/index/product_display/fields .is any thing missing or it is a bug .

I am using kickstart with searh api and facet api. Any help is welcome. thank you.

0

I don't know what is "mvf", but you can create your own fields for indexing.

Example:

/**
 * Implements hook_entity_property_info_alter.
 */
function test_search_entity_property_info_alter(&$info) {
  $info['node']['properties']['mvf'] = array(
    'type' => 'text',
    'label' => t('mvf'),
    'getter callback' => 'test_search_mvf_getter_callback',
  );
}

Function test_search_mvf_getter_callback will take entity as first argument and should return result for indexing.

I hope this will help you.

  • thank you for your reply drupal.org/project/mvf mvf this is the module i am using with Unit module to generate unit field .Just take a look . – Lucifer Apr 10 '14 at 7:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.