Return-Path: Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: (qmail 32494 invoked from network); 17 Mar 2010 06:07:30 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 17 Mar 2010 06:07:30 -0000 Received: (qmail 27704 invoked by uid 500); 17 Mar 2010 06:07:28 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 27611 invoked by uid 500); 17 Mar 2010 06:07:28 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 27603 invoked by uid 99); 17 Mar 2010 06:07:27 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Mar 2010 06:07:27 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,MIME_QP_LONG_LINE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of Manas.Nair@mtvnmix.com designates 166.77.11.39 as permitted sender) Received: from [166.77.11.39] (HELO mailout02.viacom.com) (166.77.11.39) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Mar 2010 06:07:19 +0000 X-SBRS: None X-SenderGroup: RELAYLIST X-MailFlowPolicy: $RELAYED X-MID: 8080669 Received: from cps6-prd2.mtvn.ad.viacom.com (HELO pa.pa) ([166.77.200.171]) by mailout02.viacom.com with ESMTP; 17 Mar 2010 02:06:58 -0400 Received: from cps6-prd2.mtvn.ad.viacom.com ([127.0.0.1]) by pa.pa with Microsoft SMTPSVC(6.0.3790.3959); Wed, 17 Mar 2010 02:06:58 -0400 Received: from inferno03.mtvn.ad.viacom.com ([166.77.35.169]) by cps6-prd2.mtvn.ad.viacom.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 17 Mar 2010 02:06:58 -0400 Received: from STRANGELOVE.mtvn.ad.viacom.com ([166.77.187.132]) by inferno03.mtvn.ad.viacom.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 17 Mar 2010 02:06:58 -0400 x-mimeole: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01CAC598.0CFE7A1B" Subject: RE: XML data in solr field Date: Wed, 17 Mar 2010 02:04:38 -0400 Message-ID: <0D7108486FA593428A9C61E87ABB0BB6056FE1E4@STRANGELOVE.mtvn.ad.viacom.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: XML data in solr field Thread-Index: AcrFTIeOngtJusPKRuyKPF3JBo9p1QASzJij References: <0D7108486FA593428A9C61E87ABB0BB6056FE1E3@STRANGELOVE.mtvn.ad.viacom.com> <4B9FF2AB.6020907@gmail.com> From: "Nair, Manas" To: X-OriginalArrivalTime: 17 Mar 2010 06:06:58.0042 (UTC) FILETIME=[0D2FD5A0:01CAC598] X-Virus-Checked: Checked by ClamAV on apache.org ------_=_NextPart_001_01CAC598.0CFE7A1B Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Thankyou Tommy. But the real problem here is that the xml is dynamic and = the element names will be different in different docs which means that = there will be a lot of field names to be added in schema if I were to = index those xml nodes separately. Is it possible to have nested indexing (xml within xml) in solr without = the overhead of adding all those inner xml nodes as actual fields in = solr schema? =20 Manas ________________________________ From: Tommy Chheng [mailto:tommy.chheng@gmail.com] Sent: Tue 3/16/2010 5:05 PM To: solr-user@lucene.apache.org Subject: Re: XML data in solr field Do you have the option of just importing each xml node as a field/value when you add the document? That'll let you do the search easily. If you need to store the raw XML, you can use an extra field. Tommy Chheng Programmer and UC Irvine Graduate Student Twitter @tommychheng http://tommy.chheng.com =20 On 3/16/10 12:59 PM, Nair, Manas wrote: > Hello Experts, > > I need help on this issue of mine. I am unsure if this scenario is = possible. > I have a field in my solr document named, the value of which = is a xml string as below. This xml structure is within the inputxml = field value. I needed help on searching this xml structure i.e. if I = search for Venue, I should get "Radio City Music Hall" as the result = and not the complete tag like. = Is this supported in solr?? If it is, how can this be implemented?? > > > > > >
> > > Any help is appreciated. I donot need the tag name in the result, = instead I need the tag value. > > Thanks in advance, > Manas Nair > ------_=_NextPart_001_01CAC598.0CFE7A1B--