summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
c82accd)
Using `O' (owner) here (according Xapian omega's
termprefixes.rst) since we could say the newsgroup or inbox is
the owner of the given message.
index_headers($self, $smsg);
if (defined(my $eidx_key = $smsg->{eidx_key})) {
index_headers($self, $smsg);
if (defined(my $eidx_key = $smsg->{eidx_key})) {
+ $doc->add_boolean_term('O'.$eidx_key);
$doc->add_boolean_term('P'.
"$eidx_key:$smsg->{num}:$smsg->{blob}");
}
$doc->add_boolean_term('P'.
"$eidx_key:$smsg->{num}:$smsg->{blob}");
}
begin_txn_lazy($self);
my $doc = _get_doc($self, $docid, $oid) or return;
term_generator($self)->set_document($doc);
begin_txn_lazy($self);
my $doc = _get_doc($self, $docid, $oid) or return;
term_generator($self)->set_document($doc);
+ $doc->add_boolean_term('O'.$eidx_key);
$doc->add_boolean_term('P'."$eidx_key:$xnum:$oid");
index_list_id($self, $doc, $eml);
$self->{xdb}->replace_document($docid, $doc);
$doc->add_boolean_term('P'."$eidx_key:$xnum:$oid");
index_list_id($self, $doc, $eml);
$self->{xdb}->replace_document($docid, $doc);