Update core module "full-text"

Bug #1189790 reported by Chris Hillery
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zorba
Fix Committed
High
Paul J. Lucas

Bug Description

Update core module "full-text". Refer to the Zorba 3.0 Module Update Checklist at http://my.zorba-xquery.com/dokuwiki/doku.php?id=module_update .

This minimally means renaming the module to the "http://zorba.io/modules/full-text" namespace, ensuring the documentation is accurate and up to standards, and moving the module contents out of unnecessary com/zorba-xquery/ subdirectories. The path for the module is currently modules/com/zorba-xquery/www/modules/full-text.xq .

Additional tasks for this module:
* Convert options arguments to JSON objects

Related branches

Chris Hillery (ceejatec)
Changed in zorba:
assignee: nobody → Paul J. Lucas (paul-lucas)
importance: Undecided → High
milestone: none → 3.0
status: New → Confirmed
description: updated
tags: added: module-cleanup
summary: - This is my summary
+ Update core module "full-text"
Changed in zorba:
status: Confirmed → In Progress
Revision history for this message
Paul J. Lucas (paul-lucas) wrote :

The full-text module doesn't include any function that takes any kind of options argument. It does, however, RETURN options (or properties) that are XML elements. What should such functions return?

Revision history for this message
Chris Hillery (ceejatec) wrote :

I believe it should return a JSON object matching a JSON schema (which will need to be designed).

Revision history for this message
Paul J. Lucas (paul-lucas) wrote :

And one specifies a JSON object by .... ?

    declare function ft:tokenize-node( $node as node() ) as XXX external;

What is the XXX?

Revision history for this message
Chris Hillery (ceejatec) wrote :

as object()

Unfortunately the decision was made to not (yet?) support JSON schema-specified object types, so there's nothing like object(ft:options). There's just object().

(Aside: if you're developing a pure JSONiq module, you can and should drop the parens and say "as object". But I think that's not appropriate for the full-text module.)

Changed in zorba:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.