Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/YadaYuki/omochi
/ functions
Functions
762 in github.com/YadaYuki/omochi
⨍
Functions
762
◇
Types & classes
107
↓ 2 callers
Method
FindTermCompressedById
(ctx context.Context, id uuid.UUID)
pkg/usecase/term/term.go:13
↓ 2 callers
Method
Float64s
Float64s returns list of float64s from group-by. It is only allowed when executing a group-by query with one field.
pkg/ent/document_query.go:568
↓ 2 callers
Method
Float64s
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
pkg/ent/document_query.go:820
↓ 2 callers
Method
Float64s
Float64s returns list of float64s from group-by. It is only allowed when executing a group-by query with one field.
pkg/ent/term_query.go:569
↓ 2 callers
Method
Float64s
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
pkg/ent/term_query.go:821
↓ 2 callers
Function
HasOp
HasOp is a condition testing mutation operation.
pkg/ent/hook/hook.go:79
↓ 2 callers
Function
If
If executes the given hook under condition. hook.If(ComputeAverage, And(HasFields(...), HasAddedFields(...)))
pkg/ent/hook/hook.go:134
↓ 2 callers
Method
Ints
Ints returns list of ints from group-by. It is only allowed when executing a group-by query with one field.
pkg/ent/document_query.go:519
↓ 2 callers
Method
Ints
Ints returns list of ints from a selector. It is only allowed when selecting one field.
pkg/ent/document_query.go:773
↓ 2 callers
Method
Ints
Ints returns list of ints from group-by. It is only allowed when executing a group-by query with one field.
pkg/ent/term_query.go:520
↓ 2 callers
Method
Ints
Ints returns list of ints from a selector. It is only allowed when selecting one field.
pkg/ent/term_query.go:774
↓ 2 callers
Function
LoadDocumentsFromTsv
(pathTo string)
cmd/seeds/data/data.go:15
↓ 2 callers
Method
Mixin
Mixin of the Term.
pkg/ent/schema/term.go:25
↓ 2 callers
Function
NewClient
NewClient creates a new client configured with the given options.
pkg/ent/client.go:32
↓ 2 callers
Function
NewDocumentController
(searchUsecase search.SearchUseCase)
pkg/interface/api/document/document.go:19
↓ 2 callers
Function
NewJaKagomeTokenizer
()
pkg/infrastructure/tokenizer/ja/ja_kagome_tokenizer.go:17
↓ 2 callers
Function
NewTermCompressedCreate
(word string, invertIndex *InvertIndexCompressed)
pkg/domain/entities/term.go:39
↓ 2 callers
Method
Save
Save executes the query and returns the number of nodes affected by the update operation.
pkg/ent/document_update.go:55
↓ 2 callers
Method
Save
Save executes the query and returns the updated Document entity.
pkg/ent/document_update.go:206
↓ 2 callers
Method
Save
Save creates the Term entities in the database.
pkg/ent/term_create.go:511
↓ 2 callers
Method
Save
Save executes the query and returns the number of nodes affected by the update operation.
pkg/ent/term_update.go:55
↓ 2 callers
Method
Save
Save executes the query and returns the updated Term entity.
pkg/ent/term_update.go:222
↓ 2 callers
Method
Save
Save creates the Document entities in the database.
pkg/ent/document_create.go:466
↓ 2 callers
Method
SetContent
SetContent sets the "content" field.
pkg/ent/mutation.go:220
↓ 2 callers
Method
SetCreatedAt
SetCreatedAt sets the "created_at" field.
pkg/ent/term_create.go:28
↓ 2 callers
Method
SetCreatedAt
SetCreatedAt sets the "created_at" field.
pkg/ent/document_create.go:26
↓ 2 callers
Method
SetID
SetID sets the "id" field.
pkg/ent/term_create.go:68
↓ 2 callers
Method
SetTokenizedContent
SetTokenizedContent sets the "tokenized_content" field.
pkg/ent/mutation.go:256
↓ 2 callers
Method
SetUpdatedAt
SetUpdatedAt sets the "updated_at" field.
pkg/ent/term_create.go:42
↓ 2 callers
Method
SetUpdatedAt
SetUpdatedAt sets the "updated_at" field.
pkg/ent/document_create.go:40
↓ 2 callers
Function
SplitSlice
(slice []T, size int)
pkg/common/slices/slices.go:16
↓ 2 callers
Method
Strings
Strings returns list of strings from group-by. It is only allowed when executing a group-by query with one field.
pkg/ent/document_query.go:470
↓ 2 callers
Method
Strings
Strings returns list of strings from a selector. It is only allowed when selecting one field.
pkg/ent/document_query.go:726
↓ 2 callers
Method
Strings
Strings returns list of strings from group-by. It is only allowed when executing a group-by query with one field.
pkg/ent/term_query.go:471
↓ 2 callers
Method
Strings
Strings returns list of strings from a selector. It is only allowed when selecting one field.
pkg/ent/term_query.go:727
↓ 2 callers
Method
Tokenize
(ctx context.Context, content string)
pkg/domain/service/tokenizer.go:11
↓ 2 callers
Method
Tx
Tx returns the transaction wrapper (txDriver) to avoid Commit or Rollback calls from the internal builders. Should be called only by the internal buil
pkg/ent/tx.go:187
↓ 2 callers
Method
UpdateOne
UpdateOne returns an update builder for the given entity.
pkg/ent/client.go:257
↓ 2 callers
Method
Where
Where appends a list predicates to the TermMutation builder.
pkg/ent/mutation.go:771
↓ 2 callers
Function
Word
Word applies equality check predicate on the "word" field. It's identical to WordEQ.
pkg/ent/term/where.go:111
↓ 2 callers
Method
calculateDocumentScores
(ctx context.Context, query string, docs []*entities.Document)
pkg/infrastructure/documentranker/tfidfranker/tf_idf_document_ranker.go:40
↓ 2 callers
Method
calculateInverseDocumentFrequency
(query string, docs []*entities.Document)
pkg/infrastructure/documentranker/tfidfranker/tf_idf_document_ranker.go:60
↓ 2 callers
Method
calculateTermFrequency
(query string, doc entities.Document)
pkg/infrastructure/documentranker/tfidfranker/tf_idf_document_ranker.go:50
↓ 2 callers
Method
check
check runs all checks and user-defined validators on the builder.
pkg/ent/term_update.go:124
↓ 2 callers
Method
check
check runs all checks and user-defined validators on the builder.
pkg/ent/term_update.go:291
↓ 2 callers
Function
convertDocumentEntSchemaToEntity
(t *ent.Document)
pkg/infrastructure/persistence/entdb/document_ent_repository.go:62
↓ 2 callers
Function
convertTermCompressedEntSchemaToEntity
(entTerm *ent.Term)
pkg/infrastructure/persistence/entdb/term_ent_repository.go:101
↓ 2 callers
Function
covertErrorToResponse
(err *errors.Error, w http.ResponseWriter)
pkg/interface/api/document/document.go:59
↓ 2 callers
Method
createSpec
()
pkg/ent/term_create.go:206
↓ 2 callers
Method
createSpec
()
pkg/ent/document_create.go:176
↓ 2 callers
Method
defaults
defaults sets the default values of the builder before save.
pkg/ent/term_create.go:151
↓ 2 callers
Method
defaults
defaults sets the default values of the builder before save.
pkg/ent/document_create.go:135
↓ 2 callers
Function
newOptions
(opts []Option)
pkg/ent/enttest/enttest.go:46
↓ 2 callers
Method
normalize
(nums []float64)
pkg/infrastructure/documentranker/tfidfranker/tf_idf_document_ranker.go:72
↓ 2 callers
Method
querySpec
()
pkg/ent/document_query.go:355
↓ 2 callers
Method
querySpec
()
pkg/ent/term_query.go:356
↓ 2 callers
Method
sqlCount
(ctx context.Context)
pkg/ent/document_query.go:338
↓ 2 callers
Method
sqlCount
(ctx context.Context)
pkg/ent/term_query.go:339
↓ 2 callers
Method
sqlExec
(ctx context.Context)
pkg/ent/document_delete.go:70
↓ 2 callers
Method
sqlExec
(ctx context.Context)
pkg/ent/term_delete.go:70
↓ 2 callers
Method
sqlQuery
(ctx context.Context)
pkg/ent/document_query.go:403
↓ 2 callers
Method
sqlQuery
(ctx context.Context)
pkg/ent/term_query.go:404
↓ 2 callers
Method
sqlSave
(ctx context.Context)
pkg/ent/document_update.go:117
↓ 2 callers
Method
sqlSave
(ctx context.Context)
pkg/ent/document_update.go:268
↓ 2 callers
Method
sqlSave
(ctx context.Context)
pkg/ent/term_create.go:188
↓ 2 callers
Method
sqlSave
(ctx context.Context)
pkg/ent/term_update.go:133
↓ 2 callers
Method
sqlSave
(ctx context.Context)
pkg/ent/term_update.go:300
↓ 2 callers
Method
sqlSave
(ctx context.Context)
pkg/ent/document_create.go:163
↓ 1 callers
Method
Append
Append extends a chain, adding the specified hook as the last ones in the mutation flow.
pkg/ent/hook/hook.go:206
↓ 1 callers
Method
Bool
Bool returns a single bool from a group-by query. It is only allowed when executing a group-by query with one field.
pkg/ent/document_query.go:639
↓ 1 callers
Method
Bool
Bool returns a single bool from a selector. It is only allowed when selecting one field.
pkg/ent/document_query.go:888
↓ 1 callers
Method
Bool
Bool returns a single bool from a group-by query. It is only allowed when executing a group-by query with one field.
pkg/ent/term_query.go:640
↓ 1 callers
Method
Bool
Bool returns a single bool from a selector. It is only allowed when selecting one field.
pkg/ent/term_query.go:889
↓ 1 callers
Method
BulkUpsertTerm
(ctx context.Context, terms *[]entities.TermCompressedCreate)
pkg/infrastructure/persistence/entdb/term_ent_repository.go:36
↓ 1 callers
Method
BulkUpsertTerm
(ctx context.Context, terms *[]entities.TermCompressedCreate)
pkg/domain/repository/term_repository.go:14
↓ 1 callers
Method
Client
Client returns a Client that binds to current transaction.
pkg/ent/tx.go:145
↓ 1 callers
Method
Client
Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.
pkg/ent/mutation.go:102
↓ 1 callers
Method
Compress
(ctx context.Context, invertIndexes *entities.InvertIndex)
pkg/domain/service/invert_index_compresser.go:11
↓ 1 callers
Method
Count
Count returns the count of the given query.
pkg/ent/document_query.go:199
↓ 1 callers
Method
CreateBulk
CreateBulk returns a builder for creating a bulk of Term entities.
pkg/ent/client.go:246
↓ 1 callers
Method
CreateDocument
(ctx context.Context, doc *entities.DocumentCreate)
pkg/domain/repository/document_repository.go:11
↓ 1 callers
Method
CreatedAt
CreatedAt returns the value of the "created_at" field in the mutation.
pkg/ent/mutation.go:153
↓ 1 callers
Method
Debug
Debug returns a new debug-client. It's used to get verbose logging on specific operations. client.Debug(). Document. Query(). Count(ctx)
pkg/ent/client.go:110
↓ 1 callers
Method
Delete
Delete returns a delete builder for Document.
pkg/ent/client.go:179
↓ 1 callers
Method
Delete
Delete returns a delete builder for Term.
pkg/ent/client.go:269
↓ 1 callers
Method
DeleteOneID
DeleteOneID returns a delete builder for the given id.
pkg/ent/client.go:190
↓ 1 callers
Method
DeleteOneID
DeleteOneID returns a delete builder for the given id.
pkg/ent/client.go:280
↓ 1 callers
Method
DoNothing
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
pkg/ent/term_create.go:395
↓ 1 callers
Method
DoNothing
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
pkg/ent/document_create.go:355
↓ 1 callers
Function
Driver
Driver configures the client driver.
pkg/ent/config.go:56
↓ 1 callers
Method
Error
()
pkg/errors/error.go:28
↓ 1 callers
Method
Exec
Exec executes the query.
pkg/ent/document_update.go:97
↓ 1 callers
Method
Exec
Exec executes the query on the entity.
pkg/ent/document_update.go:248
↓ 1 callers
Method
Exec
Exec executes the query.
pkg/ent/term_create.go:573
↓ 1 callers
Method
Exec
Exec executes the query.
pkg/ent/term_update.go:103
↓ 1 callers
Method
Exec
Exec executes the query on the entity.
pkg/ent/term_update.go:270
↓ 1 callers
Method
Exec
Exec calls tx.Exec.
pkg/ent/tx.go:204
↓ 1 callers
Method
Exec
Exec executes the query.
pkg/ent/document_create.go:532
↓ 1 callers
Method
ExecX
ExecX is like Exec, but panics if an error occurs.
pkg/ent/document_delete.go:62
↓ 1 callers
Method
ExecX
ExecX is like Exec, but panics if an error occurs.
pkg/ent/term_delete.go:62
← previous
next →
101–200 of 762, ranked by callers