public class SolrReturnFields extends ReturnFields
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
_wantsAllFields |
protected boolean |
_wantsScore |
static String |
SCORE |
protected DocTransformer |
transformer |
| Constructor and Description |
|---|
SolrReturnFields() |
SolrReturnFields(SolrQueryRequest req) |
SolrReturnFields(String[] fl,
SolrQueryRequest req) |
SolrReturnFields(String fl,
SolrQueryRequest req) |
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getLuceneFieldNames()
Set of field names with their exact names from the lucene index.
|
DocTransformer |
getTransformer()
Returns the DocTransformer used to modify documents, or
null |
boolean |
wantsAllFields()
Returns
true if all fields should be returned. |
boolean |
wantsField(String name)
Returns
true if the specified field should be returned. |
boolean |
wantsScore()
Returns
true if the score should be returned. |
public static final String SCORE
protected DocTransformer transformer
protected boolean _wantsScore
protected boolean _wantsAllFields
public SolrReturnFields()
public SolrReturnFields(SolrQueryRequest req)
public SolrReturnFields(String fl, SolrQueryRequest req)
public SolrReturnFields(String[] fl, SolrQueryRequest req)
public Set<String> getLuceneFieldNames()
ReturnFields
Class such as ResponseWriters pass this to SolrIndexSearcher.doc(int, Set).
getLuceneFieldNames in class ReturnFieldsnull (all fields).public boolean wantsField(String name)
ReturnFieldstrue if the specified field should be returned.wantsField in class ReturnFieldspublic boolean wantsAllFields()
ReturnFieldstrue if all fields should be returned.wantsAllFields in class ReturnFieldspublic boolean wantsScore()
ReturnFieldstrue if the score should be returned.wantsScore in class ReturnFieldspublic DocTransformer getTransformer()
ReturnFieldsnullgetTransformer in class ReturnFieldsCopyright © 2000-2013 Apache Software Foundation. All Rights Reserved.