Displaying 11 results from an estimated 11 matches for "fts_backend_update_context".
2019 Jan 06
2
Solr -> Xapian ?
...he 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,
??? ??? ??? ??? ????? const struct fts_backend_build_key *key);
Same file provides outline of what a build_key is.
> "build_more" ,
/* Add more content to the index for the currently specified build key.
?? Non-BODY_PART_BINARY data must contain only full valid UTF-8 charac...
2019 Jan 06
2
Solr -> Xapian ?
...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,
> const struct fts_backend_build_key *key);
>
> Same file provides outline of what a build_key is.
>
> "build_more" ,
> /* Add more content to the index for the currently specified build key.
> Non-BODY_PART_BINARY data must contain only full valid UTF-8 char...
2019 Jan 06
2
Solr -> Xapian ?
...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,
> const struct fts_backend_build_key *key);
>
> Same file provides outline of what a build_key is.
>
> "build_more" ,
> /* Add more content to the index for the currently specified build key.
> Non-BODY_PART_BINARY data must contain only full valid UTF-8 char...
2019 Jan 06
0
Solr -> Xapian ?
...gt;
>> "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,
> const struct fts_backend_build_key *key);
>
> Same file provides outline of what a build_key is.
>
>> "build_more" ,
>
> /* Add more content to the index for the currently specified build key.
> Non-BODY_PART_BINARY data must contain only full valid U...
2019 Jan 06
0
Solr -> Xapian ?
...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,
> const struct fts_backend_build_key *key);
>
> Same file provides outline of what a build_key is.
>
> "build_more" ,
> /* Add more content to the index for the currently specified build key.
> Non-BODY_PART_BINARY data must contain only full valid UTF-8 char...
2019 Jan 06
0
Solr -> Xapian ?
...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,
> const struct fts_backend_build_key *key);
>
> Same file provides outline of what a build_key is.
>
> "build_more" ,
> /* Add more content to the index for the currently specified build key.
> Non-BODY_PART_BINARY data must contain only full valid UTF-8 char...
2019 Jan 07
0
Solr -> Xapian ?
...>
> Thank you
>
> JM
>
> -----------------
>
> static int fts_backend_xapian_lookup_multi(struct fts_backend *_backend, struct mailbox *const boxes[], struct mail_search_arg *args, enum fts_lookup_flags flags, struct fts_multi_result *result)
> {
> struct xapian_fts_backend_update_context *ctx =
> (struct xapian_fts_backend_update_context *)_ctx;
>
> int i=0;
>
> while(boxes[i]!=NULL)
> {
> if(fts_backend_xapian_lookup(backend,box[i],args,flags,result->box_results[i])<0) return -1;
> i++;
> }
> return 0;
> }
>
> On 2019-01-06 16:31,...
2019 Jan 06
3
Solr -> Xapian ?
...Waiting fro your feedback on all those questions
Thank you
JM
-----------------
static int fts_backend_xapian_lookup_multi(struct fts_backend *_backend,
struct mailbox *const boxes[], struct mail_search_arg *args, enum
fts_lookup_flags flags, struct fts_multi_result *result)
{
struct xapian_fts_backend_update_context *ctx =
(struct xapian_fts_backend_update_context *)_ctx;
int i=0;
while(boxes[i]!=NULL)
{
if(fts_backend_xapian_lookup(backend,box[i],args,flags,result->box_results[i])<0)
return -1;
i++;
}
return 0;
}
On 2019-01-06 16:31, Joan Moreau via dovecot wrote:
> for fts_backend_xxx_lookup,...
2019 Jan 05
2
Solr -> Xapian ?
Anyone willing to explain those functions ?
On January 5, 2019 14:23:10 Joan Moreau via dovecot <dovecot at dovecot.org>
wrote:
> Thank Stephan
> I basically need to know the role/description of each of the functions of
> the fts_backend:
>
> struct fts_backend fts_backend_xapian = {
> .name = "xapian",
> .flags = FTS_BACKEND_FLAG_NORMALIZE_INPUT, -> what
2019 Jan 22
0
Encoding input
Hi
Are data inputs of fts_backend_update_build_more(struct
fts_backend_update_context *_ctx, const unsigned char *data, size_t
size) already converted to UTF8 ?
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://dovecot.org/pipermail/dovecot/attachments/20190122/e86c8fd3/attachment.html>
2019 Jan 12
2
Solr -> Xapian ?
I somehow fixed the folder issue. (seems some unix rights after too many
tests)
Getting back on the "fts_results" structure:
I am trying:
I_ARRAY_INIT(&(RESULT->DEFINITE_UIDS),R->SIZE);
I_ARRAY_INIT(&(RESULT->MAYBE_UIDS),0);
uint32_t uid;
for(i=0;i<r->size;i++)
{
try
{