Diffusion wikimedia-lucene-explain-parser (master)
README.md
README.md
PHP Classes for parsing and pretty-printing Lucene explain structures.
Makes the data (more) human-readable.
This is all based on https://github.com/o19s/splainer-search, which does much nicer prints of lucene explains for splainer.io.
Usage:
use LuceneExplain\ExplainFactory; $factory = new ExplainFactory(); $explain = $factory->createExplain( $jsonFromLucene ); $prettyResult = (string)$explain;
Content licensed under Creative Commons Attribution-ShareAlike (CC BY-SA) 4.0 unless otherwise noted; code licensed under GNU General Public License (GPL) 2.0 or later and other open source licenses. By using this site, you agree to the Terms of Use, Privacy Policy, and Code of Conduct. · Wikimedia Foundation · Privacy Policy · Code of Conduct · Terms of Use · Disclaimer · CC-BY-SA · GPL