Sometime in the last month, we noticed on our wiki (1.26) that CirrusSearch (1.26 tag) stopped indexing redirects. For example, on Wikipedia, you can see that the redirect "Einstein" is represented by an empty document in ElasticSearch:
https://en.wikipedia.org/w/index.php?title=Einstein&redirect=no&action=cirrusdump
The output I see is:
[]
As a result, if you type "Einstei" (removing the last letter) in the Wikipedia search box, you do not get a completion of "Einstein."
Earlier this year, this behavior did not occur, and we don't know what changed. Is this a bug or an intentional feature? If it's a feature, is there a way to configure CirrusSearch so redirects get autocompleted by the wiki search box?
Here is some more data. When we create an article (MyArticle) and a redirect (MyRedirect) on our wiki, here are the MediaWiki jobs that get queued:
cirrusSearchLinksUpdatePrioritized MyArticle addedLinks=array(0) removedLinks=array(0) prioritize=1 (id=8537418,timestamp=20160926165549) status=unclaimed cirrusSearchLinksUpdatePrioritized MyRedirect addedLinks=["Home"] removedLinks=array(0) prioritize=1 (id=8537419,timestamp=20160926165601) status=unclaimed
When the jobs run, here is the output produced:
cirrusSearchLinksUpdatePrioritized MyRedirect addedLinks=["Home"] removedLinks=array(0) prioritize=1 (id=8537419,timestamp=20160926165601) STARTING cirrusSearchLinksUpdatePrioritized MyRedirect addedLinks=["Home"] removedLinks=array(0) prioritize=1 (id=8537419,timestamp=20160926165601) t=401 good cirrusSearchIncomingLinkCount Home (id=8537420,timestamp=20160926165631) STARTING cirrusSearchIncomingLinkCount Home (id=8537420,timestamp=20160926165631) t=27 good cirrusSearchLinksUpdatePrioritized MyArticle addedLinks=array(0) removedLinks=array(0) prioritize=1 (id=8537418,timestamp=20160926165549) STARTING cirrusSearchLinksUpdatePrioritized MyArticle addedLinks=array(0) removedLinks=array(0) prioritize=1 (id=8537418,timestamp=20160926165549) t=22 good
I tried modifying some CirrusSearch parameters but could not affect the autocompletion behavior:
- Increasing $wgCirrusSearchWeights['redirect']
- Increasing $wgCirrusSearchPrefixWeights['redirect'] and $wgCirrusSearchPrefixWeights['redirect_asciifolding']
Thank you very much.