Hi Chris,

I have opened an issue (SOLR-2146 [1]) following that discussion.

[1] https://issues.apache.org/jira/browse/SOLR-2146

cheers
--
Renaud Delbru

On 14/09/10 01:06, Chris Hostetter wrote:
: Yes, I have thought of that, or even extending field type. But this does not
: work for my use case, since I can have multiple fields of a same type
: (therefore with the same field type, and same analyzer), but each one of them
: needs specific information. Therefore, I think the only "nice" way to achieve
: this is to have the possibility to add attributes to any field definition.

Right, at the moment custom FieldType classes can specify whatever
attributes they want to use in the<fieldType />  declaration -- but it's
not possible to specify arbitrary attributes that can be used in the
<field />  declaration.

By all means, pelase open an issue requesting this as a feature.

I don't know that anyone explicitly set out to impose this limitation, but
one of the reasons it likely exists is because SchemaField is not
something that is intended to be customized -- while FieldType
objects are constructed once at startup, SchemaField obejcts are
frequently created on the fly when dealing with dynamicFields, so
initialization complexity is kept to a minimum.

That said -- this definitely seems like that type of usecase that we
should try to find *some* solution for -- even if it just means having
Solr automaticly create hidden FieldType instances for you on startup
based on attributes specified in the<field />  that the corrisponding
FieldType class understands.


-Hoss

--
http://lucenerevolution.org/  ...  October 7-8, Boston
http://bit.ly/stump-hoss      ...  Stump The Chump!


Reply via email to