Rector and PHPCS fixes
SearchIndex: review fixes — auto-save MemoryIndex, cast TupleOps counts, style cleanups- MemoryIndex: auto-save dirty data on unlock/destruction to prevent silent index corruption when indexes ar
SearchIndex: review fixes — auto-save MemoryIndex, cast TupleOps counts, style cleanups- MemoryIndex: auto-save dirty data on unlock/destruction to prevent silent index corruption when indexes are used in tandem- TupleOps::parseTuples(): cast exploded count strings to int- FileIndex::retrieveRow(): document the write-on-read padding behavior- Fix whitespace issues in ApiCore, common.php, Sitemap/Mapper- Update concept.txt to reflect MemoryIndex auto-save behavior
show more ...
SearchIndex: rewrite Indexer to use Collection classesReplace the intermediate #2943 classes (FulltextIndex, MetadataIndex)with the new Collection-based architecture. The Indexer is now a thinsta
SearchIndex: rewrite Indexer to use Collection classesReplace the intermediate #2943 classes (FulltextIndex, MetadataIndex)with the new Collection-based architecture. The Indexer is now a thinstateless orchestrator that delegates all index work to collections.Key changes:- Indexer no longer extends AbstractIndex; page name passed to methods- addPage/deletePage/clear use PageTitleCollection, PageFulltextCollection, and PageMetaCollection- New PageMetaCollection replaces separate ReferencesCollection and MediaCollection with a single class that handles arbitrary metadata keys dynamically- Shared writable FileIndex('page') passed to all collections- Logger callback replaces verbose parameter- Methods return void instead of bool- Index classes implement IteratorAggregate for clean data access- Indexer tests consolidated into namespaced IndexerTest.php- All callers updated to new stateless API
code style: line breaks
code style: operator spacing
coding style: control flow line breaks
coding style: control flow whitespaces
codestyle adjustments: EOF new lines
codestyle adjustments: function declaration braces/spaces
codestyle adjustments: class declaration braces
codestyle adjustments: function argument spacing
Apply rector fixes to the rest of inc
No Bing anonymous ping anymore.https://blogs.bing.com/webmaster/may-2022/Spring-cleaning-Removed-Bing-anonymous-sitemap-submission
adjust yandex sitemap submission URL #3670
New sitemap ping URLReference: https://developers.google.com/search/docs/advanced/sitemaps/build-sitemap#addsitemap
change Index objects to non-singletonIndexer, FulltextIndex, MetadataIndex uses common directory to store *.idx files, but this does not mean they should be singleton objects to avoid lock confrict
change Index objects to non-singletonIndexer, FulltextIndex, MetadataIndex uses common directory to store *.idx files, but this does not mean they should be singleton objects to avoid lock confrictions.
replaced out calls to dbglog with new Logger calls
use Indexer.php instead of PageIndex.php
move lookup() to PagewordIndex class, reduce term 'Indexer'make similar MetadataIndex::lookupKey() and PagewordIndex::lookup()
First go at moving the plugin classes into their own namespace
Rename HTTPClient namespace to HTTPThis should make namespace a bit more flexible in scope and allow us tomove more functionality there later.
Refactor HTTPClient into different files
split sitemapping into its own namespace