github.com/dgraph-io/dgraph@v1.2.8/graphql/schema/testdata/schemagen/input/searchables.graphql (about) 1 type Post { 2 postID: ID! 3 title: String! @search(by: [term]) 4 titleByEverything: String! @search(by: [term, fulltext, trigram, hash]) 5 text: String @search(by: [fulltext]) 6 7 tags: [String] @search(by: [trigram]) 8 tagsHash: [String] @search(by: [hash]) 9 tagsExact: [String] @search(by: [exact]) 10 11 publishByYear: DateTime @search(by: [year]) 12 publishByMonth: DateTime @search(by: [month]) 13 publishByDay: DateTime @search(by: [day]) 14 publishByHour: DateTime @search(by: [hour]) 15 16 numLikes: Int @search 17 score: Float @search 18 isPublished: Boolean @search 19 20 postType: PostType @search 21 postTypeTrigram: PostType @search(by: [trigram]) 22 postTypeRegexp: PostType @search(by: [regexp]) 23 postTypeExact: PostType @search(by: [exact]) 24 postTypeHash: PostType @search(by: [hash]) 25 postTypeRegexpExact: PostType @search(by: [exact, regexp]) 26 postTypeHashRegexp: PostType @search(by: [hash, regexp]) 27 postTypeNone: PostType @search(by: []) 28 } 29 30 enum PostType { 31 Fact 32 Question 33 Opinion 34 }