[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qexo-general] Does qexo work with Berkley-Db XML
From: |
Per Bothner |
Subject: |
Re: [Qexo-general] Does qexo work with Berkley-Db XML |
Date: |
Sat, 17 May 2003 17:53:00 -0700 |
User-agent: |
Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.4b) Gecko/20030507 |
John Merrells wrote:
Qexo on top of dbxml would be quite groovy though. It has a Java API
and can execute an XPath against indexes without doing any filtering,
returning a candidate document set for Qexo to do the filtering over.
Well, it should be doable to optimize something like:
db-get-document($context)/PATH
to:
db-query-with-path($context, "PATH")
A complication is figuring out for which PATH expressions that
we can pass to db-xml. If there are variables or expressions
not supported by db-xml, then we can often interpolate the
string value of an expression.
A minor complication is that the result of parsing a path expression
is a relatively complex expression that evaluates it using Kawa
primitive forms and function. Testing these trees for suitability
and then converting them back to strings is tedious. Cleaning up
the syntax tree representation may simplify the task.
--
--Per Bothner
address@hidden http://per.bothner.com/