Oh, I guess I didn't say it clearly in my post. I didn't use wild cards in xpath. My question was how to index attributes "id" and "mid" in the following xml file.
<merchantProduct id="814636051" mid="189973"> <in_stock type="stock-4" /> <condition type="cond-0" /> <price>301.46</price> </merchantProduct> In the data-config.xml, I use <field column="price" xpath="/merchantProduct/price" /> but what are the xpath for "id" and "mid"? Thanks again! --- On Fri, 5/22/09, Noble Paul നോബിള് नोब्ळ् <noble.p...@corp.aol.com> wrote: > From: Noble Paul നോബിള് नोब्ळ् <noble.p...@corp.aol.com> > Subject: Re: How to use DIH to index attributes in xml file > To: solr-user@lucene.apache.org > Date: Friday, May 22, 2009, 9:03 PM > wild cards are not supported . u must > use full xpath > > On Sat, May 23, 2009 at 4:55 AM, Jianbin Dai <djian...@yahoo.com> > wrote: > > > > I have an xml file like this > > > > <merchantProduct id="814636051" mid="189973"> > > <in_stock > type="stock-4" /> > > <condition > type="cond-0" /> > > > <price>301.46</price> > > </merchantProduct> > > > > In the data-config.xml, I use > > <field column="price" > xpath="/.../merchantProduct/price" /> > > > > but how can I index "id", "mid"? > > > > Thanks. > > > > > > > > > > > > -- > ----------------------------------------------------- > Noble Paul | Principal Engineer| AOL | http://aol.com >