VectorSearchSyncer is implemented by the core and provided to plugins via RegisterSyncer. Plugins call these methods to pull all content for bulk indexing.
| 112 | // VectorSearchSyncer is implemented by the core and provided to plugins via RegisterSyncer. |
| 113 | // Plugins call these methods to pull all content for bulk indexing. |
| 114 | type VectorSearchSyncer interface { |
| 115 | // GetQuestionsPage returns a page of questions with aggregated text (title + body + answers + comments). |
| 116 | GetQuestionsPage(ctx context.Context, page, pageSize int) ([]*VectorSearchContent, error) |
| 117 | // GetAnswersPage returns a page of answers with aggregated text (answer body + parent question title + comments). |
| 118 | GetAnswersPage(ctx context.Context, page, pageSize int) ([]*VectorSearchContent, error) |
| 119 | } |
| 120 | |
| 121 | var ( |
| 122 | // CallVectorSearch is a function that calls all registered VectorSearch plugins. |
nothing calls this directly
no outgoing calls
no test coverage detected