| Commit message (Collapse) | Author | Age |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This changes the cache logic for metadata. It introduces a new mode that
tries to avoid rendering the page again for simple requests but still
updates the metadata when the page has been changed (but not when the
cache timeout has been reached or purge is used). It simply compares the
time of the last rendering with the last modified time of the page.
The old boolean $render parameter has been changed into an int with
three possible values. Compatibility for the old parameter is provided
using a check with is_numeric using the following mapping:
- false is still don't render (0 is the new value for that)
- true is using that new render logic which means that many plugins will
still work unchanged even if they request a lot of data using
$render=true (1 is the new value for that providing full compatibility
in the case 1 has been used instead of true)
The default value for p_get_first_heading is now that new simple cache
logic, the default value for getting metadata is the cache logic which
should be used with care but is the only way to request (rendered)
metadata that can change because of plugin installations or upgrades.
|
|
|
|
|
|
| |
The page lookup by title has been case insensitive before the indexer
rewrite, since then it has been case sensitive, this makes it case
insensitive again.
|
|
|
|
|
|
| |
Before this change all pages of the given namespace have been included
in the result, now the search is restricted to the namespace again as it
was before the new indexer has been implemented.
|
| |
|
|\
| |
| |
| |
| |
| |
| | |
Conflicts:
inc/fulltext.php
inc/indexer.php
lib/exe/indexer.php
|
| |
| |
| |
| |
| | |
A page could have possibly hundreds of backlinks, when the cache is
outdated they should not be rererendered at once
|
| |
| |
| |
| |
| | |
This makes it possible to find words that include soft-hyphens. However,
search higlighting will not work and I have no idea how to make it work.
|
|\ \ |
|
| | |
| | |
| | |
| | | |
result
|
|\ \ \
| |/ /
|/| /
| |/
| |
| |
| | |
Conflicts:
inc/fulltext.php
inc/indexer.php
lib/exe/indexer.php
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| | |
As of VIM 7.3 it is no longer possible to specify the encoding in the
modeline. This gives an error message whenever such a file is opened,
thus this commit removes the enc setting from the modeline.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
INDEXER_METADATA_INDEX event
This new event allows plugins to add or modify the metadata that will be
indexed. Collecting this metadata in an event allows plugins to see if
other plugins have already added the metadata they need and leads to
just one single indexer call thus fewer files are read and written.
Plugins could also replace/prevent the metadata indexer call using this
event.
|
|/ |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
it's part
of another term. Word boundaries are now respected.
|
|
|
|
| |
this was broken by d0bdf7659fce98c2922b151766d51d5c7e8814d6
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
This patch changes the ft_pageLookup function to always return the
title of pages with the result. This makes it easier to work with the
array, as it no longer changes between numeric and key indexes depending
on useheading.
This also means that action plugins subscribed to
SEARCH_QUERY_PAGELOOKUP need to be adjusted. The event contains a new
data field called 'has_titles' which plugins can use to check for
backwards compatibility.
|
| |
|
| |
|
| |
|
| |
|
|\
| |
| |
| |
| | |
Conflicts:
inc/fulltext.php
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| | |
Classes are loaded throug PHP5's class autoloader, all other
includes are just loaded by default. This skips a lot of
require_once calls.
Parser and Plugin stuff isn't handled by the class loader yet.
|
|/ |
|
| |
|
|
|
|
|
|
| |
Ignore-this: b48abc447a5d32123322eb08717d275d
darcs-hash:20091115121708-9b77a-4a0b6c7afb8db60e22ca07a4d9725474a869c1c8.gz
|
|
|
|
|
|
| |
Ignore-this: a0ebcdd129f4256e4be029e7fdf7ca45
darcs-hash:20091026092359-6e07b-4c41896825e091a3c8fbbeadc3bc7764d0735bf6.gz
|
|
|
|
|
|
| |
Ignore-this: f8687eff4a046379700068b01d94807
darcs-hash:20090921105201-9b77a-6e9ea14dfd7763f8b52ba02f6654f289ac9237e8.gz
|
|
|
|
|
|
|
|
|
| |
Ignore-this: cb05f50ca4de12e1cdf3a6cfb0e1b8bc
- better search experience in Asian language
- sophisticated search query syntax (OR, grouping, etc.)
darcs-hash:20090920121116-9b77a-2718be7a043374669037b10d94101fc70efb95e3.gz
|
|
|
|
|
|
|
|
| |
Ignore-this: fdf33ea5a6c50a597bd432c0da98e927
Snippets containing more of the seached words are preferred
over ones containing less search keywords
darcs-hash:20090504183835-a07b1-7b0da249fcb5680019fc3032dfd6fb063e94576a.gz
|
|
|
|
|
|
|
|
|
| |
Ignore-this: 4cd6bddacb795ef15f133559c223ac1f
* Adds the possibility to exclude namespace(s) from search, by preceding them with "^".
* Changed handling of search parameters to allow any order of words and namespaces.
darcs-hash:20090311160255-13810-c2e00cc7764d180967b4c6f22e17b1c0dafe36f4.gz
|
|
|
|
|
|
| |
to pages to which the user had no access
darcs-hash:20090119062124-f07c6-5d761a76a50c6c9bcc124fa89feb2fb7b0a9a9b5.gz
|
|
|
|
| |
darcs-hash:20081213090400-7ad00-4e21cd75978bb07513f32f5d750658e8d777c59e.gz
|
|
|
|
|
|
|
|
|
| |
The pagename matching search (AJAX and "real" search) now sort results based
on the namespace hierarchy levels before doing an alphabetically search.
This means pages with fewer namespace (ie. higher up in the hierarchy) wil
be shown first.
darcs-hash:20080812200649-7ad00-b58f152923864c3440e6412be58fb6fb25373583.gz
|
|
|
|
|
|
|
|
|
|
| |
SEARCH_QUERY_FULLPAGE event wraps around ft_pageSearch() call, the function which handles the
search action and feed searching.
The event data is the parameters of this function:
data['query']
darcs-hash:20080811110656-f07c6-a149de6cd0ebc997541fa6e3f4bc6788d663dbd3.gz
|
|
|
|
|
|
|
|
|
|
| |
Now higlighting phrases are passed as an array which then is quoted correctly
when used in a regexp. This should make phrase highlighting work completely
correct.
Please everyone test it.
darcs-hash:20080310214939-7ad00-1abefb02dde40edeead50b4fa5c866c46b95ca3a.gz
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This changes how DokuWiki looks for reference toa media file which is
about to deleted. Instead of doing a full grep through all pages it now
uses the fulltext index first, then does an exact match on the found
pages.
This speeds up the search significantly on larger wikis. However the
fulltext search limits now apply: images with names shorter than 3 charcters
may not be found.
This needs extensive testing!
darcs-hash:20080223205254-7ad00-486de0a4125d51b4e7999827f710d1d9de8bc60d.gz
|
|
|
|
|
|
|
|
|
| |
This patch makes the highlighting of phrases in search snippets and on
the pages itself much better.
Now a regexp gets passed to the ?s
darcs-hash:20080215174653-7ad00-cd2d6f7d408db7b7dd3cb9974c3eb27f3a9baeac.gz
|
|
|
|
|
|
| |
bool page_exists($id, $rev
darcs-hash:20070930021040-d26fc-e3847bfdd20a36154685262eca94211cfd461e83.gz
|
|
|
|
|
|
|
|
|
|
|
| |
The use of realpath() to clean up relative file names caused some
trouble in certain setups relying on symlinks or having restricitve
file structure setups.
This patch replaces all realpath() calls with a PHP only replacement
which should solve those problems.
darcs-hash:20070930184250-7ad00-512ff04c95f57fc9eaf104f80372237a3c94286f.gz
|
|
|
|
| |
darcs-hash:20070804081226-7ad00-a8e7127c7122a96f9817158d87e1a364d8cdbc9f.gz
|
|
|
|
| |
darcs-hash:20070718104839-7ad00-50348c1834c78e891f049023d2e8894d6bb0a00b.gz
|
|
|
|
| |
darcs-hash:20070514222527-d5083-53ed619daf07d0a84c52161465d163abf1400529.gz
|