Yeah , you caught it right .... Yes it was kid of Dtd . Anyways thanks a lot for clearing my doubt ..
SOLVED ..... On 25-Oct-2013 6:34 PM, "Daniel Collins" <danwcoll...@gmail.com> wrote: > I think what you are looking for is some kind of DTD/schema you can use to > see all the possible parameters in SolrConfig.xml, short answer, there > isn't one (currently) :( > > jetty.xml has a DTD schema, and its XMLConfiguration format is inherently > designed to convert to code, so the list of possible options can be > generated by Java Reflection, but Solr's isn't quite that advanced. > > Generally speaking the config is described in > http://wiki.apache.org/solr/SolrConfigXml. > > However, that is (by the nature of manually generated documentation) a bit > out of date, so things like the updateLog aren't referenced there. There > is no Schema or DTD for SolrConfig, the best place to look for what the > various options are is either the sample config which is generally quite > good or the code (org.apache.solr.core.SolrConfig.java). > > At the end of the day updateLog is just the name of a config parameter it > is grouped under updateHandler since it relates to that. How we "know" > such a parameter exists: > > 1) it was in the sample config (and commented to indicate what it means) > 2) its referenced in the code if you look through that > > > > > On 25 October 2013 13:06, Alexandre Rafalovitch <arafa...@gmail.com> > wrote: > > > I think better understanding is a bit too vague. Is there a specific > > problem you have? Your Jetty example would make sense if, for example, > your > > goal was to automatically generate solrconfig.xml from some other > > configuration. But even then, you would probably use fillable templates > and > > don't need fully corresponding JAVA api. > > > > For example, you are unlikely to edit the very line you are asking about, > > it's a little too esoteric: > > <updateHandler class=solr.DirectUpdateHandler2> > > > > Perhaps, what you want to do is to look at the smallest possible > > solrconfig.xml and then expand from there by looking at additional > options. > > > > Regarding specific options available, most are documented on the Wiki and > > in the comments of the sample file. > > > > Regards, > > Alex. > > > > Personal website: http://www.outerthoughts.com/ > > LinkedIn: 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) > > > > > > On Fri, Oct 25, 2013 at 5:19 PM, Amit Aggarwal < > amit.aggarwa...@gmail.com > > >wrote: > > > > > Hello All, > > > > > > Can some one explain me following snippet of SolrConfig.xml in terms of > > > Solr API (Java Psuedo Code) for better understanding. > > > > > > like > > > *<updateHandler class=solr.DirectUpdateHandler2>* > > > * * > > > * <UpdateLog>* > > > * <str dir="BLAH" />* > > > * </UpdateLog>* > > > ** > > > ** > > > *....* > > > *</UpdateHandler>* > > > > > > > > > Here I want to know . > > > > > > 1. What is "updateHandler" ? Is it some Package or class of interface ? > > > 2. Whats is solr.DirectUpdateHandler2 ? Is it class > > > 3. What is "updateLog" ? is it package ? > > > 4. How do we know that UpdateLog have sub-element "dir" ? > > > 5. how do we know that "updateLog" would be sub-element of > > "updateHandler" > > > ?? Is "updateLog" some kind of subClass of something else ? > > > > > > > > > I KNOW that all these things are given in SolConfig.xml but I donot > want > > to > > > cram those things . > > > > > > One example of jetty.xml whatever we write there , it can be translated > > to > > > JAVA psuedo code > > > > > >