- Issue created by @neclimdul
- πΊπΈUnited States neclimdul Houston, TX
Should be a simple fix in the merge request
- Merge request !11063Add search_index as an option for content preview β (Open) created by neclimdul
- πΊπΈUnited States smustgrave
Here are some tickets where this appears to have been tweaked/altered
#2322503: getDisplayModeOptions() returns only full or teaser regardless of the status of the entity display β
Added in #1510544: Allow to preview content in an actual live environment βFrom what I can tell search_index was mentioned twice but not really discussed. Personally don't see a reason not, it's 100% front-end view.
Change also seems small enough that probably doesn't warrant test coverage. Also we never hid search_result so not sure why to hide this one.I applied the MR and confirmed search_index now appears.
- π¬π§United Kingdom catch
Search index isn't a front end view, it's what the search module sees when it indexes content. You could have a 'search result' view mode for use with search_api module or similar but that wouldn't be the same as the one for indexing.
I don't have a strong opinion on showing it or not, but I think we could use a product or UX review here given that was the original reason for hiding it.
- π§πͺBelgium borisson_ Mechelen, π§πͺ
I agree with catch, this is not simply for frontend usage. However it might be useful to help figure out why some entity is not indexed into search api correctly.
It doesn't look like there's an easy way for search api to reenable this for those purposes? - πΊπΈUnited States neclimdul Houston, TX
Yeah I don't disagree with classifying search_index as not strictly a frontend view.
I think what I was trying to convey in the summary was that while Drupal we called the preview interface "Preview in live environment" in the original issue, but that is in no way conveyed to the site user. To a developer and content editor its just "Preview" so seeing how something will be pushed into a search index can provide a lot of valuable information.
So limiting the interface to strictly frontend displays doesn't always meet user expectations. At least it didn't meet mine.