feat: add a simple unparser for parsed search queries
commit44156e1168f2abc50ff19edd70a709fa29827817
authorMichael Große <grosse@cosmocode.de>
Wed, 21 Mar 2018 16:30:31 +0000 (21 17:30 +0100)
committerMichael Große <grosse@cosmocode.de>
Wed, 21 Mar 2018 16:32:28 +0000 (21 17:32 +0100)
tree8f1739fa0f665a66342aca5e85afd965c5d20319
parent81a0edd9a5de919adcbe5a9e1136fcf60cf03dfb
feat: add a simple unparser for parsed search queries

To allow creating links with manipulated versions of the current search
query an unparser is necessary. However, the current output of ft_queryParser
makes some advanced features hard to detect. Therefore the new
ft_queryUnparser_simple cannot handle negated phrases and `OR` searches.

It should still cover 98% of search queries.
_test/tests/inc/fulltext_query.test.php [new file with mode: 0644]
inc/fulltext.php