Fix rebase errors
This commit is contained in:
1 parent
0f926fafad
commit
cfceb854b1
1 file changed
+3
-3
@@ -33,8 +33,8 @@ import (
|
|||||||
"github.com/blevesearch/bleve/v2/analysis/token/lowercase"
|
"github.com/blevesearch/bleve/v2/analysis/token/lowercase"
|
||||||
"github.com/blevesearch/bleve/v2/analysis/tokenizer/single"
|
"github.com/blevesearch/bleve/v2/analysis/tokenizer/single"
|
||||||
"github.com/blevesearch/bleve/v2/mapping"
|
"github.com/blevesearch/bleve/v2/mapping"
|
||||||
"github.com/cs3org/reva/v2/pkg/storagespace"
|
|
||||||
"github.com/blevesearch/bleve/v2/search"
|
"github.com/blevesearch/bleve/v2/search"
|
||||||
|
"github.com/cs3org/reva/v2/pkg/storagespace"
|
||||||
"google.golang.org/protobuf/types/known/timestamppb"
|
"google.golang.org/protobuf/types/known/timestamppb"
|
||||||
|
|
||||||
sprovider "github.com/cs3org/go-cs3apis/cs3/storage/provider/v1beta1"
|
sprovider "github.com/cs3org/go-cs3apis/cs3/storage/provider/v1beta1"
|
||||||
@@ -314,11 +314,11 @@ func fieldsToEntity(fields map[string]interface{}) *indexDocument {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func fromDocumentMatch(hit *search.DocumentMatch) (*searchmsg.Match, error) {
|
func fromDocumentMatch(hit *search.DocumentMatch) (*searchmsg.Match, error) {
|
||||||
rootID, err := storagespace.ParseID(fields["RootID"].(string))
|
rootID, err := storagespace.ParseID(hit.Fields["RootID"].(string))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
rID, err := storagespace.ParseID(fields["ID"].(string))
|
rID, err := storagespace.ParseID(hit.Fields["ID"].(string))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user