Template talk:Engine

Name?
Does anyone know why this is called 'engine'? It seems a strange name for a search box template. :-) Does anyone mind if I create a redirect from Search box (or even, to be bold, the other way around, and rename this to 'search box')? Sam Wilson 06:01, 15 November 2016 (UTC)
 * I went for it and created a few plausible redirects. —Justin ( koavf ) ❤T☮C☺M☯ 15:59, 16 November 2016 (UTC)
 * Good stuff! I've listed the alternative names in the /doc. But if the docs are using 'search box' do you think we should do the redirection the other way around, so 'engine' redirects there? Just for clarity. And we should advertise this template more! It's useful. (personally, I think there's a case to be made for adding it to every work's header). Sam Wilson 04:23, 17 November 2016 (UTC)

Doesn't work for transcluded Page NS content?
"Caveat: Searches using this template don't work with content transcluded from the page namespace." Is that still true? It seems to work correctly for me. Is the bug the thing that, when a title-word match is found, the content excerpt is not correct (it seems to not expand the bits)? Sam Wilson 00:23, 30 January 2017 (UTC)

Not functional?
The searches using this template don't seem useful any more. For example, at Science and Health I used to get a list of lines and works where the search text appeared. Now I just get some sort of page which doesn't seem to be useful for my purpose (searching Science and Health only). Bob Burkhardt (talk) 12:58, 23 November 2021 (UTC)


 * @Bob Burkhardt (not that I've changed anything relevant to this) I'm not sure what you mean by "Now I just get some sort of page". I get a search result page. The prefix "Science and Health" is shared with, e.g. Science and Health with Key to the Scriptures (1898), so that's why you're seeing other works in the results. Maybe we should add a slash, but then it won't find content on top-level page you searched from. Inductiveload— talk/contribs 13:08, 23 November 2021 (UTC)

Yes for that particular search box I used to get results for all editions of Science and Health as I expected. Now I just get sent to another page which has search suggestions, but no results. Bob Burkhardt (talk) 13:20, 23 November 2021 (UTC)


 * @Bob Burkhardt that's not what I see, I get a page of results. Could you provide the URL that it sends you to if you search for, say  from the box at Science and Health? I get this. Inductiveload— talk/contribs 13:23, 23 November 2021 (UTC)

Sorry, you are right. It works OK. I was searching for an item that wasn't in a work, "Tieck" in Summer on the Lakes, where I had newly installed the engine. I expected it to yield a result since a Google search turned "Tieck" up in an edition of Summer on the Lakes, not on Wikisource. I didn't test the box at Science and Health appropriately. I must have used "Tieck" there as well, which would not be expected to turn up anything in that work. Thanks for your help. Bob Burkhardt (talk) 13:34, 23 November 2021 (UTC)


 * Glad it's working! Inductiveload— talk/contribs 13:34, 23 November 2021 (UTC)

searchfilter
Scriptorium/Navigation sets "searchfilter=prefer-recent:2,30" (added in 2021). Not only is this parameter undocumented, but it appears to break search. Did something change? CC. Bovlb (talk) 19:07, 9 October 2023 (UTC)


 * @Bovlb: It looks like a bug in MW search. I've filed a bug report for it. Xover (talk) 14:24, 11 October 2023 (UTC)
 * @Xover Based on the response and some testing, I think that changing it to "prefer-recent:1,30" might be enough to fix it. Bovlb (talk) 16:11, 11 October 2023 (UTC)
 * Seems to be fixed now. Bovlb (talk) 17:57, 13 October 2023 (UTC)