<br><br><div><span class="gmail_quote">On 2/3/06, <b class="gmail_sendername">Olly Betts</b> <<a href="mailto:olly@survex.com">olly@survex.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Tue, Jan 24, 2006 at 04:19:23PM -0500, jarrod roberson wrote:<br>> anyone have any suggestions on how to go about supporting regular expression<br>> searching with xapian?<br><br>Regular expressions and inverted-file keyword indexing don't really fit
<br>together well. If you're after "grep with an index", then you probably<br>want something like glimpse which is suppose to be faster than grep,<br>but slower than an inverted-file keyword approach. But you get
<br>approximate matching and regexp searching for that speed sacrifice.<br><br>If you just want to be able to search for terms matching a regexp<br>(the most common case is right-truncation - e.g. xap*) then you can<br>scan the database's termlist for terms which match the regexp and
<br>build a query from such terms combined with OP_OR.<br><br>Cheers,<br> Olly<br></blockquote></div><br>thanks, that is what I started working on, is matching terms in the term list to regex's and then building queries from that.
<br>I have to say, xapian is a really nice piece of work.<br>