Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
192 changes: 125 additions & 67 deletions go-tipb/tici.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion proto/tici/indexer.proto
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ message ParserInfo {
ParserType parser_type = 1;
// Parser parameters
map<string, string> parser_params = 2;
// Stop words list. Only used when stopwords are enabled at index creation time.
repeated string stop_words = 3;
}

// GetIndexProgressRequest is a request to get the progress of an index build
Expand All @@ -169,4 +171,4 @@ message GetIndexProgressResponse {
string last_upload_time = 6;
// S3 path where the index is stored
repeated string s3_path = 7;
}
}
5 changes: 4 additions & 1 deletion scripts/generate-go.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,16 @@ protoc -I.:../include --gofast_out=plugins=grpc:../go-tipb *.proto
protoc -I.:../include --gofast_out=plugins=grpc,Mtici/indexer.proto=github.com/pingcap/tipb/go-tipb,import_path=tipb:../go-tipb tici/*.proto

cd ../go-tipb
if [ -f "tici/indexer.pb.go" ]; then
mv tici/indexer.pb.go tici.pb.go
fi
sed -i.bak -E 's/import _ \"gogoproto\"//g' *.pb.go
sed -i.bak -E 's/context \"context\"//g' *.pb.go
sed -i.bak -E 's/fmt \"fmt\"//g' *.pb.go
sed -i.bak -E 's/io \"io\"//g' *.pb.go
sed -i.bak -E 's/math \"math\"//g' *.pb.go
sed -i.bak -E 's/_ \".*rustproto\"//g' *.pb.go
sed -i.bak -E 's/import _ \"\.\"//' *.pb.go
sed -i.bak -E '/^[[:space:]]*_ \"\.\"[[:space:]]*$/d' *.pb.go
sed -i.bak -E 's/package tipb_tici/package tipb/' *.pb.go

# Remove temporary files
Expand Down
6 changes: 6 additions & 0 deletions scripts/proto.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8245,6 +8245,12 @@
"id": 1,
"name": "parser_type",
"type": "ParserType"
},
{
"id": 3,
"name": "stop_words",
"type": "string",
"is_repeated": true
}
],
"maps": [
Expand Down
Loading