Re: [basex-talk] Webapp authentication flow – how do sessions work?

2023-08-02 Thread Jack Steyn
Never mind – it was CORS related, and I should have figured this out much earlier! Jack On Wed, Aug 2, 2023, 3:12 PM Jack Steyn wrote: > Hi all, > > I'm trying to develop a single-page application in Vue where users can log > in and out and have different levels of access. I've

[basex-talk] Webapp authentication flow – how do sessions work?

2023-08-01 Thread Jack Steyn
Hi all, I'm trying to develop a single-page application in Vue where users can log in and out and have different levels of access. I've more or less cribbed the relevant authentication and permissions code from the DBA webapp (which is not single-page). When I test the API in a program like

[basex-talk] basexhttp out of memory where basexgui suceeds

2024-02-06 Thread Jack Steyn
Hi, I have a database about 200 MB in size made up of approximately 150 000 documents of similar size and structure as children of the root node. When I run the following script in basexgui a significant amount of memory is consumed (over 1 GB if I'm reading the display correctly), but I do get

Re: [basex-talk] basexhttp out of memory where basexgui suceeds

2024-02-06 Thread Jack Steyn
, Jack On Wed, 7 Feb 2024, 4:03 pm Jack Steyn, wrote: > Hi, > > I have a database about 200 MB in size made up of approximately 150 000 > documents of similar size and structure as children of the root node. > > When I run the following script in basexgui a significan

Re: [basex-talk] basexhttp out of memory where basexgui suceeds

2024-02-07 Thread Jack Steyn
-contained example, something like… > > for $i in 1 to 50 > return update { > insert node into . > } > > …and some steps to reproduce the behavior? > > Thanks in advance, > Christian > > > On Wed, Feb 7, 2024 at 6:04 AM Jack Steyn wrote: > >> Hi, >

[basex-talk] string:levenshtein producing incorrect results?

2024-05-09 Thread Jack Steyn
Hi, According to my copy of BaseX 10.7, string:levenshtein('oil field', 'oilfield') and string:levenshtein('oil field', 'coalfield') both return the same value, 0.7778. My understanding is that the Levenshtein-Damerau distance between 'oil field' and 'oilfield' is 1 and between

Re: [basex-talk] string:levenshtein producing incorrect results?

2024-05-13 Thread Jack Steyn
; algorithms, the latest version should behave as expected [1, 2]. > > Best, > Christian > > [1] https://files.basex.org/releases/latest/ > [2] > https://github.com/BaseXdb/basex/commit/6889ac108c6b32d448d640d53ec098bbb8938f06 > > > On Thu, May 9, 2024 at 8:29 AM Jack St

Re: [basex-talk] Troubles with ft:mark

2024-03-05 Thread Jack Steyn
gt; let $search := function($nodes) { $nodes[text() contains text { $query > }] } > return (ft:mark($country[$search(.//name)]), ... > > From today’s perspective, we would certainly design ft:mark and ft:extract > in a way that the results are always correct. The consequences, howev

Re: [basex-talk] Troubles with ft:mark

2024-02-28 Thread Jack Steyn
Hi Christian, When I run your script, I do get 14 elements. When I run the following script I just get 12. true https://files.basex.org/xml/factbook.xml When you say you can't reproduce it, do you mean you get 14 results from running this script? Cheers, Jack On Thu, 29 Feb 2024,

[basex-talk] Troubles with ft:mark

2024-02-27 Thread Jack Steyn
Hi BaseXers, Consider the following query run on a database 'factbook' containing factbook.xml with full-text indexing: declare function local:search( $database as xs:string, $query as xs:string ) { let $country-search := ft:search($database, $query)/ancestor::country let

[basex-talk] Session problems with two BaseX installations

2024-05-21 Thread Jack Steyn
Hi, I have two separate BaseX installations on the same machine. Each has its own set of databases and users. I run their HTTP servers simultaneously, configured to their own sets of ports. When I authenticate to the DBA webapp of one, I am logged out of the DBA webapp of the other. What might

Re: [basex-talk] Session problems with two BaseX installations

2024-05-22 Thread Jack Steyn
just a guess). Does it work if you change the session key of your > second DBA instance [1]? > > Best, > Christian > > [1] > https://github.com/BaseXdb/basex/blob/df83d80238a27f3a168e3d5e88f984c819a37fb8/basex-api/src/main/webapp/dba/lib/config.xqm#L8-L9 > > > On Wed,