org.apache.solr.search
Class SolrReturnFields

java.lang.Object
  extended by org.apache.solr.search.ReturnFields
      extended by org.apache.solr.search.SolrReturnFields

public class SolrReturnFields
extends ReturnFields

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

SCORE

public static final String SCORE
See Also:
Constant Field Values

transformer

protected DocTransformer transformer

_wantsScore

protected boolean _wantsScore

_wantsAllFields

protected boolean _wantsAllFields
Constructor Detail

SolrReturnFields

public SolrReturnFields()

SolrReturnFields

public SolrReturnFields(SolrQueryRequest req)

SolrReturnFields

public SolrReturnFields(String fl,
                        SolrQueryRequest req)

SolrReturnFields

public SolrReturnFields(String[] fl,
                        SolrQueryRequest req)
Method Detail

getLuceneFieldNames

public Set<String> getLuceneFieldNames()
Description copied from class: ReturnFields
Set of field names with their exact names from the lucene index.

Class such as ResponseWriters pass this to SolrIndexSearcher.doc(int, Set).

Specified by:
getLuceneFieldNames in class ReturnFields
Returns:
Set of field names or null (all fields).

getRequestedFieldNames

public Set<String> getRequestedFieldNames()
Description copied from class: ReturnFields
The requested field names (includes pseudo fields)

Specified by:
getRequestedFieldNames in class ReturnFields
Returns:
Set of field names or null (all fields).

hasPatternMatching

public boolean hasPatternMatching()
Description copied from class: ReturnFields
Returns true if the fieldnames should be picked with a pattern

Specified by:
hasPatternMatching in class ReturnFields

wantsField

public boolean wantsField(String name)
Description copied from class: ReturnFields
Returns true if the specified field should be returned.

Specified by:
wantsField in class ReturnFields

wantsAllFields

public boolean wantsAllFields()
Description copied from class: ReturnFields
Returns true if all fields should be returned.

Specified by:
wantsAllFields in class ReturnFields

wantsScore

public boolean wantsScore()
Description copied from class: ReturnFields
Returns true if the score should be returned.

Specified by:
wantsScore in class ReturnFields

getTransformer

public DocTransformer getTransformer()
Description copied from class: ReturnFields
Returns the DocTransformer used to modify documents, or null

Specified by:
getTransformer in class ReturnFields


Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.