[basex-talk] BaseX and MySQL: Driver can't be initialized

2015-08-31 Thread Ulrike Schaper - SideStep Business Solutions GmbH
Hi everybody, I know, that this issue has been discussed already, but I still have problems concerning BaseX and MySQL: Of course I read the documentation: I downloaded the Connector/J from the MySQL website and put the .jar file (mysql-connector-java-5.1.36-bin.jar) into the basex/lib

Re: [basex-talk] Finding document based on filename

2015-08-31 Thread Martín Ferrari
Hi Mansi, I have a similar situation. I don't think there's a fast way to get documents by only knowing a part of their names. It seems you need to know the exact name. In my case, we might be able to group documents by a common id, so we might create subfolders inside the DB and store/get

Re: [basex-talk] BaseX and MySQL: Driver can't be initialized

2015-08-31 Thread Alexander Holupirek
Hi Ulrike, it seems the Connector/J .jar is not loaded. What OS do you use? How did you trigger the restart of BaseXGUI after putting mysql-connector-java-5.1.36-bin.jar into the lib folder? Here is a workflow you can try (using the .zip BaseX distribution and the ./bin/basex startup files):

Re: [basex-talk] Finding document based on filename

2015-08-31 Thread Eliot Kimber
How about (ignore the bad casing--that's Outlook's autocorrect and I'm too lazy to go back and correct every line): Let $docs := collection('/mydir')/* For $doc in $docs Return if (matches(document-uri(root($doc)), '^.+somestring$')) Then $doc Else () Cheers, Eliot

Re: [basex-talk] Finding document based on filename

2015-08-31 Thread Dirk Kirsten
Hello Martin, I would like to add that Christian just implemented selective indexes, so if you want to index in a more granular fashion this should now be possible. See https://github.com/BaseXdb/basex/issues/59 for more details and of course this is not stable software yet, so use with care. But

[basex-talk] Selective indexes

2015-08-31 Thread Martín Ferrari
Hi Dirk,I didn't want to hijack the other thread, so I started a new one :) I've read https://github.com/BaseXdb/basex/issues/59 and I think it's great!. I have a slightly different request though that I was holding back because I didn't want to sound abusive, but now that you brought

Re: [basex-talk] Finding document based on filename

2015-08-31 Thread Martín Ferrari
I forgot one thing, I got much better performance by just calling replace rather than delete and insert, but this is a db with more than one million records. If performance is not important, I believe either way will do. Martín. From: ferrari_mar...@hotmail.com To: mansi.sh...@gmail.com;

Re: [basex-talk] Selective indexes

2015-08-31 Thread Martín Ferrari
Haha, does the selective index feature just do what I spent 30 minutes writing about?Sorry, I think my reading abilities were impaired, or I was too impatient to read until the end of the issue. I'll give it a try when I have some moments, it looks pretty cool! Thanks, Martín. From: