/redaxo-search-it:search-it-indexingfrom redaxo-search-it
Generates and manages the search index for the REDAXO Search It addon: reindex articles, index database columns, files, and PDFs via console commands or PHP API. Use when search results are stale or custom content needs indexing.
Ships in redaxo-search-it. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Search It stores all searchable content in database tables (rex_tmp_search_it_index, rex_tmp_search_it_keywords). Content must be indexed before it appears in search results.
By default:
pdftotext (must be installed on server)Backend > Search It > Generate index > "Generate index" button.
php redaxo/bin/console search_it:reindex # full reindex
php redaxo/bin/console search_it:clearCache # clear search cache only
use FriendsOfRedaxo\SearchIt\SearchIt;
$search = new SearchIt();
$search->generateIndex(); // full reindex
$search = new SearchIt();
// Single article (optionally for specific language)
$search->indexArticle(42); // all languages
$search->indexArticle(42, rex_clang::getCurrentId()); // current language only
// Database column
$search->indexColumn(rex::getTable('my_table'), 'description');
// File
$search->indexFile('document.pdf');
$search = new SearchIt();
$search->deleteIndex(); // drop entire index (requires regeneration)
$search->deleteCache(); // clear cached search results
$search->deleteKeywords(); // clear similarity keyword index
Search It hooks into REDAXO extension points via EventHandler and automatically re-indexes articles when they are saved, published or deleted. This happens for:
ART_ADDED, ART_UPDATED, ART_DELETEDART_STATUS (online/offline toggle)SLICE_ADDED, SLICE_UPDATED, SLICE_DELETEDMEDIA_ADDED, MEDIA_UPDATEDNo manual action needed for article content changes. But if you change backend settings (e.g. add a new DB column source), you must trigger a full reindex.
In the backend under Cronjob addon, two cronjob types are available:
Useful for sites with frequently changing external data sources (e.g. DB columns filled by imports).
Articles are fetched via HTTP (or socket), rendered, then converted to plaintext by FriendsOfRedaxo\SearchIt\Plaintext\PlaintextConverter. It strips HTML, applies CSS selector exclusions, runs regex replacements and optionally parses Textile. Settings + the SEARCH_IT_PLAINTEXT extension point are the supported ways to tune it — instantiating the converter directly is rarely necessary.
Configure in backend: Settings > Plaintext settings:
nav, .no-search, footer (content in these elements is not indexed)rex_extension::register('SEARCH_IT_PLAINTEXT', function(rex_extension_point $ep) {
$text = $ep->getSubject();
// Remove specific content before indexing
$text = preg_replace('/<div class="no-index">.*?<\/div>/s', '', $text);
return $text;
});
Return an array to control further processing:
return ['text' => $cleanedText, 'process' => true];
// process = true: standard plaintext conversion still runs after your hook
// process = false: use your text as-is, skip built-in conversion
Requires pdftotext (from poppler-utils) on the server:
apt-get install poppler-utils # Debian/Ubuntu
Search It uses FriendsOfRedaxo\SearchIt\Pdf\PdfConverter (shells out to pdftotext) to extract text from PDF files in the media pool. Enable file indexing and add pdf to the allowed extensions in backend settings.
| Table | Purpose |
|---|---|
rex_tmp_search_it_index | Main index (plaintext, metadata per article/column/file) |
rex_tmp_search_it_keywords | Keywords for similarity search |
rex_tmp_search_it_cache | Cached search results |
rex_tmp_search_it_cacheindex_ids | Links cache entries to index entries |
rex_tmp_search_it_stats_searchterms | Search term statistics |
Tables use the tmp_ prefix because they are regenerable – the index can always be rebuilt from source content.
generateIndex() on every page load – this is an expensive operation. Only call it from console, cronjob, or backend.indexArticle() – if the search cache contains stale results, call deleteCache() as well.poppler-utils on the server – PDF files are silently skipped if pdftotext is not available.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
5 skills in this plugin
/search-it-configurationSearch It backend configuration – search modes (LIKE/MATCH, AND/OR), text modes, highlight settings, additional index sources (DB columns, media, files), blacklist, plaintext conversion, similarity search (soundex/metaphone/Cologne phonetic), autocomplete/suggest setup, statistics. Use when the user configures search_it settings, adds index sources, or asks about search modes and options./search-it-extension-pointsSearch It extension points – SEARCH_IT_INDEX_ARTICLE, SEARCH_IT_PLAINTEXT, SEARCH_IT_SEARCH_EXECUTED. Use when the user wants to hook into search indexing, customise plaintext conversion, exclude articles from the index, track search analytics, or modify search behaviour via rex_extension./search-it-npx claudepluginhub friendsofredaxo/claude-marketplace --plugin redaxo-search-itOther plugins' skills for the same job