Hi Florian,
i'm currently evaluating BaseX running on a headless Linux Server. It took me quite a while to get it running (the docs seem to be focused on Windows environments)... Is there a way to contribute to the documentation?
Thanks for the offer. You are invited to register for a docs.basex.org Wiki acount. If you prefer, you can give us some specific hints on how to revise existing texts in the documentation.
First question: After importing some of documents nicely organized in collections, i've found that the REST client will display all documents on the same "level" instead of showing just the first level of collections. This isn't nice if the db contains a great number of documents....
I agree. The REST interface was included many years ago, but in the meantime there are various ways – e.g. via db:dir() – to restrict the database view to specific directories. I have added an issue for that [1]. As it will be a breaking change, we’ll probably tackle it with BaseX 10 or later.
Second question: What's the "best practice" for bulk imports while retaining the directory structure of the imported files using collections?
If you create a new database, you can use the CREATE command or db:create and specify a directory as initial input. The existing file hierarchy will be mirrored in the resulting database.
Hope this helps, Christian