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

�� Rector and PHPCS fixes


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

SearchIndex: fix TypeError when $highlight is passed uninitialized

FulltextSearch::pageSearch() type-hints $highlight as array, but
callers passed uninitialized variables (null). Initialize to [] at

SearchIndex: fix TypeError when $highlight is passed uninitialized

FulltextSearch::pageSearch() type-hints $highlight as array, but
callers passed uninitialized variables (null). Initialize to [] at
all call sites and add a guard in the deprecated ft_pageSearch() wrapper.

show more ...


# 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 ...


# 7f394dd6 05-Apr-2026 Andreas Gohr <andi@splitbrain.org>

Merge branch 'master' into searchIndex-finish

* master: (55 commits)
Translation update (pt-br)
Bump phpseclib/phpseclib from 3.0.49 to 3.0.50
�� Update deleted files
strict value comparison

Merge branch 'master' into searchIndex-finish

* master: (55 commits)
Translation update (pt-br)
Bump phpseclib/phpseclib from 3.0.49 to 3.0.50
�� Update deleted files
strict value comparison in auth session check. fixes #4602
Translation update (pt-br)
Translation update (pt-br)
remove utf8_encode() from authad plugin
todo checker action: ignore vendor
updated rector and applied it
removed another php 7.4 workaround
removed an old PHP 5 workaround in HTTPClient
remove checks for mbstring.func_overload
removed php 8 polyfills
ignore HTML validation issue with skipped headline levels
declare PrefCookie constant visibility
update slika which fixes another php 8.5 deprecation issue
fix http tests
fix destructuring false returns from changelog functions
avoid using null as cache key
Fix deprecation warning in UTF8/Conversion
...

show more ...


# 093fe67e 07-Mar-2026 Andreas Gohr <andi@splitbrain.org>

updated rector and applied it


# 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 ...


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

code style: line breaks


# d868eb89 30-Aug-2023 Andreas Gohr <andi@splitbrain.org>

codestyle adjustments: function declaration braces/spaces


# 8c7c53b0 30-Aug-2023 Andreas Gohr <andi@splitbrain.org>

codestyle adjustments: class declaration braces


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

Apply rector fixes to inc/Action


# 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.


# 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


# cc21cb50 22-Oct-2018 Andreas Gohr <andi@splitbrain.org>

Update inc/Action/Search.php

Co-Authored-By: schplurtz <schplurtz@laposte.net>


# 918638dc 21-Oct-2018 Schplurtz le Déboulonné <Schplurtz@laposte.net>

use wl() when reditecting old style search url

fixes #2546


# b2c9cd19 12-Apr-2018 Andreas Gohr <gohr@cosmocode.de>

renamed ActionRouter::checkPermissions to checkPreconditions

As discussed in #1933


# 13ce475d 11-Apr-2018 Andreas Gohr <gohr@cosmocode.de>

shortened new search configs

shorter names are more in line with what we already use, makes less
layout problems in the documentation and is easier to type when telling
people about it.


# 422bbbc6 29-Mar-2018 Michael Große <grosse@cosmocode.de>

refactor: rename dta and dtb parameters

They are now named min and max respectively, which is hopefully less
cryptic.


# 3286c65d 27-Mar-2018 Michael Große <grosse@cosmocode.de>

fix(search): don't search for current page if submitting empty form

Pressing enter in the small quick-search-box while it was empty resulted
in a search for the current pageid.


# 3850270c 27-Mar-2018 Michael Große <grosse@cosmocode.de>

refactor(search): provide before/after arguments to search event

This way they can be cleanly influenced by the plugins instead of having
to modify global state.


# 1265b193 27-Mar-2018 Michael Große <grosse@cosmocode.de>

refactor(search): shorten get parameters


# 340f849a 27-Mar-2018 Michael Große <grosse@cosmocode.de>

fix(search): remove overlook from parameter

That parameter was introduced in cbcc2fa and removed in d22b78c


# 6639a152 26-Mar-2018 Michael Große <grosse@cosmocode.de>

refactor(search) run the search from Action/Search, not Ui/Search


# d22b78c8 26-Mar-2018 Michael Große <grosse@cosmocode.de>

feat(search): use dedicated url-parameter for search query

This way we do not loose the context of the current page. Further, the
new id generated from the query before wasn't really that useful (se

feat(search): use dedicated url-parameter for search query

This way we do not loose the context of the current page. Further, the
new id generated from the query before wasn't really that useful (see
issue #1124 ). And we can still generate a meaningful link "create a
page for your query", if that is considered useful.

Further redirects exist for the old urls, so bookmarked searches etc.
should mostly keep working.

show more ...


# d09b5b64 22-Mar-2018 Michael Große <grosse@cosmocode.de>

feat(search): add config options to adjust default behavior

This adds two new config options:

`search_limit_to_first_ns`:
Limit the search to the current X namespaces. When a search is executed
fro

feat(search): add config options to adjust default behavior

This adds two new config options:

`search_limit_to_first_ns`:
Limit the search to the current X namespaces. When a search is executed
from a page within a deeper namespace, the first X namespaces will be
added as filter.
Possible use case could be with language namespaces to ensure that the
default search is initially within the current language.

`search_default_fragment_behaviour`:
Option to specify the default fragment search behavior

show more ...


12