ft:search and map-function
Tuesday, 5 January 2016 · 2 messages
K
kleist5 Jan 2016 15:14 #
Hi all,
in the documentation for the ft:search-function is the following example:
ft:search("db", ("A", "B"), map {
"mode": "all words",
"distance": {
"max": "5",
"unit": "words"
}
})It's throwing this error for line 3: "Invalid value, simple expression expected." I'm using BaseX Version 8.3.1. Did the notation change or what's going wrong?
Best regards,
Günter
CG
Christian Grün5 Jan 2016 15:49 #
Quoted text · kleist · 9 lines
> in the documentation for the ft:search-function is the following example: > > ft:search("db", ("A", "B"), map { > "mode": "all words", > "distance": { > "max": "5", > "unit": "words" > } > })
In the example, the old map syntax was used. This example works:
ft:search("db", ("A", "B"), map {
"mode": "all words",
"distance": map {
"max": "5",
"unit": "words"
}
})Quoted text · kleist · 4 lines
> It's throwing this error for line 3: "Invalid value, simple expression expected." I'm using BaseX Version 8.3.1. Did the notation change or what's going wrong? > > Best regards, > Günter
Written for BaseX 8.3. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery