public class SimpleTermsComponentResponseWriter extends java.lang.Object implements QueryResponseWriter
TermsComponent
利用時の単純・軽量なCSV形式出力を行う。<searchComponent name="termsComponent" class="solr.TermsComponent"/> <requestHandler name="/terms" class="solr.SearchHandler"> <lst name="defaults"> <bool name="terms">true</bool> <str name="terms.fl">statement_buzz</str> <int name="terms.limit">10000</int> <str name="wt">simpleTerms</str> </lst> <arr name="components"> <str>termsComponent</str> </arr> </requestHandler> <queryResponseWriter name="simpleTerms" class="com.rondhuit.solr.response.SimpleTermsComponentResponseWriter"/>
CONTENT_TYPE_TEXT_ASCII, CONTENT_TYPE_TEXT_UTF8, CONTENT_TYPE_XML_UTF8
コンストラクタと説明 |
---|
SimpleTermsComponentResponseWriter() |
修飾子とタイプ | メソッドと説明 |
---|---|
java.lang.String |
getContentType(SolrQueryRequest request,
SolrQueryResponse response) |
void |
init(org.apache.solr.common.util.NamedList args) |
void |
write(java.io.Writer writer,
SolrQueryRequest request,
SolrQueryResponse response) |
public java.lang.String getContentType(SolrQueryRequest request, SolrQueryResponse response)
getContentType
インタフェース内 QueryResponseWriter
public void init(org.apache.solr.common.util.NamedList args)
init
インタフェース内 QueryResponseWriter
init
インタフェース内 NamedListInitializedPlugin
public void write(java.io.Writer writer, SolrQueryRequest request, SolrQueryResponse response) throws java.io.IOException
write
インタフェース内 QueryResponseWriter
java.io.IOException
Copyright © 2009-2018 RONDHUIT Co.,Ltd. All Rights Reserved.