mirror of
https://github.com/MontFerret/ferret.git
synced 2024-12-04 10:35:08 +02:00
Fix the embedded mode example. (#474)
Remove keyword desc. Based on Arango keywords. https://www.arangodb.com/docs/3.6/aql/fundamentals-syntax.html#keywords Also fix static-page.fql example
This commit is contained in:
parent
73abfd8ad4
commit
eae2b01feb
@ -258,11 +258,11 @@ func getTopTenTrendingTopics() ([]*Topic, error) {
|
||||
LIMIT 10
|
||||
LET url = ELEMENT(el, "a")
|
||||
LET name = ELEMENT(el, ".f3")
|
||||
LET desc = ELEMENT(el, ".f5")
|
||||
LET description = ELEMENT(el, ".f5")
|
||||
|
||||
RETURN {
|
||||
name: TRIM(name.innerText),
|
||||
description: TRIM(desc.innerText),
|
||||
description: TRIM(description.innerText),
|
||||
url: "https://github.com" + url.attributes.href
|
||||
}
|
||||
`
|
||||
|
@ -39,11 +39,11 @@ func getTopTenTrendingTopics() ([]*Topic, error) {
|
||||
LIMIT 10
|
||||
LET url = ELEMENT(el, "a")
|
||||
LET name = ELEMENT(el, ".f3")
|
||||
LET desc = ELEMENT(el, ".f5")
|
||||
LET description = ELEMENT(el, ".f5")
|
||||
|
||||
RETURN {
|
||||
name: TRIM(name.innerText),
|
||||
description: TRIM(desc.innerText),
|
||||
description: TRIM(description.innerText),
|
||||
url: "https://github.com" + url.attributes.href
|
||||
}
|
||||
`
|
||||
|
@ -4,10 +4,10 @@ FOR el IN ELEMENTS(doc, ".py-4.border-bottom")
|
||||
LIMIT 10
|
||||
LET url = ELEMENT(el, "a")
|
||||
LET name = ELEMENT(el, ".f3")
|
||||
LET desc = ELEMENT(el, ".f5")
|
||||
LET description = ELEMENT(el, ".f5")
|
||||
|
||||
RETURN {
|
||||
name: TRIM(name.innerText),
|
||||
description: TRIM(desc.innerText),
|
||||
description: TRIM(description.innerText),
|
||||
url: "https://github.com" + url.attributes.href
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user