Hello!

The Discovery list [1] might be a better place, but most the people working
on Search should be on Wikitech as well. I've pinged a few people who might
be able to provide some guidance.

  Have fun!

    Guillaume



[1]
https://lists.wikimedia.org/postorius/lists/discovery.lists.wikimedia.org/

On Mon, 25 Oct 2021 at 06:37, Matto Marjanovic <[email protected]> wrote:

> Hi,
>
> Suppose I have an extension that utilizes SearchIndexFieldsHook and
> SearchDataForIndexHook to add a novel field, called 'more_file_text',
> to the indexed data for pages.  This new field is of INDEX_TYPE_TEXT.
>
> Via those two hooks, I've managed to get data for this field stored in the
> elasticsearch index.  But... how do I get CirrusSearch to actually include
> this field in its searches?
>
> It would be a-ok if the 'more_file_text' could just be treated as
> additional
> content for the 'file_text' field.  (However, simply populating the
> existing
> 'file_text' field via the SearchDataForIndexHook does not work, because the
> FileContentHandler::getDataForSearchIndex() method runs after the hook and
> always forcefully overwrites the 'file_text' field.)
>
> Will any existing CirrusSearch hooks or configuration parameters allow me
> to achieve this?
>
> (And/or, is there a better forum for me to ask this question?)
>
> -mm
>
> _______________________________________________
> Wikitech-l mailing list -- [email protected]
> To unsubscribe send an email to [email protected]
> https://lists.wikimedia.org/postorius/lists/wikitech-l.lists.wikimedia.org/
>


-- 
*Guillaume Lederrey* (he/him)
Engineering Manager
Wikimedia Foundation <https://wikimediafoundation.org/>
_______________________________________________
Wikitech-l mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://lists.wikimedia.org/postorius/lists/wikitech-l.lists.wikimedia.org/

Reply via email to