Jump to content

Template talk:Engine

Page contents not supported in other languages.
Add topic
From Wikisource
Latest comment: 1 year ago by Bovlb in topic searchfilter

Name?

[edit]

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)Reply

Doesn't work for transcluded Page NS content?

[edit]

"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 <pages /> bits)? Sam Wilson 00:23, 30 January 2017 (UTC)Reply

Not functional?

[edit]

@Inductiveload: 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)Reply

@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. Inductiveloadtalk/contribs 13:08, 23 November 2021 (UTC)Reply

@Inductiveload: 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)Reply

@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 diurnal from the box at Science and Health? I get this. Inductiveloadtalk/contribs 13:23, 23 November 2021 (UTC)Reply

@Inductiveload: 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)Reply

Glad it's working! Inductiveloadtalk/contribs 13:34, 23 November 2021 (UTC)Reply

searchfilter

[edit]

Wikisource: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 @Inductiveload. Bovlb (talk) 19:07, 9 October 2023 (UTC)Reply

@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)Reply
@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)Reply
Seems to be fixed now. Bovlb (talk) 17:57, 13 October 2023 (UTC)Reply
Checkmark This section is considered resolved, for the purposes of archiving. If you disagree, replace this template with your comment. Bovlb (talk) 17:57, 13 October 2023 (UTC)Reply