I am using the eXist implementation of Lucene. Is there a query that would allow me to find, for instance, all occurrences of <span>A</span> B in a document? I.e., all Bs that occur within 1 word of <span>A</span>, but aren’t wrapped in their own elements?
I am using the eXist implementation of Lucene. Is there a query that would
Share
This XPath should do the trick:
This doesn’t make use of eXist’s Lucene-based full text index, but you haven’t said if you’ve applied an index to the span element here. If there’s another aspect to the challenge, please let me know.