Comments (2)
Hi,
take look at https://www.arangodb.com/docs/stable/analyzers.html#text
and
https://www.arangodb.com/docs/stable/analyzers.html#ngram
the EdgeNgram property is for text analyzers only (yeah i know it's quite confusing)
for ngram align the min, max, preserve props
await Arango.Analyzer.CreateAsync("test", new ArangoAnalyzer
{
Name = "text_fr_ngram",
Features = new List<string> { "frequency", "norm", "position" },
Type = ArangoAnalyzerType.Ngram,
Properties = new ArangoAnalyzerProperties
{
Min = 3,
Max = 26,
PreserveOriginal = true,
Locale = "fr.utf-8", // NOPE - not for ngram
Case = ArangoAnalyzerCase.Lower, // NOPE
Accent = false, // NOPE
Stopwords = new List<string>() { "le", "la", "les", "de", "des", "du" }, // NOPE
Stemming = false // NOPE
}
});
However since you want to use stopwords, then you might want to switch to text analyzer
As you did on arangosh
await Arango.Analyzer.CreateAsync("test", new ArangoAnalyzer
{
Name = "text_fr_ngram",
Features = new List<string> { "frequency", "norm", "position" },
Type = ArangoAnalyzerType.Text,
Properties = new ArangoAnalyzerProperties
{
EdgeNgram = new ArangoEdgeNgram
{
Min = 3,
Max = 26,
PreserveOriginal = true,
},
Locale = "fr.utf-8",
Case = ArangoAnalyzerCase.Lower,
Accent = false,
Stopwords = new List<string>() { "le", "la", "les", "de", "des", "du" },
Stemming = false
}
});
It's partly my fault for merging all options into a single props object,
but it saves so many permutations.
its documented on the props however
from dotnet-arangodb.
Thank you, changed it and everything worked like a charm.
from dotnet-arangodb.
Related Issues (20)
- Key parameter missing when getting Vertex of Graph
- .Query<> seems to ignore Core.Arango.Linq.Attributes.CollectionProperty Collection name HOT 3
- Next NuGet Release HOT 1
- Support for Arango Load Balancing HOT 3
- Null Pointer when updating a DB Entry with LINQ
- LINQ Query Document Delete HOT 1
- Support for netstandard2.0 HOT 4
- Question about user friendliness of GetManyAsync HOT 4
- Replacing ArangoViews HOT 3
- Options not used in ExecuteStreamAsync HOT 1
- firstResult being used iso new results
- Memory usage ExecuteStreamAsync
- Non-blocking HTTP Requests HOT 4
- Usage of returnNew parameter in Document.CreateAsync HOT 2
- 3.10 Lacks ComputedValues HOT 5
- ExecuteAsync FormattableString causing an unexpected answer HOT 2
- Document creation with db created index HOT 7
- Arango Search view, setting IncludeAllFields HOT 1
- CreateAsync always creates collection with Document type HOT 2
- ArangoIndex Json Deserialization with Inverted Index and Persistant Index HOT 1
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 dotnet-arangodb.