lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Walter Underwood <wunderw...@netflix.com>
Subject Re: merely a suggestion: schema.xml validator or better schema validation logging
Date Sun, 04 Mar 2007 16:52:53 GMT
On 3/3/07 1:43 PM, "Chris Hostetter" <hossman_lucene@fucit.org> wrote:

> : Right now, Solr accesses the DOM as needed (at runtime) to fetch
> : information. There isn't much up-front checking beyond the XML
> : parser.
> 
> bingo, and adding more upfront checking is hard for at least two reasons i
> can think of...
> 
> 1) keeping a DTD up to date is a pain sa new features are added
> 2) the way some options are passed to plugable classes makes it impossible
> to validate (ie: tokenizers, caches, etc...)

I was thinking of translating the config file into internal config
properties when it was read, and logging Solr specific errors then.
Things like "I can't load this class" are pretty easy at that poin.

DTDs are inadequate and XML Schema is horrid, plus the error messages
from either would be not particularly useful.

wunder



Mime
View raw message