Search Improvements

Search Improvements 2.12.0

No permission to download
Compatible XF 2.x versions
  1. 2.2
Additional requirements
php 7.2+
Standard Library by Xon v1.18.0+
If using ElasticSearch, then ElasticSearch v5.x+
License
MIT Licence
Visible branding
No
A collection of improvements to XF's Enhanced Search and some for XenForo's default MySQL search.

MySQL & Elastic Search features;
  • Allow * (or empty search string) to return results, for MySQL and XFES
  • range_query search DSL
    • allows arbitrary range queries for numerical data
  • Allow users to select the default search order independent for the forum wide setting.
    • Re-adds the global option for the default search type
  • Display search terms on the search results page
  • Add "Search only X" search criteria to individual handler pages, where X is thread/conversation/ticket/ect instead of searching thread/post etc.
    • Makes general search a true subset of member search
Elastic Search Only features:
  • Add ability to push "can view threads/tickets by other" permission(s) into ElasticSearch query, reducing php-side culling of matching content.
    This improves searching forums/tickets where the user lacks these permissions.

    This is gated behind the option Push "View X by others" check into XFES', as it requires a full reindex. (Default disabled)

    Supports the following add-ons:For best results, use ElasticSearch Essentials add-on, as it simplifies this permission constraint compared to stock XenForo
  • Restore default search order option
  • Per content type weighting
  • Adds Elastic Search information to the AdminCP home screen.
  • Adds a debug option to log the search DSL queries to error log for troubleshooting
  • Option to extend search syntax to permit;
    • + signifies AND operation
    • | signifies OR operation
    • - negates a single token
    • " wraps a number of tokens to signify a phrase for searching
    • * at the end of a term signifies a prefix query
    • ( and ) signify precedence
    • ~N after a word signifies edit distance (fuzziness)
    • ~N after a phrase signifies slop amount
    • In order to search for any of these special characters, they will need to be escaped with \.
  • "Specialized index" support
    • Specialized search index allows generating single-purpose elastic search indexes while re-using as much XF search infrastructure as possible.
    • These are examples of a "specialized index".

      The username autocomplete it creates an index with just the user/email and replaces the admin quick search and front-end username autocomplete with an elasticsearch powered version.

      The tag autocomplete replaces the front-end tag autocomplete with an elasticsearch powered version.

      In both cases this allows non-start-of-string matching, with typo tolerance.
Options:
options.png



New Permissions
  • Search Options
Contributing features or bug fixes
Please create a Github Pull request via the "More information." link.

Contributions

If you appreciate this add-on, please consider a contribution via PayPal. Details will be provide via private conversation.

Please contact me if you wish for different licencing arrangements.
Author
Xon
Downloads
772
Views
22,509
First release
Last update

Ratings

5.00 star(s) 6 ratings

More resources from Xon

Latest updates

  1. 2.12.0 - Maintenance & minor feature update

    Require StandardLib v1.19.0+ Code cleanup Add getSearchIdFromEntityId() helper method for...
  2. 2.11.1 - Bugfix update

    Workaround XF2.2.13 does the search before checking it it can save it as a cached value, which...
  3. 2.11.0 - Maintenance update

    Support tag/username autocomplete using XFES add-ons todo prefix matching on autocomplete

Latest reviews

Another great addon from Xon, worth installing for the improved range searches alone but loads of other functionality and improvements.
Fantastic support from Xon as ever.
Can's say enough about Xon's dedication in updating this (and all other add-ons). He is so thorough and super-fast! I personally appreciate the commitment he shows in resolving the slightest conflict and keeping all his add-ons squeaky clean!!
Great additions to the standard search within XenForo - all those options that you were looking for and lots more.

Also, the author's support is fantastic, fixing issues very quickly.
Awesome!
I've used this for over a year on a large forum with over 20 million posts. It's been working with no problems. My users don't use the extended search syntax much but it's nice to have it.
A good improvement of the search system giving certain opportunities and an improved search with the help of an additional syntax that is not processed in the engine and improves its accuracy and performance. Recommended in conjunction with https://xenforo.com/community/resources/elasticsearch-essentials.7103/
Great add on that adds benefit to our users. Because we use Thread Starter Alerts which requires this add on.
Again Xon delivers what should be in core XF. The search feature in core XF is quite lacking and this addon fills in a much needed gap that most people expect. thanks!
Top Bottom