Some Methods in FieldType actually should be in SchemaField
-----------------------------------------------------------
Key: SOLR-1664
URL: https://issues.apache.org/jira/browse/SOLR-1664
Project: Solr
Issue Type: Improvement
Reporter: Noble Paul
Fix For: 1.5
A lot of methods in FieldType actually should be in SchemaField. As we can see
, all the following methods require SchemaField as an argument. The point is
that most of the information is only available w/ SchemaField
{code:java}
public Field createField(SchemaField field, String externalVal, float boost) ;
protected Field.TermVector getFieldTermVec(SchemaField field,String
internalVal) ;
protected Field.Store getFieldStore(SchemaField field,String internalVal);
protected Field.Index getFieldIndex(SchemaField field,String internalVal);
public ValueSource getValueSource(SchemaField field, QParser parser);
public Query getRangeQuery(QParser parser, SchemaField field, String part1,
String part2, boolean minInclusive, boolean maxInclusive) ;
{code}
As an enhancement we should treat FieldType as a factory for SchemaField and
make SchemaField non final
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.