exist-db

Improve performance of query with range indexes in eXist-db

廉价感情. 提交于 2019-12-10 22:19:09
问题 Reading the docs http://exist-db.org/exist/apps/doc/indexing.xml I'm finding difficult to understand how and if I can improve the performances of a 'read' query (with 2 parameters: a string and an integer). Do eXist-db have a default structural index? Can I improve a 2 params query with a 'range index'? More details about my XML db (note there are 2 different dbs simply merged on the same root): <?xml version="1.0" encoding="UTF-8" standalone="no"?> <db> <docs> <doc> <header> <year>2001</year

XMLHttpRequest cannot load http://localhost:8080/exist/rest/db/… Origin null is not allowed by Access-Control-Allow-Origin

自作多情 提交于 2019-12-10 13:18:25
问题 I am trying to retrieve an XML response using ajax calls to the eXist DB REST API(1). Google Chrome provides me the following console error: XMLHttpRequest cannot load XMLHttpRequest cannot load http://localhost:8080/exist/rest/db/movies?_query=%2Fmovies. Origin null is not allowed by Access-Control-Allow-Origin Origin null is not allowed by Access-Control-Allow-Origin While Firebug in Firefox provides the following console error: GET http://localhost:8080/exist/rest/db/movies?_query=

Growing eXist database

╄→гoц情女王★ 提交于 2019-12-08 11:01:44
问题 I'm using Orbeon Forms, and eXist to store filled forms there. And I have next problem, eXist is growing more than 500 MB per day. If I will made reserve copy of whole database, then will delete all DB files, and restore reserved copy, then DB is only 1 GB large, but after few days it becomes 4 GB, and grows, grows and grows... First I was using embeded eXist 1.2.6, and I thought that it's unstable version, so I moved all data to external eXist 1.4.1, but still it continue to grow in new

eXist-db Maven Dependencies

前提是你 提交于 2019-12-08 04:13:17
问题 I am looking for an artifact repository (Maven) for eXist, so that I can make queries against an eXist database. I found http://mvnrepository.com/artifact/exist/exist and http://mvnrepository.com/artifact/exist/exist-xmldb but they do not work. The only working artifacts I found are: <dependency> <groupId>org.exist-db</groupId> <artifactId>existdb-core</artifactId> <version>2.1</version> </dependency> <repository> <id>exist</id> <url>https://raw.github.com/eXist-db/mvn-repo/master/</url> <

eXist-db Maven Dependencies

泪湿孤枕 提交于 2019-12-06 14:45:48
I am looking for an artifact repository (Maven) for eXist, so that I can make queries against an eXist database. I found http://mvnrepository.com/artifact/exist/exist and http://mvnrepository.com/artifact/exist/exist-xmldb but they do not work. The only working artifacts I found are: <dependency> <groupId>org.exist-db</groupId> <artifactId>existdb-core</artifactId> <version>2.1</version> </dependency> <repository> <id>exist</id> <url>https://raw.github.com/eXist-db/mvn-repo/master/</url> </repository> on this page https://github.com/eXist-db/mvn-repo but it does not seem so official and is

eXist-db include html template in .xq data

戏子无情 提交于 2019-12-06 03:17:30
i have an index.html data where I included the template through: <div xmlns="http://www.w3.org/1999/xhtml" data-template="templates:surround" data-template-with="templates/page.html" data-template-at="content"> At the index html site I included a keyword search form, and the idea is when I click on the search button it should call an .xq file to request the search results: <form method="GET" action="ksearch.xq"> When I submit the form, the ksearch.xq page opens, but even though I include the same template div as above: <div xmlns="http://www.w3.org/1999/xhtml" data-template="templates:surround

element() vs. node() in XQuery

*爱你&永不变心* 提交于 2019-12-04 13:04:23
问题 Can someone tell me the exact difference between node() and element() types in XQuery? The documentation states that element() is an element node, while node() is any node, so if I understand it correctly element() is a subset of node() . The thing is I have an XQuery function like this: declare function local:myFunction($arg1 as element()) as element() { let $value := data($arg1/subelement) etc... }; Now I want to call the function with a parameter which is obtained by another function, say

element() vs. node() in XQuery

怎甘沉沦 提交于 2019-12-03 08:58:52
Can someone tell me the exact difference between node() and element() types in XQuery? The documentation states that element() is an element node, while node() is any node, so if I understand it correctly element() is a subset of node() . The thing is I have an XQuery function like this: declare function local:myFunction($arg1 as element()) as element() { let $value := data($arg1/subelement) etc... }; Now I want to call the function with a parameter which is obtained by another function, say functionX (which I have no control over): let $parameter := someNamespace:functionX() return local

Can XQuery regex match a null character?

北城余情 提交于 2019-12-02 09:29:58
问题 I'd like to remove all NULL characters from the string. I know that the right regex match should be \x00 and I've tried the following XQuery: replace($message, '\x00', '') It results in the error: exerr:ERROR Conversion from XPath2 to Java regular expression syntax failed: Error at character 1 in regular expression \x00: invalid escape sequence Is there any quick solution or workaround for this issue? I use eXist-db 2.2. 回答1: The short version: you can't, at least not within the boundaries of

eXist - loading XSLT collection() - Exception thrown by URIResolver

情到浓时终转凉″ 提交于 2019-12-02 08:24:04
Environment: eXist-db 4.2.1 , XQuery 3.1, XSLT 2.0 In eXist-db I am loading an XSLT file which includes a reference to a collection in eXist (in order to perform a search on documents found there, using a key). This reference seems to throw an error from Saxon. Exception while transforming node: Exception thrown by URIResolver XML docs are located at /db/apps/deheresi/data/ XSLT docs are located at /db/apps/deheresi/data/styles In the transform function, I am passing a parameter from XQuery to the XSLT file for the absolute path to the data folder: <param name="paramDatauri" value="xmldb:exist