<?php
/**
 * @file
 * hw_platform_search.features.inc
 */

/**
 * Implements hook_ctools_plugin_api().
 */
function hw_platform_search_ctools_plugin_api($module = NULL, $api = NULL) {
  if ($module == "current_search" && $api == "current_search") {
    return array("version" => "1");
  }
  if ($module == "facetapi" && $api == "facetapi_defaults") {
    return array("version" => "1");
  }
}

/**
 * Implements hook_default_search_api_autocomplete_search().
 */
function hw_platform_search_default_search_api_autocomplete_search() {
  $items = array();
  $items['search_api_views_heimwerker_suchen'] = entity_import('search_api_autocomplete_search', '{
    "machine_name" : "search_api_views_heimwerker_suchen",
    "name" : "Heimwerker suchen",
    "index_id" : "heimwerker_suchen",
    "type" : "search_api_views",
    "enabled" : "1",
    "options" : {
      "result count" : true,
      "fields" : [
        "title",
        "search_api_aggregation_1",
        "author:name",
        "field_inserat_addresse:locality",
        "field_erfahrung_beschr:value",
        "field_experience:parent:name"
      ],
      "results" : 0,
      "custom" : { "display" : "page" }
    },
    "rdf_mapping" : []
  }');
  $items['search_api_views_inserate_suche_map'] = entity_import('search_api_autocomplete_search', '{
    "machine_name" : "search_api_views_inserate_suche_map",
    "name" : "Inserate suche",
    "index_id" : "inserate",
    "type" : "search_api_views",
    "enabled" : "1",
    "options" : {
      "result count" : true,
      "fields" : [
        "title",
        "field_inserat_addresse:locality",
        "field_inserat_branchen:name",
        "field_inserat_description:value"
      ],
      "results" : 0,
      "custom" : { "display" : "page" }
    },
    "rdf_mapping" : []
  }');
  return $items;
}

/**
 * Implements hook_default_search_api_index().
 */
function hw_platform_search_default_search_api_index() {
  $items = array();
  $items['anbieter_user'] = entity_import('search_api_index', '{
    "name" : "Anbieter_user",
    "machine_name" : "anbieter_user",
    "description" : null,
    "server" : "local_solr_server",
    "item_type" : "user",
    "options" : {
      "index_directly" : 1,
      "cron_limit" : "50",
      "fields" : {
        "uid" : { "type" : "integer" },
        "name" : { "type" : "text" },
        "search_api_language" : { "type" : "string" },
        "profile_anbieterprofil:user" : { "type" : "integer", "entity_type" : "user" },
        "profile_anbieterprofil:field_max_entfernung" : { "type" : "integer" },
        "profile_anbieterprofil:field_identity_approved_by" : { "type" : "integer", "entity_type" : "user" },
        "field_inserat_addresse:locality" : { "type" : "string" }
      },
      "data_alter_callbacks" : {
        "search_api_ranges_alter" : { "status" : 1, "weight" : "-50", "settings" : [] },
        "search_api_alter_language_control" : {
          "status" : 0,
          "weight" : "0",
          "settings" : { "lang_field" : "", "languages" : [] }
        },
        "search_api_alter_add_hierarchy" : { "status" : 0, "weight" : "0", "settings" : { "fields" : [] } },
        "search_api_alter_add_viewed_entity" : { "status" : 0, "weight" : "0", "settings" : { "mode" : "full" } },
        "search_api_alter_add_aggregation" : { "status" : 1, "weight" : "0", "settings" : [] },
        "search_api_alter_add_url" : { "status" : 0, "weight" : "0", "settings" : [] }
      },
      "processors" : {
        "search_api_case_ignore" : {
          "status" : 1,
          "weight" : "0",
          "settings" : { "fields" : { "name" : true } }
        },
        "search_api_html_filter" : {
          "status" : 0,
          "weight" : "10",
          "settings" : {
            "fields" : { "name" : true },
            "title" : 0,
            "alt" : 1,
            "tags" : "h1 = 5\\r\\nh2 = 3\\r\\nh3 = 2\\r\\nstrong = 2\\r\\nb = 2\\r\\nem = 1.5\\r\\nu = 1.5"
          }
        },
        "search_api_transliteration" : {
          "status" : 1,
          "weight" : "15",
          "settings" : { "fields" : { "name" : true } }
        },
        "search_api_tokenizer" : {
          "status" : 0,
          "weight" : "20",
          "settings" : {
            "fields" : { "name" : true },
            "spaces" : "[^[:alnum:]]",
            "ignorable" : "[\\u0027]"
          }
        },
        "search_api_stopwords" : {
          "status" : 0,
          "weight" : "30",
          "settings" : {
            "fields" : { "name" : true },
            "file" : "",
            "stopwords" : "but\\r\\ndid\\r\\nthe this that those\\r\\netc"
          }
        }
      },
      "additional fields" : {
        "profile_anbieterprofil:user" : "profile_anbieterprofil:user",
        "flag_merken_flagged" : "flag_merken_flagged"
      }
    },
    "enabled" : "0",
    "read_only" : "0",
    "rdf_mapping" : []
  }');
  $items['bewerbung'] = entity_import('search_api_index', '{
    "name" : "bewerbung",
    "machine_name" : "bewerbung",
    "description" : null,
    "server" : "local_solr_server",
    "item_type" : "node",
    "options" : {
      "index_directly" : 1,
      "cron_limit" : "50",
      "fields" : {
        "nid" : { "type" : "integer" },
        "author" : { "type" : "integer", "entity_type" : "user" },
        "field_experience" : { "type" : "list\\u003Cinteger\\u003E", "entity_type" : "taxonomy_term" },
        "field_nachbarschaftshilfe" : { "type" : "string" },
        "field_profil_verbergen" : { "type" : "decimal" },
        "field_eigenes_werkzeug" : { "type" : "decimal" },
        "field_eigenes_transportmittel" : { "type" : "decimal" },
        "field_inserat_referenz" : { "type" : "integer", "entity_type" : "node" },
        "field_direkt_kontakt_erw_nscht" : { "type" : "boolean" },
        "field_inserat_branchen" : { "type" : "list\\u003Cinteger\\u003E", "entity_type" : "taxonomy_term" },
        "field_inserat_description" : { "type" : "text" },
        "search_api_language" : { "type" : "string" },
        "search_api_aggregation_1" : { "type" : "text" },
        "field_inserat_referenz:nid" : { "type" : "integer" },
        "field_inserat_referenz:title" : { "type" : "text" },
        "field_inserat_branchen:tid" : { "type" : "list\\u003Cinteger\\u003E" },
        "field_inserat_branchen:name" : { "type" : "list\\u003Ctext\\u003E" },
        "field_inserat_branchen:description" : { "type" : "list\\u003Ctext\\u003E" },
        "field_inserat_branchen:parent" : {
          "type" : "list\\u003Clist\\u003Cinteger\\u003E\\u003E",
          "entity_type" : "taxonomy_term"
        },
        "field_inserat_branchen:parents_all" : {
          "type" : "list\\u003Clist\\u003Cinteger\\u003E\\u003E",
          "entity_type" : "taxonomy_term"
        },
        "field_inserat_branchen:field_business" : {
          "type" : "list\\u003Clist\\u003Cinteger\\u003E\\u003E",
          "entity_type" : "taxonomy_term"
        }
      },
      "data_alter_callbacks" : {
        "search_api_alter_bundle_filter" : {
          "status" : 1,
          "weight" : "-10",
          "settings" : {
            "default" : "0",
            "bundles" : {
              "application" : "application",
              "branche" : "branche",
              "inserat" : "inserat"
            }
          }
        },
        "search_api_alter_node_access" : { "status" : 0, "weight" : "0", "settings" : [] },
        "search_api_alter_node_status" : { "status" : 1, "weight" : "0", "settings" : [] },
        "search_api_alter_language_control" : {
          "status" : 0,
          "weight" : "0",
          "settings" : { "lang_field" : "", "languages" : [] }
        },
        "search_api_alter_add_viewed_entity" : { "status" : 0, "weight" : "0", "settings" : { "mode" : "full" } },
        "search_api_alter_add_url" : { "status" : 0, "weight" : "0", "settings" : [] },
        "search_api_alter_add_aggregation" : {
          "status" : 1,
          "weight" : "0",
          "settings" : { "fields" : { "search_api_aggregation_1" : {
                "name" : "textfield-custom",
                "type" : "fulltext",
                "fields" : [ "title", "field_experience", "field_inserat_description" ],
                "description" : "A Fulltext aggregation of the following fields: Titel, T\\u00e4tigkeiten, Projekt \\/ Aufgabe \\/ Aufgabenstellung."
              }
            }
          }
        },
        "search_api_alter_add_hierarchy" : {
          "status" : 1,
          "weight" : "0",
          "settings" : { "fields" : {
              "field_taetigkeit_ranked:parent" : "field_taetigkeit_ranked:parent",
              "field_taetigkeit_ranked:parents_all" : "field_taetigkeit_ranked:parents_all"
            }
          }
        }
      },
      "processors" : {
        "search_api_case_ignore" : { "status" : 1, "weight" : "0", "settings" : { "fields" : [] } },
        "search_api_html_filter" : {
          "status" : 0,
          "weight" : "10",
          "settings" : {
            "fields" : [],
            "title" : 0,
            "alt" : 1,
            "tags" : "h1 = 5\\r\\nh2 = 3\\r\\nh3 = 2\\r\\nstrong = 2\\r\\nb = 2\\r\\nem = 1.5\\r\\nu = 1.5"
          }
        },
        "search_api_transliteration" : { "status" : 1, "weight" : "15", "settings" : { "fields" : [] } },
        "search_api_tokenizer" : {
          "status" : 0,
          "weight" : "20",
          "settings" : { "fields" : [], "spaces" : "[^[:alnum:]]", "ignorable" : "[\\u0027]" }
        },
        "search_api_stopwords" : {
          "status" : 0,
          "weight" : "30",
          "settings" : {
            "fields" : [],
            "file" : "",
            "stopwords" : "but\\r\\ndid\\r\\nthe this that those\\r\\netc"
          }
        }
      }
    },
    "enabled" : "0",
    "read_only" : "0",
    "rdf_mapping" : []
  }');
  $items['heimwerker_suchen'] = entity_import('search_api_index', '{
    "name" : "Heimwerker suchen",
    "machine_name" : "heimwerker_suchen",
    "description" : null,
    "server" : "local_solr_server",
    "item_type" : "node",
    "options" : {
      "index_directly" : 1,
      "cron_limit" : "50",
      "fields" : {
        "nid" : { "type" : "integer" },
        "type" : { "type" : "string" },
        "title" : { "type" : "text", "boost" : "13.0" },
        "changed" : { "type" : "date" },
        "author" : { "type" : "integer", "entity_type" : "user" },
        "comment_count" : { "type" : "integer" },
        "field_abo" : { "type" : "boolean" },
        "field_anzahl_tokens" : { "type" : "integer" },
        "field_kontakt_telefon" : { "type" : "text" },
        "field_anforderungen_an_heimwerke" : { "type" : "string" },
        "flag_merken_user" : { "type" : "list\\u003Cinteger\\u003E", "entity_type" : "user" },
        "field_paket_referenz" : { "type" : "integer", "entity_type" : "node" },
        "field_eigenes_transportmittel" : { "type" : "list\\u003Cstring\\u003E" },
        "field_eigenes_werkzeug" : { "type" : "list\\u003Cstring\\u003E" },
        "field_erfahrung" : { "type" : "decimal" },
        "field_experience" : { "type" : "list\\u003Cinteger\\u003E", "entity_type" : "taxonomy_term" },
        "field_profil_verbergen" : { "type" : "decimal" },
        "field_stundenlohn" : { "type" : "decimal" },
        "search_api_language" : { "type" : "string" },
        "search_api_aggregation_1" : { "type" : "text", "boost" : "3.0" },
        "author:uid" : { "type" : "integer" },
        "author:name" : { "type" : "text" },
        "author:last_login" : { "type" : "duration" },
        "author:profile_anbieterprofil" : { "type" : "integer", "entity_type" : "profile2" },
        "field_geofield:geo_type" : { "type" : "string" },
        "field_geofield:latlon" : { "type" : "string", "real_type" : "location" },
        "field_inserat_addresse:locality" : { "type" : "text" },
        "field_inserat_addresse:postal_code" : { "type" : "text" },
        "field_paket_referenz:nid" : { "type" : "integer" },
        "field_paket_referenz:title" : { "type" : "text" },
        "field_paket_referenz:field_user_reference" : { "type" : "integer", "entity_type" : "user" },
        "field_erfahrung_beschr:value" : { "type" : "text" },
        "field_experience:name" : { "type" : "list\\u003Ctext\\u003E", "boost" : "5.0" },
        "field_experience:parent" : {
          "type" : "list\\u003Clist\\u003Cinteger\\u003E\\u003E",
          "entity_type" : "taxonomy_term"
        },
        "field_experience:field_business" : {
          "type" : "list\\u003Clist\\u003Cinteger\\u003E\\u003E",
          "entity_type" : "taxonomy_term"
        },
        "author:profile_anbieterprofil:pid" : { "type" : "integer" },
        "author:profile_anbieterprofil:type" : { "type" : "string", "entity_type" : "profile2_type" },
        "author:profile_anbieterprofil:field_max_entfernung" : { "type" : "integer" },
        "author:profile_anbieterprofil:field_nachbarschaftshilfe" : { "type" : "string" },
        "author:profile_anbieterprofil:flag_recommended_user" : { "type" : "list\\u003Cinteger\\u003E", "entity_type" : "user" },
        "author:profile_anbieterprofil:field_identity_checked" : { "type" : "date" },
        "author:field_geofield:bottom" : { "type" : "decimal" },
        "author:field_geofield:srid" : { "type" : "integer" },
        "author:field_geofield:latlon" : { "type" : "string", "real_type" : "location" },
        "author:field_inserat_addresse:locality" : { "type" : "text" },
        "author:field_inserat_addresse:postal_code" : { "type" : "text" },
        "field_experience:parent:name" : { "type" : "list\\u003Clist\\u003Ctext\\u003E\\u003E", "boost" : "3.0" },
        "author:profile_anbieterprofil:field_ingesamt:average_rating" : { "type" : "decimal" },
        "author:profile_anbieterprofil:field_price_vote:average_rating" : { "type" : "string" },
        "author:profile_anbieterprofil:field_dates_profile_listing:value" : { "type" : "date" },
        "author:profile_anbieterprofil:field_dates_profile_listing:value2" : { "type" : "date" },
        "author:profile_anbieterprofil:field_ergebnis:average_rating" : { "type" : "integer" },
        "author:profile_anbieterprofil:field_sorgfalt:average_rating" : { "type" : "integer" },
        "author:profile_anbieterprofil:field_sorgfalt:user_rating" : { "type" : "integer" }
      },
      "data_alter_callbacks" : {
        "search_api_ranges_alter" : { "status" : 0, "weight" : "-50", "settings" : { "fields" : [] } },
        "search_api_alter_bundle_filter" : {
          "status" : 1,
          "weight" : "-10",
          "settings" : {
            "default" : "0",
            "bundles" : { "branche" : "branche", "token_paket" : "token_paket" }
          }
        },
        "search_api_alter_node_access" : { "status" : 0, "weight" : "0", "settings" : [] },
        "search_api_alter_node_status" : { "status" : 1, "weight" : "0", "settings" : [] },
        "search_api_alter_language_control" : {
          "status" : 0,
          "weight" : "0",
          "settings" : { "lang_field" : "", "languages" : [] }
        },
        "search_api_alter_add_hierarchy" : {
          "status" : 1,
          "weight" : "0",
          "settings" : { "fields" : {
              "field_inserat_branchen:parent" : "field_inserat_branchen:parent",
              "field_inserat_branchen:parents_all" : "field_inserat_branchen:parents_all",
              "field_experience:parent" : "field_experience:parent",
              "field_experience:parents_all" : "field_experience:parents_all",
              "field_experience:field_business" : "field_experience:field_business"
            }
          }
        },
        "search_api_alter_add_url" : { "status" : 0, "weight" : "0", "settings" : [] },
        "search_api_alter_add_aggregation" : {
          "status" : 1,
          "weight" : "0",
          "settings" : { "fields" : {
              "search_api_aggregation_1" : {
                "name" : "T\\u00e4tigkeiten",
                "type" : "fulltext",
                "fields" : [
                  "title",
                  "author",
                  "field_inserat_branchen",
                  "field_experience",
                  "field_erfahrung",
                  "author:name",
                  "author:profile_anbieterprofil",
                  "field_inserat_addresse:locality",
                  "field_experience:name",
                  "field_experience:parent",
                  "field_experience:parents_all",
                  "field_experience:field_business",
                  "field_erfahrung_beschr:value",
                  "author:field_inserat_addresse:locality"
                ],
                "description" : "A Fulltext aggregation of the following fields: Titel, Autor, Branchen, T\\u00e4tigkeiten, Erfahrung, Autor \\u00bb Name, Autor \\u00bb Anbieterprofil profile, Addresse \\u00bb Ort (z.B. Stadt), T\\u00e4tigkeiten \\u00bb Name, T\\u00e4tigkeiten \\u00bb \\u00dcbergeordnete Begriffe, T\\u00e4tigkeiten \\u00bb Alle \\u00fcbergeordneten Begriffe, T\\u00e4tigkeiten \\u00bb Branche, Beschreibung \\u00bb Text, Autor \\u00bb Addresse \\u00bb Ort (z.B. Stadt)."
              },
              "search_api_aggregation_2" : {
                "name" : "Gesamt",
                "type" : "sum",
                "fields" : [ "author:profile_anbieterprofil:field_ingesamt:average_rating" ],
                "description" : "A Summe aggregation of the following fields: Autor \\u00bb Anbieterprofil profile \\u00bb Gesamt \\u00bb Durchschnittliche Bewertung."
              }
            }
          }
        },
        "search_api_alter_add_viewed_entity" : { "status" : 1, "weight" : "0", "settings" : { "mode" : "full" } }
      },
      "processors" : {
        "search_api_case_ignore" : {
          "status" : 1,
          "weight" : "0",
          "settings" : { "fields" : {
              "title" : true,
              "author" : true,
              "field_experience" : true,
              "field_erfahrung" : true,
              "search_api_aggregation_1" : true,
              "field_inserat_addresse:locality" : true,
              "field_experience:parent" : true,
              "field_erfahrung_beschr:value" : true
            }
          }
        },
        "search_api_html_filter" : {
          "status" : 0,
          "weight" : "10",
          "settings" : {
            "fields" : { "title" : true },
            "title" : 0,
            "alt" : 1,
            "tags" : "h1 = 5\\r\\nh2 = 3\\r\\nh3 = 2\\r\\nstrong = 2\\r\\nb = 2\\r\\nem = 1.5\\r\\nu = 1.5"
          }
        },
        "search_api_transliteration" : {
          "status" : 0,
          "weight" : "15",
          "settings" : { "fields" : {
              "title" : true,
              "search_api_aggregation_1" : true,
              "author:name" : true,
              "field_inserat_addresse:locality" : true,
              "field_experience:parent" : true,
              "field_erfahrung_beschr:value" : true,
              "field_experience:parent:name" : true
            }
          }
        },
        "search_api_tokenizer" : {
          "status" : 0,
          "weight" : "20",
          "settings" : {
            "fields" : { "title" : true },
            "spaces" : "[^[:alnum:]]",
            "ignorable" : "[\\u0027]"
          }
        },
        "search_api_stopwords" : {
          "status" : 0,
          "weight" : "30",
          "settings" : {
            "fields" : { "title" : true },
            "file" : "",
            "stopwords" : "but\\r\\ndid\\r\\nthe this that those\\r\\netc"
          }
        }
      }
    },
    "enabled" : "1",
    "read_only" : "0",
    "rdf_mapping" : []
  }');
  $items['inserate'] = entity_import('search_api_index', '{
    "name" : "Inserate",
    "machine_name" : "inserate",
    "description" : null,
    "server" : "local_solr_server",
    "item_type" : "node",
    "options" : {
      "index_directly" : 1,
      "cron_limit" : "50",
      "fields" : {
        "nid" : { "type" : "integer" },
        "type" : { "type" : "string" },
        "title" : { "type" : "text" },
        "language" : { "type" : "string" },
        "status" : { "type" : "string" },
        "created" : { "type" : "date" },
        "field_inserat_referenz" : { "type" : "integer", "entity_type" : "node" },
        "field_status" : { "type" : "string" },
        "field_anforderungen_an_heimwerke" : { "type" : "string" },
        "field_inserat_branchen" : { "type" : "list\\u003Cinteger\\u003E", "entity_type" : "taxonomy_term" },
        "search_api_language" : { "type" : "string" },
        "search_api_viewed" : { "type" : "text" },
        "search_api_aggregation_1" : { "type" : "text" },
        "search_api_aggregation_2" : { "type" : "integer" },
        "field_geofield:geom" : { "type" : "text" },
        "field_geofield:latlon" : { "type" : "string", "real_type" : "location" },
        "field_inserat_addresse:locality" : { "type" : "text" },
        "field_inserat_branchen:tid" : { "type" : "list\\u003Cinteger\\u003E" },
        "field_inserat_branchen:name" : { "type" : "list\\u003Ctext\\u003E" },
        "field_inserat_branchen:description" : { "type" : "list\\u003Ctext\\u003E" },
        "field_inserat_branchen:vocabulary" : {
          "type" : "list\\u003Cinteger\\u003E",
          "entity_type" : "taxonomy_vocabulary"
        },
        "field_inserat_branchen:parent" : {
          "type" : "list\\u003Clist\\u003Cinteger\\u003E\\u003E",
          "entity_type" : "taxonomy_term"
        },
        "field_inserat_branchen:parents_all" : {
          "type" : "list\\u003Clist\\u003Cinteger\\u003E\\u003E",
          "entity_type" : "taxonomy_term"
        },
        "field_inserat_description:value" : { "type" : "text" },
        "field_zeitraum:value" : { "type" : "date" },
        "field_zeitraum:value2" : { "type" : "date" },
        "field_zeitraum:duration" : { "type" : "duration" },
        "flag_merken_user:uid" : { "type" : "list\\u003Cinteger\\u003E" }
      },
      "data_alter_callbacks" : {
        "search_api_ranges_alter" : { "status" : 0, "weight" : "-50", "settings" : { "fields" : [] } },
        "search_api_alter_bundle_filter" : {
          "status" : 1,
          "weight" : "-10",
          "settings" : { "default" : "0", "bundles" : { "inserat" : "inserat" } }
        },
        "search_api_alter_node_access" : { "status" : 0, "weight" : "0", "settings" : [] },
        "search_api_alter_node_status" : { "status" : 1, "weight" : "0", "settings" : [] },
        "search_api_alter_language_control" : {
          "status" : 0,
          "weight" : "0",
          "settings" : { "lang_field" : "", "languages" : [] }
        },
        "search_api_alter_add_hierarchy" : {
          "status" : 1,
          "weight" : "0",
          "settings" : { "fields" : {
              "field_inserat_branchen:parent" : "field_inserat_branchen:parent",
              "field_inserat_branchen:parents_all" : "field_inserat_branchen:parents_all"
            }
          }
        },
        "search_api_alter_add_url" : { "status" : 0, "weight" : "0", "settings" : [] },
        "search_api_alter_add_aggregation" : {
          "status" : 1,
          "weight" : "0",
          "settings" : { "fields" : {
              "search_api_aggregation_1" : {
                "name" : "fulltext_custom",
                "type" : "fulltext",
                "fields" : [
                  "title",
                  "field_inserat_branchen",
                  "search_api_aggregation_1",
                  "field_inserat_addresse:locality",
                  "field_inserat_branchen:name",
                  "field_inserat_branchen:description",
                  "field_inserat_branchen:field_business",
                  "field_inserat_branchen:field_channel_title"
                ],
                "description" : "A Fulltext aggregation of the following fields: Titel, Branchen, fulltext_custom, Addresse \\u00bb Ort (z.B. Stadt), Branchen \\u00bb Name, Branchen \\u00bb Beschreibung, Branchen \\u00bb Branche, Branchen \\u00bb Title."
              },
              "search_api_aggregation_2" : {
                "name" : "Bewerbungen",
                "type" : "count",
                "fields" : [ "nid" ],
                "description" : "A Anzahl aggregation of the following fields: Beitrags-ID."
              }
            }
          }
        },
        "search_api_alter_add_viewed_entity" : { "status" : 1, "weight" : "0", "settings" : { "mode" : "full" } }
      },
      "processors" : {
        "search_api_case_ignore" : {
          "status" : 1,
          "weight" : "0",
          "settings" : { "fields" : {
              "title" : true,
              "search_api_aggregation_1" : true,
              "field_inserat_addresse:locality" : true
            }
          }
        },
        "search_api_html_filter" : {
          "status" : 0,
          "weight" : "10",
          "settings" : {
            "fields" : { "title" : true, "field_inserat_addresse:locality" : true },
            "title" : 0,
            "alt" : 1,
            "tags" : "h1 = 5\\r\\nh2 = 3\\r\\nh3 = 2\\r\\nstrong = 2\\r\\nb = 2\\r\\nem = 1.5\\r\\nu = 1.5"
          }
        },
        "search_api_transliteration" : {
          "status" : 1,
          "weight" : "15",
          "settings" : { "fields" : {
              "title" : true,
              "search_api_aggregation_1" : true,
              "field_inserat_addresse:locality" : true
            }
          }
        },
        "search_api_tokenizer" : {
          "status" : 1,
          "weight" : "20",
          "settings" : {
            "fields" : { "title" : true },
            "spaces" : "[^[:alnum:]]",
            "ignorable" : "[\\u0027]"
          }
        },
        "search_api_stopwords" : {
          "status" : 0,
          "weight" : "30",
          "settings" : {
            "fields" : { "title" : true, "field_inserat_addresse:locality" : true },
            "file" : "",
            "stopwords" : "but\\r\\ndid\\r\\nthe this that those\\r\\netc"
          }
        }
      }
    },
    "enabled" : "1",
    "read_only" : "0",
    "rdf_mapping" : []
  }');
  $items['profiles'] = entity_import('search_api_index', '{
    "name" : "Profiles",
    "machine_name" : "profiles",
    "description" : null,
    "server" : "local_solr_server",
    "item_type" : "profile2",
    "options" : {
      "index_directly" : 1,
      "cron_limit" : "50",
      "fields" : {
        "search_api_language" : { "type" : "string" },
        "field_ingesamt:average_rating" : { "type" : "integer" }
      }
    },
    "enabled" : "1",
    "read_only" : "0",
    "rdf_mapping" : []
  }');
  return $items;
}
