lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Noble Paul (JIRA)" <j...@apache.org>
Subject [jira] Created: (SOLR-1664) Some Methods in FieldType actually should be in SchemaField
Date Thu, 17 Dec 2009 07:36:18 GMT
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.


Mime
View raw message