Hi Renaud: Right now we faced the same issue: while developing a new RequestHandler we needed to add some information per field (in our case to define some fields as defaultSearchFields). We thought that this could be added externally in a configuration file or in the schema as new attributes.
Looking at the code we found out that there's no way to extend the schema. Finally we copied part of the code that reads the schema in our RequestHandler. It works but I'm not sure if it's the best way to do it. Let me know if you want our code as an example. I do think its worth to open an issue for this requirement. Regards, Javier On Thu, Sep 9, 2010 at 7:29 PM, Renaud Delbru <renaud.del...@deri.org>wrote: > Hi, > > so I suppose there is no solution. Is there a chance that SchemaField > becomes extensible in the future ? Because, at the moment, all the field > attributes (indexed, stored, etc.) are hardcoded inside SchemaField. Do you > think it is worth opening an issue about it ? > -- > Renaud Delbru > > On 07/09/10 16:13, Renaud Delbru wrote: > >> Hi, >> >> I would like to extend the field node in the schema.xml by adding new >> attributes. For example, I would like to be able to write: >> <field type="myField" myattribute="myvalue"/> >> And be able to access myattribute directly from IndexSchema and >> SchemaField objects. However, these two classes are final, and also not very >> easy to extend ? >> Is there any other solutions ? >> >> thanks, >> > >