lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <hossman_luc...@fucit.org>
Subject Re: [jira] Commented: (SOLR-75) XSLT-based "Schema Browser" in admin view
Date Fri, 08 Dec 2006 19:26:44 GMT

: What do you mean by inheritng/overriding?  Granted, I am only working
: with the example schema here, but I do not see any similarities
: between the attributes of a field, and the fieldtype.  For fieldtypes,

Doh! ... you're right ... there aren't any examples of what i'm talking
about in the sample schema.xml.

Basically, any "core" boolean attribute that can be set on a <field> can
be set on a <fieldtype>, by default a field inherits all of it's
attributes from the <filedtype> it uses, this is touched on briefly in the
SchemaXml wiki page...

	Individual fields can override the various options (indexed, stored,
	etc...) that they inherit from their fieldtype.

(it just so happens that the CNET schema we used as a template for hte
orriginal example schema.xml didn't excercise this feature)


looking at the code, the only core attribute of a <fieldtype> that can't
be overridden by a <field> is "positionIncrementGap" (and i think that has
more to do with it being a numeric attribute then anything else. If you
define a new custom FieldType with custom attributes, those wouldn't
overridable by the <field> either.

I'll make a note on the TaskList that we should both document this a
little better (and add some examples to the schema.xml)


  ...does what i was suggesting earlier make more sense now?


-Hoss


Mime
View raw message