From 700a01a0d4483ae18e2c7f410aed7231a78c76f5 Mon Sep 17 00:00:00 2001 From: Bachir Soussi Chiadmi Date: Mon, 14 Oct 2019 16:53:05 +0200 Subject: [PATCH] updated data and added FullTextIndex basex db --- Docker/basex/gdp-entrypoint.sh | 8 ++++++++ README.md | 4 ++++ data | 2 +- 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/Docker/basex/gdp-entrypoint.sh b/Docker/basex/gdp-entrypoint.sh index 3e84001..37412a6 100755 --- a/Docker/basex/gdp-entrypoint.sh +++ b/Docker/basex/gdp-entrypoint.sh @@ -4,6 +4,14 @@ echo "Creating GDP BaseX db" basex "db:create('gdp','/srv/basex/src/gdp.tei.xml', (),map {'ftindex': true(),'stemming': true(),'casesens': true(),'diacritics': true(),'language': 'fr','updindex': true(),'autooptimize': true(),'maxlen': 96,'maxcats': 100,'splitsize': 0,'chop': false(),'textindex': true(),'attrindex': true(),'tokenindex': true(), 'xinclude': true()})" +# , 'serializer': 'indent=no' + +echo "Creating FullText Index tmp file" +basex "xslt:transform(fn:doc('/srv/basex/src/gdp.tei.xml'), fn:doc('/srv/basex/src/xslt/generateFullTextIndex.xsl'))" > /tmp/gdpFtIndex.xml + +echo "Creating FullText Index DB" +basex "db:create('gdpFtIndex', '/tmp/gdpFtIndex.xml', (),map {'ftindex': true(),'stemming': true(),'casesens': true(),'diacritics': true(),'language': 'fr','updindex': true(),'autooptimize': true(),'maxlen': 96,'maxcats': 100,'splitsize': 0,'chop': false(),'textindex': true(),'attrindex': true(),'tokenindex': true(), 'xinclude': true()})" +# , 'serializer': 'indent=no' # as we override the parent container CMD, we have to launch basexhttp here echo "Launching basexhttp" diff --git a/README.md b/README.md index 6fcb2bd..2c1b8b0 100644 --- a/README.md +++ b/README.md @@ -59,6 +59,10 @@ restart the containers docker-compose restart basex docker-compose restart client ``` +or rebuild if data was updated +``` +docker-compose uo -d --build +``` ## Doc diff --git a/data b/data index b0eda0b..be38d67 160000 --- a/data +++ b/data @@ -1 +1 @@ -Subproject commit b0eda0bb7e697351df83f9759bce1047bd5385a6 +Subproject commit be38d679b6639a882c2cc3d55929a1e20927cc7f