I have some XML stored in Solr that looks like this: <MainInfo> <Info> <Info name="Bob" city="Columbus" /> <Info name="Joe" city="Cincinnati" /> </Info> </MainInfo> What I’d like to do is get a hit for this document if there’s an element in the XML where (@name=”Bob” AND @city=”Cincinnati”). If I write something like this, I’ll get a hit – although I’m not actually matching what I’m looking for: q=MainData.Info.Info@name:Bob AND MainData.Info.Info@city:Cincinnati I want to my criteria only to match attributes within the same element, for example: <MainData> <Info> <Info name="Bob" city="Columbus" /> <Info name="Joe" city="Cincinnati" /> <Info name="Bob" city="Cincinnati" /> (only match this) </Info> </MainData> 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.