0001-re-added-own-boosts.patch 1.3 KB

12345678910111213141516171819202122232425262728
  1. From 6402fc7ab8f6343defbee7111dee7dd16a5082fc Mon Sep 17 00:00:00 2001
  2. From: Bachir Soussi Chiadmi <bachir@g-u-i.net>
  3. Date: Fri, 7 Feb 2014 10:10:15 +0100
  4. Subject: [PATCH 1/4] re-added own boosts
  5. ---
  6. search_api.admin.inc | 5 +++--
  7. 1 file changed, 3 insertions(+), 2 deletions(-)
  8. diff --git a/search_api.admin.inc b/search_api.admin.inc
  9. index f4210f4..b2269d6 100644
  10. --- a/search_api.admin.inc
  11. +++ b/search_api.admin.inc
  12. @@ -1658,8 +1658,9 @@ function search_api_admin_index_fields(array $form, array &$form_state, SearchAp
  13. // An array of option arrays for types, keyed by nesting level.
  14. $types = array(0 => search_api_field_types());
  15. $entity_types = entity_get_info();
  16. - $boosts = drupal_map_assoc(array('0.1', '0.2', '0.3', '0.5', '0.8', '1.0', '2.0', '3.0', '5.0', '8.0', '13.0', '21.0'));
  17. -
  18. + //$boosts = drupal_map_assoc(array('0.1', '0.2', '0.3', '0.5', '0.8', '1.0', '2.0', '3.0', '5.0', '8.0', '13.0', '21.0'));
  19. + $boosts = drupal_map_assoc(array('0.1', '0.2', '0.3', '0.5', '0.8', '1.0', '2.0', '3.0', '5.0', '8.0', '13.0', '21.0', '100', '1000', '1010', '1020', '1030', '1040', '1050', '1060'));
  20. +
  21. $fulltext_types = array(0 => array('text'));
  22. // Add all custom data types with fallback "text" to fulltext types as well.
  23. foreach (search_api_get_data_type_info() as $id => $type) {
  24. --
  25. 2.3.5