Return-Path: X-Original-To: apmail-lucene-solr-user-archive@minotaur.apache.org Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A351110FCC for ; Mon, 10 Mar 2014 00:17:13 +0000 (UTC) Received: (qmail 18814 invoked by uid 500); 10 Mar 2014 00:17:08 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 18686 invoked by uid 500); 10 Mar 2014 00:17:08 -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 18678 invoked by uid 99); 10 Mar 2014 00:17:08 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Mar 2014 00:17:08 +0000 X-ASF-Spam-Status: No, hits=1.3 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of arafalov@gmail.com designates 209.85.192.173 as permitted sender) Received: from [209.85.192.173] (HELO mail-pd0-f173.google.com) (209.85.192.173) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Mar 2014 00:17:03 +0000 Received: by mail-pd0-f173.google.com with SMTP id z10so6307971pdj.18 for ; Sun, 09 Mar 2014 17:16:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=VljahHehhHAU1PN/7rNpfW/Sp5jcdGjK++q6QC1BApc=; b=LSIMW7jqdSHunGBAzmUuYCoPV0v/9IhB50m1BxxGWZc6mv0jmwGevZyOls5az+w5zc DFiEynRE/RPhpwfTm83TdtywvDFaQMvHj6VIk8yDc6/5nI9qBTN7eBScUQI3uQgGJrJ0 bV17FLHom/gZpKHE6bfVc9/wa7GmK8zeO6cEdhm/mggL/ROg00+NXD0IucOJ4m8XsLa7 kvCvjq7D1M0Uy8pY3sbDZwcwSD7egbcqfZl17LZDSGUsnOVJitMZK9O4O6Frlz1yrRuQ E1oetuLDLixXPdFFH4m6TpVk5/XxXzPu9KZLn0kzf/VdQtI3SOHID9b9ch0Q3vm0/xga HBFQ== X-Received: by 10.68.40.138 with SMTP id x10mr37012333pbk.8.1394410602287; Sun, 09 Mar 2014 17:16:42 -0700 (PDT) MIME-Version: 1.0 Received: by 10.66.50.10 with HTTP; Sun, 9 Mar 2014 17:16:02 -0700 (PDT) In-Reply-To: <1394407395765-4122451.post@n3.nabble.com> References: <1394407395765-4122451.post@n3.nabble.com> From: Alexandre Rafalovitch Date: Mon, 10 Mar 2014 07:16:02 +0700 Message-ID: Subject: Re: Querying XML To: solr-user@lucene.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Are you using or have you looked at http://luxdb.org/ ? Might be relevant. 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 Mon, Mar 10, 2014 at 6:23 AM, cju wrote: > I have some XML stored in Solr that looks like this: > > > > > > > > > What I=E2=80=99d like to do is get a hit for this document if there=E2=80= =99s an element in > the XML where (@name=3D=E2=80=9DBob=E2=80=9D AND @city=3D=E2=80=9DCincinn= ati=E2=80=9D). If I write something > like this, I=E2=80=99ll get a hit =E2=80=93 although I=E2=80=99m not actu= ally matching what I=E2=80=99m > looking for: > > q=3DMainData.Info.Info@name:Bob AND MainData.Info.Info@city:Cincinnati > > I want to my criteria only to match attributes within the same element, f= or > example: > > > > > > (only match this) > > > > Is it possible to write a query to achieve this without changing my XML? > > > > -- > View this message in context: http://lucene.472066.n3.nabble.com/Querying= -XML-tp4122451.html > Sent from the Solr - User mailing list archive at Nabble.com.