-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[5.0] Smart Search: Add debugging features #36753
Conversation
Co-authored-by: Brian Teeman <brian@teeman.net>
administrator/components/com_finder/src/Indexer/Debugadapter.php
Outdated
Show resolved
Hide resolved
administrator/components/com_finder/src/Indexer/Debugadapter.php
Outdated
Show resolved
Hide resolved
administrator/components/com_finder/src/Indexer/Debugadapter.php
Outdated
Show resolved
Hide resolved
administrator/components/com_finder/src/Indexer/Debugadapter.php
Outdated
Show resolved
Hide resolved
administrator/components/com_finder/src/Indexer/Debugadapter.php
Outdated
Show resolved
Hide resolved
administrator/components/com_finder/src/Indexer/Debugadapter.php
Outdated
Show resolved
Hide resolved
administrator/components/com_finder/src/View/Indexer/HtmlView.php
Outdated
Show resolved
Hide resolved
administrator/components/com_finder/src/View/Indexer/HtmlView.php
Outdated
Show resolved
Hide resolved
Co-authored-by: Phil E. Taylor <phil@phil-taylor.com>
Co-authored-by: Phil E. Taylor <phil@phil-taylor.com>
Co-authored-by: Phil E. Taylor <phil@phil-taylor.com>
Co-authored-by: Phil E. Taylor <phil@phil-taylor.com>
Co-authored-by: Phil E. Taylor <phil@phil-taylor.com>
Co-authored-by: Phil E. Taylor <phil@phil-taylor.com>
Co-authored-by: Phil E. Taylor <phil@phil-taylor.com>
….2-finder-debug # Conflicts: # administrator/language/en-GB/install.xml # administrator/language/en-GB/langmetadata.xml # administrator/manifests/files/joomla.xml # administrator/manifests/packages/pkg_en-GB.xml # api/language/en-GB/install.xml # api/language/en-GB/langmetadata.xml # composer.json # composer.lock # installation/language/en-GB/langmetadata.xml # language/en-GB/install.xml # language/en-GB/langmetadata.xml # libraries/src/Version.php # plugins/system/webauthn/src/MetadataRepository.php
….2-finder-debug # Conflicts: # composer.json # composer.lock
I would mark all debuging functions/class "@internal" since it's not intended to be used by 3rd party developer. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would like to merge this in to j5 do we already have documentation?
administrator/components/com_finder/src/Controller/IndexerController.php
Show resolved
Hide resolved
Co-authored-by: Harald Leithner <leithner@itronic.at>
Co-authored-by: Harald Leithner <leithner@itronic.at>
…roller.php Co-authored-by: Harald Leithner <leithner@itronic.at>
No, I need to write the complete documentation for Smart Search still. |
Thanks |
Summary of Changes
In order to gain wider adoption from third party developers, we need to provide them with improved development tools. This PR implements a few features, which become visible when the debug mode is enabled.
Display indexed item
First of all we want to be able to see what has been indexed for an item. When you enable debugging, the list of entries in the index will now be linked and clicking on such an entry will give you a view which displays the common data from indexed items, the type specific items, the indexed terms and the associated taxonomies. This allows you to understand if the content was indexed the way you expected it, as well as with the weighing you expected.
Debug indexing of one specific item
Again, when debugging is enabled, a new dropdown button in the index view appears with "Index debugging". This button goes to a new view, where you can select a finder plugin and type in an ID to index and it will then run that plugin for that ID. It will then either return what has been prepared to be indexed by the indexer in the result object or whatever output the plugin generated. This should allow a developer to better write a new finder plugin to index their content.
Testing Instructions
Notes