I'm trying to query XML documents stored in Riak 2.0, which has integrated
Solr. My XML looks like this.
So a search in Riak might look something like this:
q=MainData.Info.Info@name:Bob
So let's say I want to match all documents where the name="Bob" and
city="Cincinnati", for same element ... If I do something like the
following:
q=MainData.Info.Info@name:Bob AND MainData.Info.Info@city:Cincinnati
I'll get a hit - even though that's not what I'm really looking for - I want
Bob and Cincinnati matching in the same "Info" element.
So if you take my example XML at the top of my post here, how would I write
the query to match a document where the MainData.Info.Info element has the
attributes name="Joe" and city="Cincinnati" ... or the following line:
I did try a fq, that looked like this, figuring I could filter down to the
element where name="Joe", then test to see if city="Cincinnati" - that it
didn't work:
q=MainData.Info.Info@city:Cincinnati&fq=MainData.Info.Info@name:Joe
I'm obviously a noob here, so I apologize for my noobness in advance.
Thanks!
--
View this message in context:
http://lucene.472066.n3.nabble.com/XML-with-duplicate-element-names-tp4119679.html
Sent from the Solr - User mailing list archive at Nabble.com.