If, when you index your document, you concatenate the contents of A, B and C into, say, a field called X, you can of course search for X:foo as well as C:foo. However, to the best of my knowledge, Lucene doesn't provide the capability to nest fields (and, to tell the truth, I'm not sure what that would buy you).
Regards, Terry ----- Original Message ----- From: "Harry Foxwell" <[EMAIL PROTECTED]> To: "Lucene Users List" <[EMAIL PROTECTED]> Sent: Saturday, January 04, 2003 10:26 AM Subject: xml element query > in an xml document, say > > <A> > <B> > <C>foo</C> > </B> > </A> > > Lucene syntax allows me to search for term 'C:foo' > > Is there a way to specify query for 'foo' in one of > the parents of C? Something like > B:foo, B:C:foo, B/C:foo, or something like that idea > (but of course these don't work). > > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
