Example usage for org.apache.solr.spelling.suggest SolrSuggester toString

List of usage examples for org.apache.solr.spelling.suggest SolrSuggester toString

Introduction

In this page you can find the example usage for org.apache.solr.spelling.suggest SolrSuggester toString.

Prototype

@Override
    public String toString() 

Source Link

Usage

From source file:org.alfresco.solr.component.AsyncBuildSuggestComponent.java

License:Open Source License

@Override
public NamedList<String> getStatistics() {
    NamedList<String> stats = new SimpleOrderedMap<>();
    stats.add("totalSizeInBytes", String.valueOf(ramBytesUsed()));
    for (Map.Entry<String, SuggesterCache> entry : suggesters.entrySet()) {
        SolrSuggester suggester = entry.getValue().get(entry.getKey());
        stats.add(entry.getKey(), suggester.toString());
    }/*from w w  w  . j a  v a2s  .co m*/
    return stats;
}