1
0
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:
John Bampton 2020-04-21 05:53:36 +10:00 committed by GitHub
parent 73abfd8ad4
commit eae2b01feb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View File

@ -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
}
`

View File

@ -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
}
`

View File

@ -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
}