History: Unified Index Comparison
Source of version: 40
Copy to clipboard
! Unified Index Comparison The ((Search and List from Unified Index)) has support for multiple engines. While all of them offer the same functionality and connect to various functionality such as the content search, ((PluginList)), ((PluginCustomSearch)) and various others, they will have different performance characteristics and some may offer additional features. As a general rule, the engine can simply be switched and the index rebuilt without any additional change to the configuration. !! Overview The unified index engines are: * MariaDB/MySQL Full Text Search __(is the default for 12.x onwards)__ ** ''introduced in ((Tiki12))'' ** Within MariaDB/MySQL, additional memory required ** Fast indexing (can be 10 times faster than Zend_Search_Lucene), slower/unstable query speed ** No configuration required ** Not customizable * ((Elasticsearch)) ** ''introduced in ((Tiki12))'' ** Independent Java server(s), horizontally scalable ** Feature-rich ** Fast indexing, fast/stable query speed, decent/good results ** Typically, Elasticsearch is set up as a cluster on different servers than Tiki (or using a third-party service), but it is also possible to install on the same server. ** Customizable * ((Manticore Search)), new in ((Tiki25)) ** Feature-rich ** Very fast ** Written in C++ ** Customizable ** Can be set up as a cluster ** Requires small amounts of RAM (compared to Elasticsearch) ** [https://wikisuite.org/Manticore-Search|This is the default setup for WikiSuite] once ((Tiki26)) is released, and it is an option of the [http://wikisuite.org/How-to-install-WikiSuite|installer]. The system is designed for maintaining an autonomy vis à vis the engines. So more can be added later. No long-term data is stored in the indexes and it's fairly easy to switch from one to another. The next logical addition is ((OpenSearch)). Please contact Marc Laporte if you have specific needs. !! Limitations !!! MySQL/MariaDB * Words with 3 or less characters will not be indexed unless the MySQL server configuration is modified. * MySQL comes with an extensive list of English stop words, preventing many queries from working. * MySQL can use a single index at a time. Depending on the query, performance can vary significantly. * MySQL has several limitations on the number of columns and indexes it can contain. Complex sites with many different query patterns may hit those limitations. * No support for field boosting, such as providing more relevance for hits on the title. * There is a limitation on the number of tracker fields. The limitation is quite high (2000+), but when you hit it, you need to move to another engine because MySQL/MariaDB has a [https://dev.mysql.com/doc/mysql-reslimits-excerpt/5.7/en/column-count-limit.html#:~:text=MySQL%20has%20hard%20limit%20of,columns%20cannot%20exceed%20this%20size.|hard limit]. It is not possible to know in advance the precise number of maximum fields because some tracker field types require more than one MySQL column. ** It is possible to exclude some fields from the index to stay within the limit. !!! Elasticsearch * Requires a dedicated environment to be installed and works better with multiple instances running in a cluster. * No longer Open Source !!! Manticore Max 256 fields for optimized full-text-search. Additional fields will be slower. !! Extra features * ((Stored Search)) ** Only supported by Elasticsearch and Manticore * ((Faceted search)) (dynamic filters applicable on search results) ** Only supported by Elasticsearch and Manticore * ((Module More Like This)) ** Only supported by Elasticsearch (Manticore on roadmap) * ((Federated Search)) ** Only supported by Elasticsearch (Manticore on roadmap) !! Selection guidelines !!! Tiki 25 and before * Small sites, simple functionality: MariaDB/MySQL Full Text Search * Medium or large sites, advanced functionality: Elasticsearch !!! Tiki 26 and up * Small sites, simple functionality: MySQL Full Text Search * If you are already using Elasticsearch and are happy with it: Elasticsearch * Medium or large sites, advanced functionality: Manticore !! Speed comparison * https://db-benchmarks.com/?cache=fast_avg&engines=elasticsearch%2Cmanticoresearch_rowwise%2Cmysql&tests=hn_small&memory=110000&queries=0%2C1%2C2%2C3%2C4%2C5%2C6%2C7%2C8%2C9%2C10%2C11%2C12%2C13%2C14%2C15%2C16%2C17%2C18%2C19%2C20%2C21%2C22%2C23%2C24%2C25%2C27 !! Differences of results between engines A tool has been created to compare the results, and make sure all is OK: https://gitlab.com/tikiwiki/tiki/-/merge_requests/940/ !! Legacy Zend_Search_Lucene (PHP Implementation) was introduced in ((Tiki7)) and later removed Last version: ((Tiki21)). -=alias=- * (alias(Search Engine Comparison))