-
Type:
Bug
-
Status: Closed
-
Resolution: No Longer Reproducible
-
Affects Version/s: 7.0.X EE, Master
-
Fix Version/s: None
-
Component/s: Search Infrastructure
-
Fix Priority:2
Description
"Reindex all search indexes" under Server Administration in the control panel should include reindexing spell check indexes. In reality, it only drops the spell check indexes without reindexing them.
Steps to reproduce
1) Following the workaround described in LPS-72549, enable spell checking on search by clicking the "Reindex all spell check indexes" button in Server Administration.
2) Check the default page's search portlet configuration and ensure "Display 'Did you mean:...'" is checked, with Threshold for Displaying "Did you mean: ..." set to a large enough positive value (default to 50).
3) Search "happie" and "jumpin" one after the other.
4) Observe that "happie" returns "Did you mean: happier," and "jumpin" returns "Did you mean: jumping."
5) Under Server Administration in the control panel, click "Reindex all search indexes"
6) Once again search "happie" and "jumpin" one after the other.
Results of testing
Expected Result: "happie" returns "Did you mean: happier," "jumpin" returns "Did you mean: jumping."
Actual Results: no spelling suggestions are returned.
Errors/Logs
Log for "Reindex all search indexes."
00:11:29,664 INFO [elasticsearch[Apollo][clusterService#updateTask][T#1]][metadata:391] [Apollo] [liferay-20113] creating index, cause [api], templates [], shards [1]/[0], mappings [KeywordQueryDocumentType, LiferayDocumentType, SpellCheckDocumentType] 00:11:29,717 INFO [elasticsearch[Apollo][clusterService#updateTask][T#1]][allocation:238] [Apollo] Cluster health status changed from [RED] to [GREEN] (reason: [shards started [[liferay-20113][0]] ...]). 00:11:29,730 INFO [elasticsearch[Apollo][clusterService#updateTask][T#1]][metadata:317] [Apollo] [liferay-20113] update_mapping [LiferayDocumentType] 00:11:29,772 INFO [elasticsearch[Apollo][clusterService#updateTask][T#1]][metadata:317] [Apollo] [liferay-20113] update_mapping [LiferayDocumentType] 00:11:29,843 INFO [elasticsearch[Apollo][clusterService#updateTask][T#1]][metadata:317] [Apollo] [liferay-20113] update_mapping [LiferayDocumentType] 00:11:29,943 INFO [elasticsearch[Apollo][clusterService#updateTask][T#1]][metadata:317] [Apollo] [liferay-20113] update_mapping [LiferayDocumentType] 00:11:30,752 INFO [elasticsearch[Apollo][clusterService#updateTask][T#1]][metadata:317] [Apollo] [liferay-20113] update_mapping [LiferayDocumentType] 00:11:31,314 INFO [elasticsearch[Apollo][clusterService#updateTask][T#1]][metadata:317] [Apollo] [liferay-20113] update_mapping [LiferayDocumentType]
Log for "Reindex all spell check indexes."
00:03:16,306 INFO [liferay/search_writer/SYSTEM_ENGINE-13][BaseSpellCheckIndexWriter:257] Start indexing dictionary for com/liferay/portal/search/dependencies/spellchecker/en_US.txt 00:03:16,328 INFO [elasticsearch[Apollo][clusterService#updateTask][T#1]][metadata:325] [Apollo] [liferay-20113] create_mapping [spellChecker] 00:03:24,509 INFO [liferay/search_writer/SYSTEM_ENGINE-13][BaseSpellCheckIndexWriter:291] Finished indexing dictionary for com/liferay/portal/search/dependencies/spellchecker/en_US.txt 00:03:24,510 INFO [liferay/search_writer/SYSTEM_ENGINE-13][BaseSpellCheckIndexWriter:257] Start indexing dictionary for com/liferay/portal/search/dependencies/spellchecker/es_ES.txt 00:03:24,519 INFO [elasticsearch[Apollo][clusterService#updateTask][T#1]][metadata:317] [Apollo] [liferay-20113] update_mapping [spellChecker] 00:03:31,318 INFO [liferay/search_writer/SYSTEM_ENGINE-13][BaseSpellCheckIndexWriter:291] Finished indexing dictionary for com/liferay/portal/search/dependencies/spellchecker/es_ES.txt
Master
Reproduced
6e37b8102de24ceb98ebe0f7c63e8e0336aa7981
Branch
Reproduced
ad601082f5700519597180caf94708619ecb17a3
- Discovered while testing
-
LPS-72549 Search's spell check suggestions ("Did you mean...?") do not work on startup
- Closed
- is fixed by
-
LPS-130753 As a Server Admin, I can limit the scope of Index Actions to (a) selected Virtual Instance/s
-
- Closed
-