We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b584506 commit 28da974Copy full SHA for 28da974
ddocs/medic-db/medic-nouveau/nouveau/contacts_by_freetext/index.js
@@ -36,6 +36,11 @@ function (doc) {
36
}
37
});
38
39
+ var dead = !!doc.date_of_death;
40
+ var muted = !!doc.muted;
41
+ var order = dead + ' ' + muted + ' ' + idx + ' ' + (doc.name && doc.name.toLowerCase());
42
+ index('string', 'cht_sort_order', order, { store: false });
43
+
44
toIndex = toIndex.trim();
45
if (toIndex) {
46
index('text', 'default', toIndex, { store: true });
0 commit comments