jcbms
(jcbms)
1
I have read a simple code of dgraph source
var schemaIndexVal3Uid = `
person:uid @index .
`
var schemaIndexVal3Default = `
value:default @index .
`
var schemaIndexVal3Password = `
pass:password @index .
`
as you see the @index has no tokenizer , so what’s the default index type ? hash or term?
MichelDiz
(Michel Diz)
2
I believe there’s no such thing. You must set it explicitly.
jcbms
(jcbms)
3
do you have a hash index demo ?
is my schema right?
point: uid @count @reverse .
ipvalue: string @index(hash) .
hostname: string @index(hash) .
that’s right you should check tokenizer if it can do all queried you wanted
MichelDiz
(Michel Diz)
5
no demos (exclusive for this), but your schema is right. And Hash is a good choice for performance and unique data.
@MichelDiz do you know how to insert a list string type values into dgraph? any demos?
i found samples here, and i try to test it , it works. Modifying predicate lists
system
(system)
Closed
8
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.