Lines Matching defs:doc
78 Document *doc;
321 lucene_doc_get_uid(struct lucene_index *index, Document *doc, uint32_t *uid_r)
323 Field *field = doc->getField(_T("uid"));
341 lucene_doc_get_part(struct lucene_index *index, Document *doc)
343 Field *field = doc->getField(_T("part"));
375 if (lucene_doc_get_uid(index, &hits->doc(i),
541 if (index->doc == NULL)
551 index->writer->addDocument(index->doc, analyzer);
557 _CLDELETE(index->doc);
558 index->doc = NULL;
576 index->doc = _CLNEW Document();
578 index->doc->add(*_CLNEW Field(_T("uid"), id, Field::STORE_YES | Field::INDEX_UNTOKENIZED));
581 index->doc->add(*_CLNEW Field(_T("part"), id, Field::STORE_YES | Field::INDEX_UNTOKENIZED));
583 index->doc->add(*_CLNEW Field(_T("box"), index->mailbox_guid, Field::STORE_YES | Field::INDEX_UNTOKENIZED));
612 index->doc->add(*_CLNEW Field(_T("hdr"), wname, Field::STORE_NO | token_flag));
613 index->doc->add(*_CLNEW Field(_T("hdr"), dest, Field::STORE_NO | token_flag));
616 index->doc->add(*_CLNEW Field(wname, dest, Field::STORE_NO | token_flag));
620 index->doc->add(*_CLNEW Field(_T("body"), dest, Field::STORE_NO | token_flag));
706 fts_lucene_get_mailbox_guid(struct lucene_index *index, Document *doc,
709 Field *field = doc->getField(_T("box"));
726 rescan_open_mailbox(struct rescan_context *ctx, Document *doc)
731 if (fts_lucene_get_mailbox_guid(ctx->index, doc, guid) < 0)
786 rescan_next(struct rescan_context *ctx, Document *doc)
790 if (lucene_doc_get_uid(ctx->index, doc, &lucene_uid) < 0)
902 ret = rescan_open_mailbox(&ctx, &hits->doc(i));
904 ret = rescan_next(&ctx, &hits->doc(i));
995 if (lucene_doc_get_uid(index, &hits->doc(i),
1370 if (lucene_doc_get_uid(index, &hits->doc(i),
1483 Field *field = hits->doc(i).getField(_T("box"));
1498 if (lucene_doc_get_uid(index, &hits->doc(i),
1606 Document *doc = &iter->hits->doc(iter->i);
1610 (void)fts_lucene_get_mailbox_guid(iter->index, doc,
1612 (void)lucene_doc_get_uid(iter->index, doc, &iter->rec.uid);
1613 iter->rec.part_num = lucene_doc_get_part(iter->index, doc);