Search Improvements

xF2 Add-on Search Improvements 2.12.0

No permission to download
  • Require StandardLib v1.19.0+
  • Code cleanup
  • Add getSearchIdFromEntityId() helper method for transforming an XF entity id into the Elasticsearch index id
  • Workaround XF2.2.13 does the search beforechecking it it can save it as a cached value, which can result in a query that is massively more complex than expected being sent to elasticsearch
    • This issue practically doesn't occur with stock XFES, but with additional search addons such as ElasticSearch Essentials this can generate unexpected errors
  • Support tag/username autocomplete using XFES add-ons todo prefix matching on autocomplete
  • Fix viewing the index list could be blocked when elasticsearch is configured but inaccessible
  • Like
Reactions: BattleKing
  • During upgrades, fix " Access to undeclared static property " error.
  • Do not show the "Tags will be searched" tooltip as part of "Search titles only" in advanced search for content types which do not implement tagging
  • Like
Reactions: BattleKing
  • Cleanup add-on description & readme file
  • Update XFES dependent option descriptions to include if they require XFES
  • Improve styling of 'no results' search result in an overlay
  • Fix search result terms do not display when search results are in an overlay
  • Fix custom styling triggering "Your changes have been saved." when clicking a member search link
  • Like
Reactions: BattleKing
  • Fix "Push "View X by others" option being disabled would cause some user information to not be indexed, which had the implicit "rebuild search index" if this setting was then enabled.
    • This fixed conversation search when using Conversation Improvements v2.4.x+
    • Requires a re-index of at least conversations/conversation messages to re-add the missing information.
    • For most sites, disabling the "Push "View X by others" check into XFES" option is not recommended
  • Like
Reactions: BattleKing
  • Fix additional XFES index page would show even when XFES was not installed/active
  • Like
Reactions: BattleKing
  • Fix searching by member without a keyword for a guest
2.8.3 - Security update (recommend updating ASAP)

Thanks @NamePros for sponsoring this update
  • Fix cached search results would be unexpectedly be viewable to anyone if they guessed the search result URL.
    • Affected versions; v2.8.1
    • These search URLs expire after a day
  • Fix search term on search result pages leaking information for non-viewable content
    • Affected version; v2.7.4, v2.7.5 and v2.8.1
    • Fix leaking thread title when using "In thread" search area, and rendering a bad phrase if the thread doesn't exist
    • Fix linking to non-active user profiles when searching by members
  • Workaround for an XF bug where the cached search results for a member search could be directly shared with a guest
    • Non-visible items on the result page where not rendered, but this does leak that there are hits in not viewable to guests areas.
Thanks @NamePros for sponsoring this update
  • Fix "before" search result term would print an integer instead of a human readable yyyy-mm-dd formatted string
  • Change 'no results found' handling to display search terms on the relevent page
    • If using ElasticSearch Essentials, recommend updating to v3.13.0+ as this change may impact some options which display on no results found.
  • Fixes for search term on results page
    • Add missing "With X thread" search term
    • Fix "Users" search term could fail to render the list of usernames
    • Add the 'content type' search term
  • Like
Reactions: BattleKing
Top