Merged in feature/doctextstructure (pull request #56)
DocTextRunner Structure * firstround * shorttests
This commit is contained in:
@@ -2,7 +2,6 @@ package query
|
||||
|
||||
import (
|
||||
"queryorchestration/internal/document"
|
||||
documenttext "queryorchestration/internal/document/text"
|
||||
"queryorchestration/internal/job/collector"
|
||||
"queryorchestration/internal/query/result"
|
||||
"queryorchestration/internal/serviceconfig"
|
||||
@@ -11,7 +10,6 @@ import (
|
||||
)
|
||||
|
||||
type Services struct {
|
||||
Text *documenttext.Service
|
||||
Result *result.Service
|
||||
Collector *collector.Service
|
||||
Document *document.Service
|
||||
|
||||
@@ -3,7 +3,7 @@ package query
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
documenttext "queryorchestration/internal/document/text"
|
||||
"queryorchestration/internal/document"
|
||||
"queryorchestration/internal/query/result"
|
||||
resultprocessor "queryorchestration/internal/query/result/processor"
|
||||
"sync"
|
||||
@@ -12,7 +12,7 @@ import (
|
||||
)
|
||||
|
||||
func (s *Service) Sync(ctx context.Context, doc *Document) error {
|
||||
err := s.svc.Text.IsExtracted(&documenttext.IsExtractedParams{
|
||||
err := s.svc.Document.IsTextExtracted(&document.IsTextExtractedParams{
|
||||
DocumentID: doc.ID,
|
||||
MinCleanVersion: doc.CleanVersion,
|
||||
MinTextVersion: doc.TextVersion,
|
||||
|
||||
@@ -5,7 +5,6 @@ import (
|
||||
"queryorchestration/internal/database"
|
||||
"queryorchestration/internal/database/repository"
|
||||
"queryorchestration/internal/document"
|
||||
documenttext "queryorchestration/internal/document/text"
|
||||
"queryorchestration/internal/job/collector"
|
||||
"queryorchestration/internal/query"
|
||||
"queryorchestration/internal/query/result"
|
||||
@@ -32,9 +31,7 @@ func TestTest(t *testing.T) {
|
||||
col := collector.New(cfg, &collector.Services{
|
||||
Document: docsvc,
|
||||
})
|
||||
text := documenttext.New()
|
||||
svc := query.New(cfg, &query.Services{
|
||||
Text: text,
|
||||
Document: docsvc,
|
||||
Collector: col,
|
||||
Result: result.New(cfg),
|
||||
|
||||
Reference in New Issue
Block a user