|
@@ 155-160 (lines=6) @@
|
| 152 |
|
// resort them into the order returned by solr by looping through $search_results |
| 153 |
|
$entities = array(); |
| 154 |
|
$entities_unsorted = array(); |
| 155 |
|
if ($search_results) { |
| 156 |
|
$entities_unsorted = elgg_get_entities(array( |
| 157 |
|
'guids' => array_keys($search_results), |
| 158 |
|
'limit' => false |
| 159 |
|
)); |
| 160 |
|
} |
| 161 |
|
|
| 162 |
|
$show_score = elgg_get_plugin_setting('show_score', 'elgg_solr'); |
| 163 |
|
foreach ($search_results as $guid => $matches) { |
|
@@ 349-354 (lines=6) @@
|
| 346 |
|
// get the entities |
| 347 |
|
$entities = array(); |
| 348 |
|
$entities_unsorted = array(); |
| 349 |
|
if ($search_results) { |
| 350 |
|
$entities_unsorted = elgg_get_entities(array( |
| 351 |
|
'guids' => array_keys($search_results), |
| 352 |
|
'limit' => false |
| 353 |
|
)); |
| 354 |
|
} |
| 355 |
|
|
| 356 |
|
$show_score = elgg_get_plugin_setting('show_score', 'elgg_solr'); |
| 357 |
|
foreach ($search_results as $guid => $matches) { |
|
@@ 555-560 (lines=6) @@
|
| 552 |
|
// get the entities |
| 553 |
|
$entities = array(); |
| 554 |
|
$entities_unsorted = array(); |
| 555 |
|
if ($search_results) { |
| 556 |
|
$entities_unsorted = elgg_get_entities(array( |
| 557 |
|
'guids' => array_keys($search_results), |
| 558 |
|
'limit' => false |
| 559 |
|
)); |
| 560 |
|
} |
| 561 |
|
|
| 562 |
|
$show_score = elgg_get_plugin_setting('show_score', 'elgg_solr'); |
| 563 |
|
foreach ($search_results as $guid => $matches) { |
|
@@ 757-762 (lines=6) @@
|
| 754 |
|
// get the entities |
| 755 |
|
$entities = array(); |
| 756 |
|
$entities_unsorted = array(); |
| 757 |
|
if ($search_results) { |
| 758 |
|
$entities_unsorted = elgg_get_entities(array( |
| 759 |
|
'guids' => array_keys($search_results), |
| 760 |
|
'limit' => false |
| 761 |
|
)); |
| 762 |
|
} |
| 763 |
|
|
| 764 |
|
$show_score = elgg_get_plugin_setting('show_score', 'elgg_solr'); |
| 765 |
|
foreach ($search_results as $guid => $matches) { |
|
@@ 973-978 (lines=6) @@
|
| 970 |
|
// get the entities |
| 971 |
|
$entities = array(); |
| 972 |
|
$entities_unsorted = array(); |
| 973 |
|
if ($search_results) { |
| 974 |
|
$entities_unsorted = elgg_get_entities(array( |
| 975 |
|
'guids' => array_keys($search_results), |
| 976 |
|
'limit' => false |
| 977 |
|
)); |
| 978 |
|
} |
| 979 |
|
|
| 980 |
|
$show_score = elgg_get_plugin_setting('show_score', 'elgg_solr'); |
| 981 |
|
foreach ($search_results as $guid => $matches) { |