Downloads
Download tar.gz
9.08 KB
MD5: 48db07cac1f1949d0032c6c62f4cbe8f
SHA-1: 822f83a4b7e83f711a1b20160ab488fd0e0fa2c0
SHA-256: 0f22bf1f1c6af811ca355dcce04050ef07b91f86f82f0c1f13960549cd1481ec
Download zip
10.57 KB
MD5: 25d1fd03161f13710967ded7ac9fda6c
SHA-1: 35c1d946ffcdd8500766a6fb3e104fd61740b247
SHA-256: 515a849b93eac74c500f38ebab0b3a07bdb8a1b6b9fe421363d6f5c1e0d4026c
Release notes
Lucene Rewrite (1.0-Alpha)
Allow the administrator to rewrite the user search input text. It support PHP regular expression and Token (if installed and enabled) in both search pattern and replacement pattern.
The small module that allow the administrator to search for particular user input keyword using regular expression and rewrite it into any Search Lucene Query language. Token, if installed is also supported in both search pattern and replacement pattern.
The module also skip the rewriting process if the query is already contains Lucene Query Language tokens or reserved words.
For more details about the supported regular expression, please check the PHP's preg_replace handbook.
Installation Instruction
- Install and enable the module as usual
- Go to menu admin/settings/lucene_rewrite and set the pattern(s) as required.
- The rewrite will be look-up from the top of list to the bottom of list and will stop immediately when the search pattern is matched.
- It's a mandatory to set the default replacement which will be used if the query does not match any pattern. To keep the original query, put "$0" (without double-quotes) into the default replacement box
Changes
- N/A
Bug Fixes
- N/A