Displaying 17 results from an estimated 17 matches for "build_key".
2019 Jan 08
3
Solr -> Xapian ?
...inning to the last indexed mail. If there's a gap, indexer first indexes all the missing mails. So the latest UID is supposed to be the greatest UID. (Supporting out-of-order indexing would be rather difficult to keep track of.)
> Q2 : WHen Indexing an email, the data is not passed by "build_key". Why so ? What is the link with "build_more" ?
The idea is that it calls something like:
- build_key(type=hdr, hdr_name=From)
- build_more("tss at iki.fi")
- build_key(type=hdr, hdr_name=Subject)
- build_more("Re: Solr -> Xapian ?")
- build_key(type=bod...
2019 Jan 06
3
Solr -> Xapian ?
...e of the transactions on the mailbox ???
>
> There is alredy "fts_backend_xxx_update_expunge", so I beleive the management of the expunged messages is *NOT* in the backend, right ?
>
> On 2019-01-06 15:41, Joan Moreau wrote:
>
> also, for fts_backend_solr_update_set_build_key -> where is the data (of the hdr_name or the body) ?
>
> On 2019-01-06 14:10, Joan Moreau wrote:
>
> for the "last uid"-> this is not the last added, but the maximum of the UID in the indexed emails, right ?
>
> On 2019-01-06 11:53, Joan Moreau via dovecot wr...
2019 Jan 11
2
Solr -> Xapian ?
...g to the last indexed mail. If there's a gap, indexer first indexes all the missing mails. So the latest UID is supposed to be the greatest UID. (Supporting out-of-order indexing would be rather difficult to keep track of.)
>
> Q2 : WHen Indexing an email, the data is not passed by "build_key". Why so ? What is the link with "build_more" ?
> The idea is that it calls something like:
>
> - build_key(type=hdr, hdr_name=From)
> - build_more("tss at iki.fi")
> - build_key(type=hdr, hdr_name=Subject)
> - build_more("Re: Solr -> Xapian ?&qu...
2019 Jan 06
2
Solr -> Xapian ?
for the "last uid"-> this is not the last added, but the maximum of the
UID in the indexed emails, right ?
On 2019-01-06 11:53, Joan Moreau via dovecot wrote:
> Thank you
>
> I still don't get the "build_key" function. The email (body, hearders, .. and the uid) is the one (and only) to index . What "key" is that function referring to ? Or is the "key" here the actual email ?
>
> On 2019-01-06 08:43, Stephan Bosch wrote:
>
> Op 06/01/2019 om 01:00 schreef Joan Mo...
2019 Jan 11
2
Solr -> Xapian ?
...est UID.
</div>
<div>
(Supporting out-of-order indexing would be rather difficult to keep
</div>
<div>
track of.)
</div>
<div>
<br>
</div>
<div>
Q2 : WHen Indexing an email, the data is not passed by "build_key". Why
</div>
<div>
so ? What is the link with "build_more" ?
</div>
<div>
The idea is that it calls something like:
</div>
<div>
<br>
</div>
<div>
- build_key(type=hdr, hdr_name=From)
<...
2019 Jan 09
0
Solr -> Xapian ?
...the last indexed mail. If there's a gap, indexer first indexes all the missing mails. So the latest UID is supposed to be the greatest UID. (Supporting out-of-order indexing would be rather difficult to keep track of.)
>
>> Q2 : WHen Indexing an email, the data is not passed by "build_key". Why so ? What is the link with "build_more" ?
>
> The idea is that it calls something like:
>
> - build_key(type=hdr, hdr_name=From)
> - build_more("tss at iki.fi")
> - build_key(type=hdr, hdr_name=Subject)
> - build_more("Re: Solr -> Xapian...
2019 Jan 06
2
Solr -> Xapian ?
...would the backend be aware of the
transactions on the mailbox ???
There is alredy "fts_backend_xxx_update_expunge", so I beleive the
management of the expunged messages is *NOT* in the backend, right ?
On 2019-01-06 15:41, Joan Moreau wrote:
> also, for fts_backend_solr_update_set_build_key -> where is the data (of the hdr_name or the body) ?
>
> On 2019-01-06 14:10, Joan Moreau wrote:
>
> for the "last uid"-> this is not the last added, but the maximum of the UID in the indexed emails, right ?
>
> On 2019-01-06 11:53, Joan Moreau via dovecot wr...
2019 Jan 06
2
Solr -> Xapian ?
...x. */
int fts_backend_get_last_uid(struct fts_backend *backend, struct mailbox
*box,
??? ??? ??? ???? uint32_t *last_uid_r);
The solr sources ( src/plugins/fts-solr/fts-backend-solr.c:213) tell me
this returns the last UID added to the index for the given mailbox and
FTS index.
> "set_build_key"
From src/plugins/fts/fts-api.h:
/* Switch to building index for specified key. If backend doesn't want to
?? index this key, it can return FALSE and caller will skip to next key. */
bool fts_backend_update_set_build_key(struct fts_backend_update_context
*ctx,
??? ??? ??? ??? ????? c...
2019 Jan 11
0
Solr -> Xapian ?
...e beginning to
the last indexed mail. If there's a gap, indexer first indexes all the
missing mails. So the latest UID is supposed to be the greatest UID.
(Supporting out-of-order indexing would be rather difficult to keep
track of.)
Q2 : WHen Indexing an email, the data is not passed by "build_key". Why
so ? What is the link with "build_more" ?
The idea is that it calls something like:
- build_key(type=hdr, hdr_name=From)
- build_more("tss at iki.fi")
- build_key(type=hdr, hdr_name=Subject)
- build_more("Re: Solr -> Xapian ?")
- build_key(type=body...
2019 Jan 11
0
Solr -> Xapian ?
...9;s a gap, indexer first indexes all the
>> missing mails. So the latest UID is supposed to be the greatest UID.
>> (Supporting out-of-order indexing would be rather difficult to keep
>> track of.)
>>
>> Q2 : WHen Indexing an email, the data is not passed by "build_key". Why
>> so ? What is the link with "build_more" ?
>> The idea is that it calls something like:
>>
>> - build_key(type=hdr, hdr_name=From)
>> - build_more(" tss at iki.fi")
>> - build_key(type=hdr, hdr_name=Subject)
>> - buil...
2019 Jan 07
0
Solr -> Xapian ?
...Q1 : get_last_uid -> Is this the last UID indexed (which may be not the
greatest value), or the gratest value (which may not be the latest) (the
code of existing plugins is unclear about this, Solr looks for the
greatest for insance)
Q2 : WHen Indexing an email, the data is not passed by "build_key". Why
so ? What is the link with "build_more" ?
Q3 : Searching/Lookup : THe fheader in which to llok for (must be a
least among "cc, to, from, subject, body") is not appearing in the
'struct' data. WHere to find it ?
Q4 : Refresh : this is very unclear. How come...
2019 Jan 07
1
Solr -> Xapian ?
..._uid -> Is this the last UID indexed (which may be not the greatest value), or the gratest value (which may not be the latest) (the code of existing plugins is unclear about this, Solr looks for the greatest for insance)
>
> Q2 : WHen Indexing an email, the data is not passed by "build_key". Why so ? What is the link with "build_more" ?
>
> Q3 : Searching/Lookup : THe fheader in which to llok for (must be a least among "cc, to, from, subject, body") is not appearing in the 'struct' data. WHere to find it ?
>
> Q4 : Refresh : this...
2019 Jan 06
0
Solr -> Xapian ?
Thank you
I still don't get the "build_key" function. The email (body, hearders,
.. and the uid) is the one (and only) to index . What "key" is that
function referring to ? Or is the "key" here the actual email ?
On 2019-01-06 08:43, Stephan Bosch wrote:
> Op 06/01/2019 om 01:00 schreef Joan Moreau:
>
>...
2019 Jan 06
0
Solr -> Xapian ?
also, for fts_backend_solr_update_set_build_key -> where is the data (of
the hdr_name or the body) ?
On 2019-01-06 14:10, Joan Moreau wrote:
> for the "last uid"-> this is not the last added, but the maximum of the UID in the indexed emails, right ?
>
> On 2019-01-06 11:53, Joan Moreau via dovecot wrote:
>
>...
2019 Jan 06
0
Solr -> Xapian ?
...e of the transactions on the mailbox ???
>
> There is alredy "fts_backend_xxx_update_expunge", so I beleive the management of the expunged messages is *NOT* in the backend, right ?
>
> On 2019-01-06 15:41, Joan Moreau wrote:
>
> also, for fts_backend_solr_update_set_build_key -> where is the data (of the hdr_name or the body) ?
>
> On 2019-01-06 14:10, Joan Moreau wrote:
>
> for the "last uid"-> this is not the last added, but the maximum of the UID in the indexed emails, right ?
>
> On 2019-01-06 11:53, Joan Moreau via dovecot wr...
2019 Jan 11
4
Solr -> Xapian ?
...ed mail. If there's a gap, indexer first indexes all the
> missing mails. So the latest UID is supposed to be the greatest UID.
> (Supporting out-of-order indexing would be rather difficult to keep
> track of.)
>
> Q2 : WHen Indexing an email, the data is not passed by "build_key". Why
> so ? What is the link with "build_more" ?
> The idea is that it calls something like:
>
> - build_key(type=hdr, hdr_name=From)
> - build_more(" tss at iki.fi")
> - build_key(type=hdr, hdr_name=Subject)
> - build_more("Re: Solr ->...
2019 Jan 05
2
Solr -> Xapian ?
...loc,
> fts_backend_xapian_init,
> fts_backend_xapian_deinit,
> fts_backend_xapian_get_last_uid,
> fts_backend_xapian_update_init,
> fts_backend_xapian_update_deinit,
> fts_backend_xapian_update_set_mailbox,
> fts_backend_xapian_update_expunge,
> fts_backend_xapian_update_set_build_key,
> fts_backend_xapian_update_unset_build_key,
> fts_backend_xapian_update_build_more,
> fts_backend_xapian_refresh,
> fts_backend_xapian_rescan,
> fts_backend_xapian_optimize,
> fts_backend_default_can_lookup,
> fts_backend_xapian_lookup,
> fts_backend_xapian_lookup_multi,
&...