You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by Grant Ingersoll <gs...@apache.org> on 2009/11/19 20:37:14 UTC

FieldType.getValueSource()

On FieldType, the getValueSource(SchemaField, QParser) implementation just calls the deprecated getValueSource(SchemaField) method.  
/** called to get the default value source (normally, from the
   *  Lucene FieldCache.)
   */
  public ValueSource getValueSource(SchemaField field, QParser parser) {
    return getValueSource(field);
  }

What is the intent of the QParser being passed in?  If I'm writing my own QParser that needs to get some ValueSource for a Field, do I pass in this or do I need to pass in some other QParser?

Thanks,
Grant