History log of /dokuwiki/inc/Ui/Search.php (Results 1 – 25 of 69)
Revision Date Author Comments
# 8788dbbd 06-May-2026 splitbrain <86426+splitbrain@users.noreply.github.com>

�� Rector and PHPCS fixes


# c553d38d 08-Apr-2026 Andreas Gohr <andi@splitbrain.org>

SearchIndex: fix TypeError when $QUERY global is null

QueryParser::convert() requires a string argument, but the global
$QUERY can be null. Coalesce to empty string to match prior behavior.


# 0b1bbbbb 06-Apr-2026 Andreas Gohr <andi@splitbrain.org>

SearchIndex: rewrite FulltextSearch to use FrequencyCollectionSearch

Replace FulltextIndex->lookupWords() with FrequencyCollectionSearch which
correctly handles the compact tuple format written by t

SearchIndex: rewrite FulltextSearch to use FrequencyCollectionSearch

Replace FulltextIndex->lookupWords() with FrequencyCollectionSearch which
correctly handles the compact tuple format written by the new Indexer.

Introduce QueryEvaluator with typed stack entries (PageSet,
NamespacePredicate, NegatedEntry) for RPN query evaluation. NOT wraps
its operand instead of computing a universe complement, so AND with a
negated operand becomes efficient set subtraction. The full page index
is only loaded for standalone negative or namespace-only queries.

Move QueryParser and QueryEvaluator into the new Search\Query namespace
along with the stack entry types.

Simplify FulltextSearch to orchestration: parse query, look up words,
evaluate, filter, sort. Replace FT_SNIPPET_NUMBER constant with
maxSnippets property. Combine ACL/existence/time filtering into a
single pass.

show more ...


# 9df9f0c8 27-Oct-2025 Andreas Gohr <gohr@cosmocode.de>

Merge branch 'master' into searchIndex-finish

There were a lot of conflicts to resolve. Not all of them may have been
resolved correctly...

* master: (1094 commits)
Login accessibility improvemen

Merge branch 'master' into searchIndex-finish

There were a lot of conflicts to resolve. Not all of them may have been
resolved correctly...

* master: (1094 commits)
Login accessibility improvements
Translation update (it)
translation update
translation update
translation update
translation update
translation update
translation update
translation update
translation update
translation update
translation update
translation update
translation update
Remove HTML from strings based on title and tagline
SECURITY: fix XSS vulnerability. fixes #4512
translation update
Fix typos in usermanager English strings
Replace hardcoded message by localized string
set DOKU_INC in rector
...

show more ...


# 03fdedf7 09-Sep-2025 Andreas Gohr <andi@splitbrain.org>

SECURITY: fix XSS vulnerability. fixes #4512

The namespace selector in the advanced search tools did not correctly
escape the user provided namespace.

This issue was reported by Mario Tesoro.


# d4f83172 31-Aug-2023 Andreas Gohr <andi@splitbrain.org>

code style: line breaks


# e2d055f5 29-Aug-2023 Andreas Gohr <andi@splitbrain.org>

Apply rector fixes to inc/Ui


# 79a2d784 05-Jan-2022 Gerrit Uitslag <klapinklapin@gmail.com>

import classes, replace dbglog, simplify, remove unused statements, and other warnings from IntelliJ

update phpdocs,
rename dokuwiki/Ui/Draft to PageDraft


# 9e7aeeba 10-Nov-2020 Satoshi Sahara <sahara.satoshi@gmail.com>

Merge branch 'master' into Refactor_Fulltext


# cc3a3cde 26-Sep-2020 Satoshi Sahara <sahara.satoshi@gmail.com>

change MetadataSearch and FulltextSearch to non-singleton

singleton is not effective to reduce multiple instantiations, especially for MetadataSearch which is frequently used in ajax call.


# b9c8f036 10-Sep-2020 Andreas Gohr <andi@splitbrain.org>

Merge branch 'master' into Refactor_Fulltext

* master: (111 commits)
Update translation
translation update
don't crush tables too narrow. fixes #3250
translation update
Thorough tests for

Merge branch 'master' into Refactor_Fulltext

* master: (111 commits)
Update translation
translation update
don't crush tables too narrow. fixes #3250
translation update
Thorough tests for EO, DE, PT and ES
translation update
Optimized pageRestoreConfirm function
Tests for Portuguese and Spanish
Changes according to revisions in https://github.com/moisesbr-dw/dokuwiki/pull/2
adjust callstack depth for deprecation message further
better deprecation messages for self required plugin base files
don't test on old PHP releases anymore
increase minimum PHP version to 7.2
fixed tests for cleanID and romanization for Greeklish
Improved the transliteration from greek to latin.
extension cli: do not try to upgrade bundled plugins
Public access to patterns in external link parser
test the collator fallback always
cleanup for collator tests
wrap sorting functions into their own class
...

show more ...


# a74a1f3f 26-Aug-2020 Satoshi Sahara <sahara.satoshi@gmail.com>

Merge branch 'master' into form


# c6977b3a 26-Aug-2020 Satoshi Sahara <sahara.satoshi@gmail.com>

change event naming scheme

FORM_*_OUTPUT scheme had been introduced since Apriil 2018, see #2286


# 2d85e841 11-Aug-2020 Andreas Gohr <andi@splitbrain.org>

wrap sorting functions into their own class


# efc2a4c4 19-May-2020 Moisés Braga Ribeiro <moisesbr@gmail.com>

Functions renamed with "intl" prefix

Better naming of functions to help future maintenance.
- compare() renamed to intl_strcmp()
- sort_pagenames() renamed to intl_sort()
- sort_keys() renamed to in

Functions renamed with "intl" prefix

Better naming of functions to help future maintenance.
- compare() renamed to intl_strcmp()
- sort_pagenames() renamed to intl_sort()
- sort_keys() renamed to intl_ksort()
- new function intl_asort()
- sort_filenames() renamed to intl_asortFN()
Updated documentation.

show more ...


# 5f109073 10-May-2020 Moisés Braga Ribeiro <moisesbr@gmail.com>

Reimplementation of ksort()

Reimplementation of ksort() using collator.
Fix of getAdditionalNamespacesFromResults() function in "Ui/Search.php".

Screens fixed:
- Search (namespace selector below se

Reimplementation of ksort()

Reimplementation of ksort() using collator.
Fix of getAdditionalNamespacesFromResults() function in "Ui/Search.php".

Screens fixed:
- Search (namespace selector below search field)

show more ...


# 9329b002 02-Feb-2020 Satoshi Sahara <sahara.satoshi@gmail.com>

change static methods into instance methods


# 0cba610b 14-Jan-2020 Satoshi Sahara <sahara.satoshi@gmail.com>

rewrite deprecated ft_* functions


# 8cbc5ee8 10-Jun-2019 Andreas Gohr <andi@splitbrain.org>

replaced deprecated utf8 functions

For now this uses full qualified namespaces, sensible imports may come
later.


# cbb44eab 15-Jun-2018 Andreas Gohr <andi@splitbrain.org>

deprecated trigger_event() in favor of a static method on Event


# e9f4a0f6 06-Mar-2019 Andreas Gohr <andi@splitbrain.org>

Merge branch 'master' into psr2

* master:
translation update
translation update
Use config cascade for style.ini files
translation update
translation update
use utf8_strtolower instead o

Merge branch 'master' into psr2

* master:
translation update
translation update
Use config cascade for style.ini files
translation update
translation update
use utf8_strtolower instead of strtolower
add test for utf8 capital letters in search #2613
compare cleaned pageid case-insensitive in search, fixes #2613
add tests for #2613
Defective transplantation of export from .htaccess

show more ...


# e180e453 21-Feb-2019 Phy <git@phy25.com>

use utf8_strtolower instead of strtolower


# 395b0e16 09-Jan-2019 Phy <git@phy25.com>

compare cleaned pageid case-insensitive in search, fixes #2613


# 64159a61 27-Apr-2018 Andreas Gohr <andi@splitbrain.org>

line lengths shortened

This makes sure all files use line lenghts shorter than 120 characters.

This is a quick fix. It might not always be the nicest change.


# 42690e4d 27-Apr-2018 Michael Große <grosse@cosmocode.de>

feat: improve search as a primary means to create new pages

Specifically, this pull request checks if the current query is already a
valid pageid and then return that as suggested pageid.

Also, tes

feat: improve search as a primary means to create new pages

Specifically, this pull request checks if the current query is already a
valid pageid and then return that as suggested pageid.

Also, tests are added for this method.

Fixes #2355

PS: We may want to somehow better educate/nudge users to use the better
way of creating pages by creating links on existing pages.

show more ...


123