I've tried to create a custom analyser to have French encoding, not stem,
keep the case
But I didn't succed to Search on it....
I did'nt get what I've missed
Any help would be very apreciated
*Document Collection TEST : *
[
{
"_key": "2",
"_id": "TEST/2",
"_rev": "_ccqwnQO---",
"FIELD1": "LE SAINT",
"FIELD2": "test"
}
]
*Analyser creation : **French encoding, not to stem, keep the case*
var analyzers = require("@arangodb/analyzers");
analyzers.save("text_fr_exact", "text", {locale: "fr.utf-8", case:
"none", accent: true, stemming: false, stopwords: []})
*Text Search*
vueTest = db._createView("vueTest", "arangosearch", {});
vueTest.properties({links: {'TEST':{includeAllFields:
true,fields:{FIELD1:{analyzers: ["text_fr_exact"]}, FIELD2:{analyzers:
["text_fr_exact"]}}}}});
*Query*
FOR t IN vueTest
SEARCH ANALYZER( PHRASE(t.NOMVISITEUR, "LE SAINT"), 'text_fr_exact')
RETURN t
The query didn’t return anything…
--
You received this message because you are subscribed to the Google Groups
"ArangoDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/arangodb/960d4c69-7aae-49c2-bdc0-be3d245ee7d1n%40googlegroups.com.