Closed
Conversation
added 6 commits
January 28, 2026 10:49
Fix #2: Add ContentIntelCollectorInterface - Create interface defining the service contract - Update ContentIntelCollector to implement the interface - Add loadEntities() method for bulk entity loading Fix #3: Add logging for silent exception in ContentTranslationPlugin - Inject logger service - Log warnings when translation metadata fetch fails - Add metadata_error field to output for debugging Fix #4: Optimize batch command with loadMultiple() - Use loadEntities() for bulk loading instead of individual loads - Reduces N+1 queries to single loadMultiple() call - Improves performance for large batch operations
- Install statistics contrib module in drupal-check script - Add PHPStan config to ignore optional statistics module errors - Fix type safety: add ContentEntityInterface check in listEntities() - Fix DI: inject date.formatter service in StatisticsPlugin
- Preserve input order in loadEntities() method - Document getPlugins() return structure in interface PHPDoc
Add SearchQueryCollector service to collect and expose search query intelligence for content strategy analysis. Features: - New database table content_intel_search_log for query logging - SearchQueryCollector service with support for multiple data sources - Drush commands: ci:searches and ci:search-status - Content gap detection (queries with zero/low results) Closes #10
Contributor
Author
|
Closing - approach doesn't align with content_intel's entity-centric architecture. Will reconsider with proper entity-level search performance tracking (impressions/clicks per content item) instead of query-level logging. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
SearchQueryCollectorservice to collect and expose search query intelligencecontent_intel_search_logfor logging queriesci:searchesandci:search-statusFeatures
Data Collection:
Drush Commands:
Output Example:
Use Case
Enables AI content strategy tools to identify what users search for but don't find — revealing content gaps and priority topics.
Test plan
drush updbto create the logging tabledrush ci:search-statusshows "content_intel" sourcedrush ci:searchesreturns empty table (no data yet)Closes #10