[07:44:47] Hi there. I’m wondering how to get a homemade infobox to do some simple calculations like var3=({{{var1}}}+{{{var2}}})*2+5. I’ve digged a bit into doc but it looks like {{Sum}} is not recognized, and I would prefer not to dive into lua for such simple things [07:48:08] Latest stable 1.43.1, with Scribunto enabled [08:06:49] ha, got it with wfLoadExtension( 'ParserFunctions' ); enabled and #expr. Thanks anyway :) [13:33:35] dcausse Good morning! yesterday I created a new topic on the CirrusSearch discussion here: https://www.mediawiki.org/wiki/Extension_talk:CirrusSearch . Also I think I was able to run "UpdateSearchIndexConfig.php --reindexAndR [13:33:35] emoveOk --indexIdentifier now" successfully and also ran ForceSearchIndex.php to rebuild the index, but the results did seem change much.. I also realized yesterday I probably did not state my issue clearly, so I put it on the discussion page, pasting here too: Basically I want to make it work just like https://zh.wikipedia.org/ (not sure if it is [13:33:36] using the same approach CirrusSearch + Elasticsearch?) The primary issue I currently have is that, for e.g. if I search for "方济各", I want the results to only show pages that has this phrase "方济各" (like if you search for the same on wikipedia: [13:33:36] https://zh.wikipedia.org/w/index.php?search=%E6%96%B9%E6%B5%8E%E5%90%84&title=Special%3A%E6%90%9C%E7%B4%A2&profile=advanced&fulltext=1&ns0=1&searchToken=68qlm8r96e8225klwzw6fkjyd), not ["方" or "济" or "各"] (which is what it currently is doing).. Here is my current test instance if you want to try it: [13:33:37] http://44.199.64.14/w/index.php?search=%E6%96%B9%E6%B5%8E%E5%90%84&title=Special%3A%E6%90%9C%E7%B4%A2&wprov=acrw1_-1&ns0=1&ns1=1&ns14=1&ns4100=1&ns4200=1 [13:35:46] Guest68: hey, yes saw this, havent had time to respond yet, but yes if you want to mimic what's done on the chinese wikipedia you should use the setup we have for chinese (with stconvert & smartcn) [13:36:01] and remove analysis-ik [13:36:41] dcausse ok I can revert it back to out of box, what else I need to configure to make it work just like wikipedia? [13:37:08] is there a page specifically about the setup for chinese? [13:37:19] Guest68: I think this should be it, hopefully the plugins are going to be detected [13:38:30] ok let me revert the change now and rebuild the index. [13:39:01] Guest68: I don't think we have a comprehensive doc but Cirrus has plenty of debug outputs that might help to figure out what's different, e.g. the config https://zh.wikipedia.org/w/api.php?action=cirrus-config-dump so that you can detect if there are any difference with your setup [13:39:28] and https://zh.wikipedia.org/w/api.php?action=cirrus-mapping-dump the generated mapping we have [13:39:47] and https://zh.wikipedia.org/w/api.php?action=cirrus-settings-dump for the analysis settings [13:39:54] could be useful for debugging [13:40:07] these endpoints should work on your wiki too [13:41:15] Nice, thank you for the info! Now that I know the settings of wikipedia, is there a way I can just quickly copy & paste it to my settings? [13:42:51] depends on what you mean by "quickly" :P [13:43:07] as long as there is a way, that will work! :) [13:43:30] best I can think of is https://noc.wikimedia.org/wiki.php?wiki=zhwiki&format=json but very likely that plenty of these options would be meaningless for you [13:44:34] hmm.. this is basically ALL the settings right? not just about search [13:44:46] yes... [13:45:25] ok, so I can go through this, and if I want to replicate any of it, for e.g. these below, what should I do: "CirrusSearch": "debug", [13:45:25]         "CirrusSearchDeprecation": "debug", [13:45:26]         "cirrussearch-request": { [13:45:26]             "udp2log": false, [13:45:27]             "logstash": false, [13:45:27]             "eventbus": "debug" [13:45:28]         }, [13:45:28]         "CirrusSearchChangeFailed": "debug", [13:45:29]         "CirrusSearchSlowRequests": "debug", [13:45:33] the one about search are here https://zh.wikipedia.org/w/api.php?action=cirrus-config-dump but here again this might includes plenty of default settings you might not want to repeat [13:46:22] Guest68: these are the logger settings not really search settings [13:46:28] Got it. if I want to replicate one of it, say ""CirrusSearchConnectionAttempts": 3", where should I update? [13:47:16] Guest68: first check that it's not the default value in extension.json, then simply add $wg in front of this [13:47:31] $wgCirrusSearchConnectionAttempts = 3 in LocalSettings.php [13:48:14] but I don't think there are many options that would affect the chinese analysis setup [13:48:43] I would simply try again by installing smartcn and removing analysis-ik it might just work [14:01:22] hmm... so I need to install smartcn explicitly? lol, I did not realize that! [14:01:33] I assumed it is installed out of box? [14:12:20] no it's not, unlike opensearch default image very few (none?) plugins are installed out of the box [14:17:41] ok I see, that might be the problem then! Let me install it. Thank you very much! dcausse [14:17:48] np! [18:40:45] Good afternoon dcausse, sorry bothering you again! while I was trying to recreate the index, I run this "curl -s "localhost:9200/_cat/indices?v" | less -S" to show all the indexes currently there, seems there are quite a few : https://ibb.co/s9B2ZDYg , any idea why there are two "mediawiki_" ones? are they generated by elasticsearch? and how about [18:40:45] "vim2_general" and "vim2_content"? (vim2 is the database name) [18:41:47] I am trying to figure out if I should delete some of them? and if I dont delete the indexes that are not be used, will that impact the search speed etc?