wikimedia / lucene-explain-parser
Parsing and pretty-printing Lucene explain data
1.0.0
2017-12-22 08:19 UTC
Requires
- php: >=5.5.9
Requires (Dev)
This package is not auto-updated.
Last update: 2021-01-13 05:27:57 UTC
README
PHP Classes for parsing and pretty-printing Lucene explain structures.
Makes the data (more) human-readable.
This is all based off of https://github.com/o19s/splainer-search, which does much nicer prints of lucene explains for splainer.io.
Usage:
$factory = new ExplainFactory(); $explain = $factory->createExplain( $jsonFromLucene ); $prettyResult = (string)$explain;