Page MenuHomePhabricator

D18580.diff
No OneTemporary

D18580.diff

diff --git a/src/applications/search/engineextension/PhabricatorFerretFulltextEngineExtension.php b/src/applications/search/engineextension/PhabricatorFerretFulltextEngineExtension.php
--- a/src/applications/search/engineextension/PhabricatorFerretFulltextEngineExtension.php
+++ b/src/applications/search/engineextension/PhabricatorFerretFulltextEngineExtension.php
@@ -66,9 +66,12 @@
);
break;
}
- }
- $key_all = PhabricatorSearchDocumentFieldType::FIELD_ALL;
+ $virtual_fields[] = array(
+ PhabricatorSearchDocumentFieldType::FIELD_ALL,
+ $raw_corpus,
+ );
+ }
$empty_template = array(
'raw' => array(),
@@ -76,9 +79,7 @@
'normal' => array(),
);
- $ferret_corpus_map = array(
- $key_all => $empty_template,
- );
+ $ferret_corpus_map = array();
foreach ($virtual_fields as $field) {
list($key, $raw_corpus) = $field;
@@ -98,10 +99,6 @@
$ferret_corpus_map[$key]['raw'][] = $raw_corpus;
$ferret_corpus_map[$key]['term'][] = $term_corpus;
$ferret_corpus_map[$key]['normal'][] = $normal_corpus;
-
- $ferret_corpus_map[$key_all]['raw'][] = $raw_corpus;
- $ferret_corpus_map[$key_all]['term'][] = $term_corpus;
- $ferret_corpus_map[$key_all]['normal'][] = $normal_corpus;
}
$ferret_fields = array();

File Metadata

Mime Type
text/plain
Expires
Fri, Nov 8, 10:59 AM (1 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6758019
Default Alt Text
D18580.diff (1 KB)

Event Timeline