wikimedia/lucene-explain-parser

Parsing and pretty-printing Lucene explain data

1.0.0 2017-12-22 08:19 UTC

This package is not auto-updated.

Last update: 2020-01-15 00:40:56 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;

Build Status