I'm starting to get into using the ML search:search
library pretty seriously.  Unfortunately, for the time
being I need to stay on 4.1.x but would like to make
use of near queries with a specified distance.

   In the search:search library on 4.2, this is easily
accomplished by adding this to the grammar definition:

<joiner strength="30" apply="near2" consume="2" 
element="cts:near-query">near/</joiner>

   However, this doesn't work in 4.1, apparently
because the "near2" function is not a part of the
search:search library.

   Since it winds up calling cts:near-query underneath,
is it possible to lashup some parameterized near query
grammar for the 4.1 version of search:search?  Can this
be done simply with a user-supplied function?  Has anyone
already done this?

---
Ron Hitchens {mailto:[email protected]}   Ronsoft Technologies
     +44 7879 358 212 (voice)          http://www.ronsoft.com
     +1 707 924 3878 (fax)              Bit Twiddling At Its Finest
"No amount of belief establishes any fact." -Unknown




_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to