From: Ron V. d. B. <ron...@ka...> - 2009-07-31 09:05:16
|
Hi, Wolfgang Meier schreef: > I just added support for regular expressions to the XML query syntax. > You can now use a <regex> element instead of a <term>. Example: > > <query> > <phrase><term>wunderbare</term><regex>heit.*keit</regex></phrase> > </query> > > W(underbar|onderful) indeed! Great! > I will answer your other questions once I found time to run a few > tests myself. Basically, the mapping from the XML format to Lucene's > internal query tree is straightforward in most cases. See class > XMLToQuery: > > http://exist.svn.sourceforge.net/viewvc/exist/trunk/eXist/extensions/indexes/lucene/src/org/exist/indexing/lucene/XMLToQuery.java?revision=9582&view=markup > > Thanks for the hint. Apologies for the interrogative overload: no pressure intended. Kind regards, Ron |