|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.solr.search.ReturnFields org.apache.solr.search.SolrReturnFields
public class SolrReturnFields
The default implementation of return fields parsing for Solr.
Field Summary | |
---|---|
protected boolean |
_wantsAllFields
|
protected boolean |
_wantsScore
|
static String |
SCORE
|
protected DocTransformer |
transformer
|
Constructor Summary | |
---|---|
SolrReturnFields()
|
|
SolrReturnFields(SolrQueryRequest req)
|
|
SolrReturnFields(String[] fl,
SolrQueryRequest req)
|
|
SolrReturnFields(String fl,
SolrQueryRequest req)
|
Method Summary | |
---|---|
Set<String> |
getLuceneFieldNames()
Set of field names with their exact names from the lucene index. |
Set<String> |
getRequestedFieldNames()
The requested field names (includes pseudo fields) |
DocTransformer |
getTransformer()
Returns the DocTransformer used to modify documents, or null |
boolean |
hasPatternMatching()
Returns true if the fieldnames should be picked with a pattern |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String SCORE
protected DocTransformer transformer
protected boolean _wantsScore
protected boolean _wantsAllFields
Constructor Detail |
---|
public SolrReturnFields()
public SolrReturnFields(SolrQueryRequest req)
public SolrReturnFields(String fl, SolrQueryRequest req)
public SolrReturnFields(String[] fl, SolrQueryRequest req)
Method Detail |
---|
public Set<String> getLuceneFieldNames()
ReturnFields
Class such as ResponseWriters pass this to SolrIndexSearcher.doc(int, Set)
.
getLuceneFieldNames
in class ReturnFields
null
(all fields).public Set<String> getRequestedFieldNames()
ReturnFields
getRequestedFieldNames
in class ReturnFields
null
(all fields).public boolean hasPatternMatching()
ReturnFields
true
if the fieldnames should be picked with a pattern
hasPatternMatching
in class ReturnFields
public boolean wantsField(String name)
ReturnFields
true
if the specified field should be returned.
wantsField
in class ReturnFields
public boolean wantsAllFields()
ReturnFields
true
if all fields should be returned.
wantsAllFields
in class ReturnFields
public boolean wantsScore()
ReturnFields
true
if the score should be returned.
wantsScore
in class ReturnFields
public DocTransformer getTransformer()
ReturnFields
null
getTransformer
in class ReturnFields
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |