| Commit message (Collapse) | Author | Age |
|
|
|
|
|
| |
many PHPDocs
some unused variables
some dynamically declared variables declared
|
| |
|
|
|
|
|
| |
* support namespaces with more then one level e.g. @your:namespace
* support ns:<ns> as well
|
|\
| |
| | |
Add FULLTEXT_PHRASE_MATCH event for allowing plugins to match phrases FS#2936
|
| |
| |
| |
| |
| |
| |
| | |
Our index doesn't support phrase searches so we are searching for the
pages that contain all words of the phrase and then search again in the
content of the pages. As plugins can also add additional text to the
index this event allows plugins to do phrase matching in their content.
|
| | |
|
|/ |
|
|
|
|
|
| |
Removed extraneous whitespace to eliminate errors reported by the
Squiz.WhiteSpace.SuperfluousWhitespace sniff.
|
| |
|
|
|
|
|
|
| |
This adds a new parameter to ft_backlinks() to ignore permissions which
is needed for invalidating the cache of linking pages with useheading
enabled. This also adds various test cases for ft_backlinks().
|
| |
|
|
|
|
|
| |
We now have two defines for checking for UTF-8 and Unicode property
support in PREG and use them to work around FS#2636 on older systems.
|
|
|
|
|
|
| |
Seems like matching \b on unicode strings is unreliable across different
platforms (Debian). Using Unicode class lookahed/behinds seems to work
though.
|
| |
|
|
|
|
|
|
|
|
| |
Sometimes pages aren't deleted from the index (that should be fixed,
too) and appear in the backlinks although they don't exist anymore.
This change hides them and hidden pages that shouldn't appear at all as
the backlinks view is an automatic listing. Hidden pages had been hidden
before the transition to the metadata index, too.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|