search for: array_idx_set

Displaying 3 results from an estimated 3 matches for "array_idx_set".

2019 Jan 12
2
Solr -> Xapian ?
...RAY_INIT(&(RESULT->DEFINITE_UIDS),R->SIZE); I_ARRAY_INIT(&(RESULT->MAYBE_UIDS),0); uint32_t uid; for(i=0;i<r->size;i++) { try { uid=atol(backend->dbr->get_document(r->data[i]).get_value(1).c_str()); i_warning("Rresult UID=%d",uid); ARRAY_IDX_SET(&(RESULT->DEFINITE_UIDS),I,&UID); } catch(Xapian::Error e) { i_warning(e.get_msg().c_str()); } } I can see in hte log that UID are properly found on Xapian database, but no results are transmitted to dovecot and to the imap client (roundcube in my case) Help please...
2019 Jan 13
0
Solr -> Xapian ?
...DEFINITE_UIDS),R->SIZE); > I_ARRAY_INIT(&(RESULT->MAYBE_UIDS),0); > > uint32_t uid; > for(i=0;i<r->size;i++) > { > try > { > uid=atol(backend->dbr->get_document(r->data[i]).get_value(1).c_str()); > i_warning("Rresult UID=%d",uid); > ARRAY_IDX_SET(&(RESULT->DEFINITE_UIDS),I,&UID); > } > catch(Xapian::Error e) > { > i_warning(e.get_msg().c_str()); > } > } > > I can see in hte log that UID are properly found on Xapian database, but no results are transmitted to dovecot and to the imap client (roundcube in m...
2019 Jan 12
2
Solr -> Xapian ?
THank you Now, for the results I see the member of fts_result is : ARRAY_TYPE(seq_range) definite_uids; I have the UID as a aray of uint32_t * How to put my UIDs into this "definite_uids" ? Obviously this is not a simple array/pointer. How to say someting similar to result->definite_uids[1]=my_uid ? On 2019-01-12 10:25, Timo Sirainen wrote: > On 11 Jan 2019, at 21.23,