Hi Erick, Thanks for the response. I am trying to index xml files in a directory. I provide the xpath details, file location etc in data-config.xml. I will try the 2 approaches that you have mentioned.
Regards, Rakesh Varna On Mon, Apr 9, 2012 at 3:38 PM, Erick Erickson <erickerick...@gmail.com>wrote: > Hmmm, not sure about the dataconfig.xml file. What > are you trying to index? Is this DIH? Because > if you're simply posting Solr-formatted XML docs, > dataconfig.xml is irrelevant.... > > You say you're not seeing the output. One of two > things is going on: > 1> The data is not in the index. See the admin/schema browser > page to examine what actually went in your index. > 2> Try doing the query with fl=*. You may simply not be asking > for the fields to be returned. > > Best > Erick > > On Sun, Apr 8, 2012 at 9:09 PM, Rakesh Varna <rakeshva...@gmail.com> > wrote: > > Hello Solr-users, > > I am trying to index xml files which have the following tags: (I am > > using Solr 3.5 on Tomcat) > > > > <DOC> > > <theta1>0.98</theta_1> > > <theta2>0.767</theta_2> > > ..... > > .. > > .. > > .. > > <thetaN>0.2873</thetaN> > > </DOC> > > > > The numbers after "theta" are not a continuous sequence and I do not know > > how many such tags are there. I thought this was a good candidate for > > dynamic fields and have the following schema for those tags: > > <dynamicField name="theta*" type="double" indexed="true" > > stored="true"/> > > Is this correct? If so, what should I use in the data-config.xml file to > > index these tags? > > > > When I try the admin feature in the browser and query *:* , I don't see > the > > theta fields in the response. > > > > If not, is dynamicFields a wrong choice? Is there another way of indexing > > these fields? > > > > Thanks in advance, > > Rakesh Varna >