Your code needs to take care of both the actual update and the index update. As indicated in another thread on this list this or last week, the integration of triggers (with pre/post commit hooks) may allow you to separate these two tasks in a future version of BaseX.
France Baril france.baril@architextus.com schrieb am Sa., 21. Dez. 2019, 11:53:
I'm good with writing the code, but how do I make it run automatically on content update of the original source DB? What I am missing is where/how to connect that code so it runs on its own.
On Sat, Dec 21, 2019 at 11:35 AM Christian Grün christian.gruen@gmail.com wrote:
- I only have the create .xq, If I need to add code to update, I don't
know where/how to connect it, which brings me back to my question, how do I connect my query so it will update my indices. That's where the missing link is.
It’s not sufficient to connect your query, as it (as far as I can see) recreates the full index. Instead you’ll need to write additional code that updates the relevant parts of your custom index structure.
Hope this helps Christian
-- France Baril Architecte documentaire / Documentation architect france.baril@architextus.com