Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14024591
D18580.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D18580.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D18580: Remove some redundant information from the Ferret engine index
Attached
Detach File
Event Timeline
Log In to Comment