Yeah... not sure how I missed it, but my search sees it now.

Also, the name will default to "schema.xml" is you do leave it out of the schema.

-- Jack Krupansky

-----Original Message----- From: Mikhail Khludnev
Sent: Thursday, December 20, 2012 3:06 PM
To: solr-user
Subject: Re: Where does schema.xml's schema/@name displays?

Jack,
FWIW I've found occurrence in SystemInfoHandler.java


On Thu, Dec 20, 2012 at 6:32 PM, Jack Krupansky <j...@basetechnology.com>wrote:

I checked the 4.x source code and except for the fact that you will get a
warning if you leave it out, nothing uses that name. But... that's not to
say that a future release might not require it - the doc/comments don't
explicitly say that it is optional.

Note that the version attribute is optional (as per the source code, but
no mention in doc/comments) and defaults to 1.0, with no warning.

-- Jack Krupansky


-----Original Message----- From: Alexandre Rafalovitch
Sent: Thursday, December 20, 2012 12:08 AM
To: solr-user@lucene.apache.org
Subject: Where does schema.xml's schema/@name displays?

Hello,

In the schema.xml, we have a name attribute on the root note. The
documentation says it is for display purpose only. But for display where?

It seems that the admin console uses the name in the solr.xml file instead. And deleting the name attribute does not seem to cause any problems either.

The reason I ask is because I am writing an explanation example which
involves schema.xml config file being copied and modified over and over
again. If @name is significant, I need to mention changing it. If not, I
will just delete it all together.

Regards,
  Alex.


Personal blog: http://blog.outerthoughts.com/
LinkedIn: http://www.linkedin.com/in/**alexandrerafalovitch<http://www.linkedin.com/in/alexandrerafalovitch>
- Time is the quality of nature that keeps events from happening all at
once. Lately, it doesn't seem to be working.  (Anonymous  - via GTD book)




--
Sincerely yours
Mikhail Khludnev
Principal Engineer,
Grid Dynamics

<http://www.griddynamics.com>
<mkhlud...@griddynamics.com>

Reply via email to