yiiframework.com icon indicating copy to clipboard operation
yiiframework.com copied to clipboard

Search on Wiki is broken

Open cebe opened this issue 7 years ago • 11 comments

https://www.yiiframework.com/search?version=2.0&type=wiki&q=phpstorm

bildschirmfoto von 2018-11-07 19-12-35

This should totally find https://www.yiiframework.com/wiki/865/configuring-phpstorm-ide-for-yii-2

cebe avatar Nov 07 '18 18:11 cebe

Generally a word without a capital letter will work as a search word, e.g. “bootstrap” can find “bootstrap” and “Bootstrap”, but “Bootstrap” can not find either of them.

As for “PhpStorm” which is reported in the issue, even “phpstorm” won’t work as a search word.

softark avatar May 25 '20 11:05 softark

@cebe Is this fixed somewhere else? Your search query currently shows the expected result: image

marcovtwout avatar Dec 03 '20 08:12 marcovtwout

@marcovtwout https://www.yiiframework.com/search?version=2.0&type=wiki&q=Bootstrap is still valid.

samdark avatar Dec 03 '20 09:12 samdark

https://github.com/yiisoft-contrib/yiiframework.com/issues/890#issuecomment-1012783201

arogachev avatar Jan 14 '22 07:01 arogachev

This one is now fixed.

samdark avatar Jan 19 '22 23:01 samdark

Seems like not yet. I'm using the last link for checking https://www.yiiframework.com/search?version=2.0&type=wiki&q=Bootstrap. Locally bootstrap / Bootstrap give the same results.

arogachev avatar Jan 20 '22 05:01 arogachev

Called ./yii search/rebuild again. Works as expected in Docker environment.

Screenshot 2022-01-20 at 17-18-33 Yii Framework

Screenshot 2022-01-20 at 17-21-58 Yii Framework

Maybe we still have some differences between local and production environment. Note that I'm using data from production dump (2021-12-14) for testing.

arogachev avatar Jan 20 '22 11:01 arogachev

Likely we can do mb_strtolower for the query.

samdark avatar Feb 02 '22 12:02 samdark

Likely we can do mb_strtolower for the query.

elasticsearch should do proper tokenizing so case should not matter at all here.

cebe avatar Feb 10 '22 10:02 cebe

But it matters.

samdark avatar Feb 10 '22 11:02 samdark

that means something is wrong in our indexing or querying. need to fix that.

cebe avatar Apr 21 '22 14:04 cebe