Hi Mansi,
From what I can see,
for each pqr value, you could use db:attribute-range to retrieve all the file
names, group by/count to obtain statistics.
You could also create a new collection from an extraction of only the data you
need, changing @name into element and use full text fuzzy
Hi Mansi,
Once, above query works and doesn't go Out Of Memory, I also need
corresponding file names too:
Sorry, I skipped this one. Here is one way to do it:
declare option output:item-separator #xa;;
for $db in db:open('')
let $path := db:path($db)
for $name in $db//E/@name
return
do you need more flexibility?
To partially answer my own question, it might be interesting for you
to hear that you have various ways of specifying queries via REST [1]:
* You can store your query server-side and use the ?run=... argument
to evaluate this query file
* You can send a POST
Hi Bridger,
I would be interested to know if you have set HTTPLOCAL to true or
false? In the latter case, the database server will be started as well
(which allows you to use the client bindings, basexclient, etc.). In
that case, you may also need to change the EVENTPORT [2]. As you see
on the
Hi Andy,
Do you mean they invoke internal BaseX functions?
Yes, exactly. One example are range checks. The following query…
x123/x[text() 1 and text() 400]
…will result in the following optimized query string:
element x { (123) }[1.0 text() 400.0]
The query plan looks as follows:
Hi,
Running the attached program produces the next evaluation.
Evaluating:
- elementSeq: A ref=var1BX1//B/A
- content0: X1/
- content2: X1/
- elementSeq: A ref=var1BX2//B/A
- content0: X2/
- content2: X1/
I can't explain the value of the last - content2: -trace.
I expect it to
Hi Rob,
thanks for the example code. Could you possibly reduce it to a shorter
snippet that still demonstrates the surprising behavior?
Best,
Christian
On Fri, Nov 7, 2014 at 6:00 PM, Rob Stapper r.stap...@lijbrandt.nl wrote:
Hi,
Running the attached program produces the next evaluation.
This email chain, is extremely helpful. Thanks a ton guys. Certainly one of
the most helpful folks here :)
I have to try a lot of these suggestions but currently I am being pulled
into something else, so I have to pause for the time being.
Will get back to this email thread, after trying a few
Christian,
I am running out of ideas in debugging this. When I directly execute this
query within XQUERY file, its working perfectly. Just when I pass it thru
command line, its breaking.
Infact the actual .xq file also doesn't matter, as you pointed out, parsing
from command line is broken. I
9 matches
Mail list logo