Class ExplainAugmenterFactory
- java.lang.Object
-
- org.apache.solr.response.transform.TransformerFactory
-
- org.apache.solr.response.transform.ExplainAugmenterFactory
-
- All Implemented Interfaces:
NamedListInitializedPlugin
public class ExplainAugmenterFactory extends TransformerFactory
- Since:
- solr 4.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ExplainAugmenterFactory.Style
-
Field Summary
Fields Modifier and Type Field Description protected ExplainAugmenterFactory.Style
defaultStyle
-
Fields inherited from class org.apache.solr.response.transform.TransformerFactory
defaultFactories, defaultUserArgs
-
-
Constructor Summary
Constructors Constructor Description ExplainAugmenterFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DocTransformer
create(String field, SolrParams params, SolrQueryRequest req)
static ExplainAugmenterFactory.Style
getStyle(String str)
void
init(NamedList args)
static String
toHtml(org.apache.lucene.search.Explanation explanation)
Render an explanation as HTML.
-
-
-
Field Detail
-
defaultStyle
protected ExplainAugmenterFactory.Style defaultStyle
-
-
Method Detail
-
init
public void init(NamedList args)
- Specified by:
init
in interfaceNamedListInitializedPlugin
- Overrides:
init
in classTransformerFactory
-
getStyle
public static ExplainAugmenterFactory.Style getStyle(String str)
-
create
public DocTransformer create(String field, SolrParams params, SolrQueryRequest req)
- Specified by:
create
in classTransformerFactory
-
toHtml
public static String toHtml(org.apache.lucene.search.Explanation explanation)
Render an explanation as HTML.
-
-