1
0
Fork 0
mirror of https://github.com/sbrl/Pepperminty-Wiki.git synced 2024-06-02 10:13:01 +00:00
Commit graph

106 commits

Author SHA1 Message Date
Starbeamrainbowlabs b93dd3d9cc
Start refactoring query_invindex & rename it to invindex_query
....but of course it's not finished yet. We're doing well, but there are 
a few thorny issues to go.

Mainly: We need to seriously optimise ids::getpagename(), 'cause we'll 
need it a *lot* when we get to implementing the size, before, and after 
colon : directives.
2019-08-18 21:25:48 +01:00
Starbeamrainbowlabs ce6df06817
Start refactoring the search system to use a new key-value store backend
....but it's not finished yet.

It should improve performance significantly when it's done & optimised, 
as we won't have to load the entire search index into memory & decode it 
just to perform a single query.
2019-08-18 18:52:29 +01:00
Starbeamrainbowlabs 38badd3c1f
[search] Add StorageBox.php as an extra data file
It's time to refactor the search system to use an SQLite-backed 
key-value data store. It's just a shame that something designed for this 
like LevelDB / RocksDB doesn't have a PHP package that we can use :-/

We can always switch later, I suppose.
2019-08-17 20:47:51 +01:00
Starbeamrainbowlabs 7088990027
Minor code formatting 2019-08-17 01:19:04 +01:00
Starbeamrainbowlabs 5609506def
minor formatting 2019-08-16 01:14:38 +01:00
Starbeamrainbowlabs 127270ff89
Bugfix: Correct search query performance metrics 2019-08-15 23:46:23 +01:00
Starbeamrainbowlabs ddc36bf48e
Remove commented code 2019-08-15 23:17:33 +01:00
Starbeamrainbowlabs 0a5ba3ff59
Improve search invindex alteration performance
This will be especially noticable when using invindex-rebuild
2019-08-15 23:06:06 +01:00
Starbeamrainbowlabs 50efd4bb49
Bump versions 2019-05-06 23:48:34 +01:00
Starbeamrainbowlabs c177b66b42
Bugfix: Don't throw a warning if the search index doesn't exist yet 2019-05-06 20:22:36 +01:00
Starbeamrainbowlabs a3330829cb
Bump module versions & go over documentation comments 2019-02-10 23:18:34 +00:00
Starbeamrainbowlabs 5b670f5981
Refactor method names in page renderer 2019-01-27 22:56:51 +00:00
Starbeamrainbowlabs c7d7de3d7e
Don't include semicolons in greedy internal links 2018-09-29 23:40:23 +01:00
Starbeamrainbowlabs 39098ac0fb
Display an ellipsis at the beginning of a search context if it doesn't start at the beginning of a page 2018-09-29 13:32:17 +01:00
Starbeamrainbowlabs 24775724d1
Bugfix: Correctly calculate the end offset of search context snippets 2018-09-29 13:27:17 +01:00
Starbeamrainbowlabs 284b404946
Typos in comments 2018-09-12 21:27:51 +01:00
Starbeamrainbowlabs 31d555f482
Bump version of search module 2018-07-01 12:14:06 +01:00
Starbeamrainbowlabs 1f6f780177
Restyle matching tags in search results 2018-06-30 11:46:07 +01:00
Starbeamrainbowlabs 8955d6d131
Save the character offset, not the token offset in the inverted index 2018-06-30 11:19:38 +01:00
Starbeamrainbowlabs cdee30c286
Add $capture_offsets option to tokenize().
TODO: Utilise this in the indexer & update the changelog mentioning that
_all_ inverted indexes will need to be rebuilt
2018-06-30 00:08:57 +01:00
Starbeamrainbowlabs 8403ffd5c3
Bugfix: Increment $i when we hit a stop word when indexing.
There's also another bug here - in that the offsets generated contain
are the index in the array of tokens, when we need it to be the index in
the source text!
2018-06-29 23:51:10 +01:00
Starbeamrainbowlabs 9d7a21e993
Format the index action nicely 2018-06-29 12:08:38 +01:00
Starbeamrainbowlabs 19e49777b2
Search System; Don't bother getting a page's id if we don't need to 2018-06-26 14:28:11 +01:00
Starbeamrainbowlabs 3d3b6c491a
Seriously optimise the search system via some profiling. 2018-06-26 14:15:19 +01:00
Starbeamrainbowlabs 67648199d7
Add search time header for analysis purposes 2018-06-26 00:11:01 +01:00
Starbeamrainbowlabs 75b6b6c55f
Optimise the search context extractor, but evediently there's more work to be done. 2018-06-26 00:06:20 +01:00
Starbeamrainbowlabs 93494b6729
Transliterate in the suggest-pages action too 2018-06-25 23:03:00 +01:00
Starbeamrainbowlabs 49b91aa6f9
Search: Transliterate characters so you don't have to remember the diacritics when searching 2018-06-25 22:53:53 +01:00
Starbeamrainbowlabs d1a10207d1
Made rebuilding search idnex progress bar fill up completely when done 2018-04-07 13:47:39 +01:00
Starbeamrainbowlabs 893492c5a6
Finish up enhancements to search system.
I _think_ it works with utf-8 everywhere in the search system? I'm not
sure - lots of testing is needed. Fortunately, I know just where to do
such testing.....
2018-03-18 16:52:55 +00:00
Starbeamrainbowlabs 3dc505992d
Nuke all usages of utf8_encode, as I misunderstood what it did. 2018-03-18 16:37:25 +00:00
Starbeamrainbowlabs 24efac3c5e
Enhance utf8 support in id index & search system, but there's more work to be done. 2018-03-18 16:19:13 +00:00
Starbeamrainbowlabs 20e7c9f0fb
Minor update to apidoc comment - not worth rebuilding them over :-) 2018-02-14 23:10:20 +00:00
Starbeamrainbowlabs 90acf38f9d
Add json support to search action! :D 2018-02-14 23:08:28 +00:00
Starbeamrainbowlabs b493476b5d
Bump version of search module 2018-02-04 13:49:52 +00:00
Starbeamrainbowlabs 0fb79ca68c
Fix forward slashes in search queries 2018-02-04 13:48:11 +00:00
Starbeamrainbowlabs f9ad937a21 Comment feature-search with phpDoc & update docs 2017-11-20 20:40:59 +00:00
Starbeamrainbowlabs edba3b9bf3 Update search to take the length of words into account. Fixes #134. 2017-10-15 13:42:15 +01:00
Starbeamrainbowlabs 73637fe963 Display tag names next to page names in the search results. Fixes #93. 2017-10-14 22:48:58 +01:00
Starbeamrainbowlabs 3b00f56485 Search tags as well as pages 2017-09-19 17:32:52 +01:00
Starbeamrainbowlabs 179c4b500d Escape html in search result previews 2017-08-26 12:40:33 +01:00
Starbeamrainbowlabs a90b72e3ad Use rawurlencode / htmlentities in more places 2017-07-29 10:44:58 +01:00
Starbeamrainbowlabs 3266e39e03 Fix opensearch description 2017-07-16 10:26:22 +01:00
Starbeamrainbowlabs 1236ce8e4d Add search index rebuilding action to master settings screen 2017-07-11 20:21:20 +01:00
Starbeamrainbowlabs 576b293c4e Update apidoc comment & changelog 2017-07-10 22:10:18 +01:00
Starbeamrainbowlabs 80158541cb Make invindex-rebuild admin only, but allow access via a POST request with the secret attached 2017-07-10 22:06:41 +01:00
Starbeamrainbowlabs c2dcf43bc2 Add progress to invindex-rebuild - ready for addition to the master control panel 2017-07-10 21:53:52 +01:00
Starbeamrainbowlabs 51cea83402 Merge branch ikisler's preview-changes branch into master 2017-07-03 18:14:27 +01:00
Starbeamrainbowlabs e9381da756 Fix permissions 2017-07-03 18:05:57 +01:00
Starbeamrainbowlabs 57acbc85b8 Add rawurlencode() calls everywhere in the redirect logic to fix #139 2017-06-28 11:42:11 +01:00