Lines Matching refs:hits
370 Hits *hits = index->searcher->search(&query);
372 for (size_t i = 0; i < hits->length(); i++) {
375 if (lucene_doc_get_uid(index, &hits->doc(i),
384 _CLDELETE(hits);
899 Hits *hits = index->searcher->search(&query, &sort);
901 for (size_t i = 0; i < hits->length(); i++) {
902 ret = rescan_open_mailbox(&ctx, &hits->doc(i));
904 ret = rescan_next(&ctx, &hits->doc(i));
908 index->reader->deleteDocument(hits->id(i));
910 _CLDELETE(hits);
990 Hits *hits = index->searcher->search(&query);
992 for (size_t i = 0; i < hits->length(); i++) {
995 if (lucene_doc_get_uid(index, &hits->doc(i),
998 index->reader->deleteDocument(hits->id(i));
1000 _CLDELETE(hits);
1361 Hits *hits = index->searcher->search(&query);
1367 for (size_t i = 0; i < hits->length(); i++) {
1370 if (lucene_doc_get_uid(index, &hits->doc(i),
1385 score->score = hits->score(i);
1388 _CLDELETE(hits);
1478 Hits *hits = index->searcher->search(&query);
1480 for (size_t i = 0; i < hits->length(); i++) {
1483 Field *field = hits->doc(i).getField(_T("box"));
1498 if (lucene_doc_get_uid(index, &hits->doc(i),
1516 score->score = hits->score(i);
1519 _CLDELETE(hits);
1565 Hits *hits;
1590 iter->hits = index->searcher->search(iter->query, iter->sort);
1601 if (iter->hits == NULL)
1603 if (iter->i == iter->hits->length())
1606 Document *doc = &iter->hits->doc(iter->i);
1623 if (iter->hits != NULL)
1624 _CLDELETE(iter->hits);