MCPcopy Create free account

hub / github.com/YadaYuki/omochi / functions

Functions762 in github.com/YadaYuki/omochi

↓ 1 callersMethodExist
Exist returns true if the query has elements in the graph.
pkg/ent/document_query.go:216
↓ 1 callersMethodExist
Exist returns true if the query has elements in the graph.
pkg/ent/term_query.go:217
↓ 1 callersMethodFindDocumentsByIds
(ctx context.Context, ids *[]int64)
pkg/infrastructure/persistence/entdb/document_ent_repository.go:37
↓ 1 callersMethodFindTermCompressedById
(ctx context.Context, uuid uuid.UUID)
pkg/infrastructure/persistence/entdb/term_ent_repository.go:24
↓ 1 callersMethodFindTermCompressedByWord
(ctx context.Context, word string)
pkg/infrastructure/persistence/entdb/term_ent_repository.go:72
↓ 1 callersMethodFindTermCompressedByWord
(ctx context.Context, word string)
pkg/domain/repository/term_repository.go:13
↓ 1 callersMethodFindTermCompressedsByWords
(ctx context.Context, words *[]string)
pkg/infrastructure/persistence/entdb/term_ent_repository.go:55
↓ 1 callersMethodFirst
First returns the first Document entity from the query. Returns a *NotFoundError when no Document was found.
pkg/ent/document_query.go:65
↓ 1 callersMethodFirst
First returns the first Term entity from the query. Returns a *NotFoundError when no Term was found.
pkg/ent/term_query.go:66
↓ 1 callersMethodFirstID
FirstID returns the first Document ID from the query. Returns a *NotFoundError when no Document ID was found.
pkg/ent/document_query.go:87
↓ 1 callersMethodFirstID
FirstID returns the first Term ID from the query. Returns a *NotFoundError when no Term ID was found.
pkg/ent/term_query.go:88
↓ 1 callersFunctionFixedError
FixedError is a hook returning a fixed error.
pkg/ent/hook/hook.go:162
↓ 1 callersMethodFloat64
Float64 returns a single float64 from a group-by query. It is only allowed when executing a group-by query with one field.
pkg/ent/document_query.go:590
↓ 1 callersMethodFloat64
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
pkg/ent/document_query.go:841
↓ 1 callersMethodFloat64
Float64 returns a single float64 from a group-by query. It is only allowed when executing a group-by query with one field.
pkg/ent/term_query.go:591
↓ 1 callersMethodFloat64
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
pkg/ent/term_query.go:842
↓ 1 callersMethodGet
Get returns a Document entity by its id.
pkg/ent/client.go:205
↓ 1 callersMethodGroupBy
GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum. Example
pkg/ent/document_query.go:266
↓ 1 callersMethodGroupBy
GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum. Example
pkg/ent/term_query.go:267
↓ 1 callersMethodID
Exec executes the UPSERT query and returns the inserted/updated ID.
pkg/ent/document_create.go:441
↓ 1 callersMethodID
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the databa
pkg/ent/mutation.go:121
↓ 1 callersMethodIDs
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction w
pkg/ent/mutation.go:611
↓ 1 callersMethodIndexingDocument
(ctx context.Context, document *entities.DocumentCreate)
pkg/domain/service/indexer.go:11
↓ 1 callersFunctionInitRoutes
(r chi.Router, termUsecase tusecase.TermUseCase, searchUsecase susecase.SearchUseCase)
pkg/interface/api/routes.go:11
↓ 1 callersMethodInt
Int returns a single int from a group-by query. It is only allowed when executing a group-by query with one field.
pkg/ent/document_query.go:541
↓ 1 callersMethodInt
Int returns a single int from a selector. It is only allowed when selecting one field.
pkg/ent/document_query.go:794
↓ 1 callersMethodInt
Int returns a single int from a group-by query. It is only allowed when executing a group-by query with one field.
pkg/ent/term_query.go:542
↓ 1 callersMethodInt
Int returns a single int from a selector. It is only allowed when selecting one field.
pkg/ent/term_query.go:795
↓ 1 callersFunctionNewIndexer
(documentRepository repository.DocumentRepository, termRepository repository.TermRepository, tokenizer service
pkg/infrastructure/indexer/indexer.go:20
↓ 1 callersFunctionNewPosting
(documentRelatedId int64, positionsInDocument []int)
pkg/domain/entities/posting.go:8
↓ 1 callersFunctionNewQuery
(keyword []string, searchMode SearchModeType)
pkg/domain/entities/query.go:15
↓ 1 callersFunctionNewSchema
NewSchema creates a new schema client.
pkg/ent/migrate/migrate.go:44
↓ 1 callersFunctionNewSearcher
(invertIndexCached map[string]*entities.InvertIndex, termRepository repository.TermRepository, documentReposit
pkg/infrastructure/searcher/searcher.go:23
↓ 1 callersFunctionNewTermController
(u usecase.TermUseCase)
pkg/interface/api/term/term.go:18
↓ 1 callersFunctionNot
Not negates a given condition.
pkg/ent/hook/hook.go:72
↓ 1 callersMethodOffset
Offset adds an offset step to the query.
pkg/ent/document_query.go:45
↓ 1 callersMethodOffset
Offset adds an offset step to the query.
pkg/ent/term_query.go:46
↓ 1 callersMethodOldContent
OldContent returns the old "content" field's value of the Document entity. If the Document object wasn't provided to the builder, the object is fetche
pkg/ent/mutation.go:236
↓ 1 callersMethodOldCreatedAt
OldCreatedAt returns the old "created_at" field's value of the Document entity. If the Document object wasn't provided to the builder, the object is f
pkg/ent/mutation.go:164
↓ 1 callersMethodOldCreatedAt
OldCreatedAt returns the old "created_at" field's value of the Term entity. If the Term object wasn't provided to the builder, the object is fetched f
pkg/ent/mutation.go:643
↓ 1 callersMethodOldPostingListCompressed
OldPostingListCompressed returns the old "posting_list_compressed" field's value of the Term entity. If the Term object wasn't provided to the builder
pkg/ent/mutation.go:751
↓ 1 callersMethodOldTokenizedContent
OldTokenizedContent returns the old "tokenized_content" field's value of the Document entity. If the Document object wasn't provided to the builder, t
pkg/ent/mutation.go:272
↓ 1 callersMethodOldUpdatedAt
OldUpdatedAt returns the old "updated_at" field's value of the Document entity. If the Document object wasn't provided to the builder, the object is f
pkg/ent/mutation.go:200
↓ 1 callersMethodOldUpdatedAt
OldUpdatedAt returns the old "updated_at" field's value of the Term entity. If the Term object wasn't provided to the builder, the object is fetched f
pkg/ent/mutation.go:679
↓ 1 callersMethodOldWord
OldWord returns the old "word" field's value of the Term entity. If the Term object wasn't provided to the builder, the object is fetched from the dat
pkg/ent/mutation.go:715
↓ 1 callersFunctionOn
On executes the given hook only for the given operation. hook.On(Log, ent.Delete|ent.Create)
pkg/ent/hook/hook.go:149
↓ 1 callersMethodOnConflict
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example: client.Term.Create(). SetCreat
pkg/ent/term_create.go:274
↓ 1 callersMethodOnly
Only returns a single Document entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Document entity
pkg/ent/document_query.go:111
↓ 1 callersMethodOnlyID
OnlyID is like Only, but returns the only Document ID in the query. Returns a *NotSingularError when more than one Document ID is found. Returns a *No
pkg/ent/document_query.go:138
↓ 1 callersMethodOnlyID
OnlyID is like Only, but returns the only Term ID in the query. Returns a *NotSingularError when more than one Term ID is found. Returns a *NotFoundEr
pkg/ent/term_query.go:139
↓ 1 callersMethodOp
Op returns the operation name.
pkg/ent/mutation.go:776
↓ 1 callersFunctionOr
Or groups predicates with the OR operator between them.
pkg/ent/term/where.go:475
↓ 1 callersFunctionOr
Or groups predicates with the OR operator between them.
pkg/ent/document/where.go:509
↓ 1 callersMethodQuery
Query returns a query builder for Document.
pkg/ent/client.go:198
↓ 1 callersMethodQuery
Query returns a query builder for Term.
pkg/ent/client.go:288
↓ 1 callersMethodResetContent
ResetContent resets all changes to the "content" field.
pkg/ent/mutation.go:251
↓ 1 callersMethodResetCreatedAt
ResetCreatedAt resets all changes to the "created_at" field.
pkg/ent/mutation.go:179
↓ 1 callersMethodResetCreatedAt
ResetCreatedAt resets all changes to the "created_at" field.
pkg/ent/mutation.go:658
↓ 1 callersMethodResetPostingListCompressed
ResetPostingListCompressed resets all changes to the "posting_list_compressed" field.
pkg/ent/mutation.go:766
↓ 1 callersMethodResetTokenizedContent
ResetTokenizedContent resets all changes to the "tokenized_content" field.
pkg/ent/mutation.go:287
↓ 1 callersMethodResetUpdatedAt
ResetUpdatedAt resets all changes to the "updated_at" field.
pkg/ent/mutation.go:215
↓ 1 callersMethodResetUpdatedAt
ResetUpdatedAt resets all changes to the "updated_at" field.
pkg/ent/mutation.go:694
↓ 1 callersMethodResetWord
ResetWord resets all changes to the "word" field.
pkg/ent/mutation.go:730
↓ 1 callersMethodSearch
(ctx context.Context, query *entities.Query)
pkg/infrastructure/searcher/searcher.go:27
↓ 1 callersMethodSearch
(ctx context.Context, query *entities.Query)
pkg/domain/service/searcher.go:11
↓ 1 callersMethodSearchDocuments
(ctx context.Context, query *entities.Query)
pkg/usecase/search/search.go:13
↓ 1 callersMethodSetContent
SetContent sets the "content" field.
pkg/ent/document_update.go:38
↓ 1 callersMethodSetCreatedAt
SetCreatedAt sets the "created_at" field.
pkg/ent/mutation.go:148
↓ 1 callersMethodSetCreatedAt
SetCreatedAt sets the "created_at" field.
pkg/ent/mutation.go:627
↓ 1 callersMethodSetPostingListCompressed
SetPostingListCompressed sets the "posting_list_compressed" field.
pkg/ent/term_update.go:44
↓ 1 callersMethodSetTokenizedContent
SetTokenizedContent sets the "tokenized_content" field.
pkg/ent/document_update.go:44
↓ 1 callersMethodSetUpdatedAt
SetUpdatedAt sets the "updated_at" field.
pkg/ent/mutation.go:184
↓ 1 callersMethodSetUpdatedAt
SetUpdatedAt sets the "updated_at" field.
pkg/ent/mutation.go:663
↓ 1 callersMethodSetWord
SetWord sets the "word" field.
pkg/ent/term_update.go:38
↓ 1 callersMethodSortDocumentByScore
(ctx context.Context, query string, docs []*entities.Document)
pkg/infrastructure/documentranker/tfidfranker/tf_idf_document_ranker.go:20
↓ 1 callersMethodSortDocumentByScore
(ctx context.Context, query string, docs []*entities.Document)
pkg/domain/service/document_ranker.go:11
↓ 1 callersMethodString
String returns a single string from a group-by query. It is only allowed when executing a group-by query with one field.
pkg/ent/document_query.go:492
↓ 1 callersMethodString
String returns a single string from a selector. It is only allowed when selecting one field.
pkg/ent/document_query.go:747
↓ 1 callersMethodString
String returns a single string from a group-by query. It is only allowed when executing a group-by query with one field.
pkg/ent/term_query.go:493
↓ 1 callersMethodString
String returns a single string from a selector. It is only allowed when selecting one field.
pkg/ent/term_query.go:748
↓ 1 callersMethodTokenize
(ctx context.Context, japaneseContent string)
pkg/infrastructure/tokenizer/ja/ja_kagome_tokenizer.go:25
↓ 1 callersMethodTokenize
(ctx context.Context, content string)
pkg/infrastructure/tokenizer/eng/en_prose_tokenizer.go:21
↓ 1 callersMethodUnique
Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.
pkg/ent/term_query.go:53
↓ 1 callersMethodUpdate
Update returns a builder for updating this Term. Note that you need to call Term.Unwrap() before calling this method if this Term was returned from a
pkg/ent/term.go:96
↓ 1 callersMethodUpdatePostingListCompressed
UpdatePostingListCompressed sets the "posting_list_compressed" field to the value that was provided on create.
pkg/ent/term_create.go:351
↓ 1 callersMethodUpdateUpdatedAt
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
pkg/ent/term_create.go:327
↓ 1 callersMethodUpdatedAt
UpdatedAt returns the value of the "updated_at" field in the mutation.
pkg/ent/mutation.go:189
↓ 1 callersMethodWithTx
(ctx context.Context, db *ent.Client, fn func(t *ent.Client) *errors.Error)
pkg/infrastructure/transaction/wrapper/transaction_wrapper.go:19
↓ 1 callersMethodassignValues
assignValues assigns the values that were returned from sql.Rows (after scanning) to the Term fields.
pkg/ent/term.go:52
↓ 1 callersMethodassignValues
assignValues assigns the values that were returned from sql.Rows (after scanning) to the Document fields.
pkg/ent/document.go:49
↓ 1 callersFunctionconvertDocumentsEntSchemaToEntity
(t []*ent.Document)
pkg/infrastructure/persistence/entdb/document_ent_repository.go:54
↓ 1 callersFunctionconvertTermCompressedsEntSchemaToEntity
(entTerms []*ent.Term)
pkg/infrastructure/persistence/entdb/term_ent_repository.go:84
↓ 1 callersFunctioncovertErrorToResponse
(err *errors.Error, w http.ResponseWriter)
pkg/interface/api/term/term.go:39
↓ 1 callersFunctioncreateDocumentController
(t testing.TB, client *ent.Client)
pkg/interface/api/document/document_test.go:92
↓ 1 callersFunctioncreateIndexer
(t testing.TB, client *ent.Client)
pkg/interface/api/document/document_test.go:104
↓ 1 callersFunctioncreateTermController
(t testing.TB, client *ent.Client)
pkg/interface/api/term/term_test.go:58
↓ 1 callersMethoddefaults
defaults sets the default values of the builder before save.
pkg/ent/document_update.go:110
↓ 1 callersMethoddefaults
defaults sets the default values of the builder before save.
pkg/ent/document_update.go:261
↓ 1 callersMethoddefaults
defaults sets the default values of the builder before save.
pkg/ent/term_update.go:116
↓ 1 callersMethoddefaults
defaults sets the default values of the builder before save.
pkg/ent/term_update.go:283
← previousnext →201–300 of 762, ranked by callers