Comments (1)
Could create a UDF using a JS library like one of the following (assuming they don't use Promises or similar):
But if you want to move the documents to different collections then AQL can be a bit of a pain and it might be easier to use Node.js + arangojs to run a one-off language detection.
We also thought about using AQL Analyzers (one per language) and only let the comments in one language through, but AQL Analyzers cannot be used in combination with UDFs and they only have access to the value of the field they access, not the entire document (i.e. cannot base the decision of whether to include a comment or not on a separate language field). The only workaround that came to mind was to have a single comment field with an array, where one element is the language and the other the comment text. However, we would like to show that Views can link multiple collections, and this is a good opportunit.
from arangobnb.
Related Issues (20)
- AQL: Nearby Search HOT 1
- AQL: Natural Language Description Search HOT 1
- Frontend: Search Bar HOT 1
- Frontend: Filter Component HOT 1
- AQL: Filter Search HOT 5
- Frontend: Results Component HOT 1
- AQL: Dataset Modeling HOT 7
- Backend: KOA setup
- Backend: Foxx Microservice
- Project Structure HOT 3
- Frontend: Map View HOT 2
- Frontend: AQL Query Display
- Documentation: Clarify which version of ArangoDB to use HOT 6
- Analyzer geo not found after importing dump HOT 3
- GeoCode Search is broken
- Frontend: Date functionality HOT 1
- Frontend: Guests Functionality
- Frontend: Theme & Background Hero Image HOT 3
- Backend: View Creation HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arangobnb.