File tree Expand file tree Collapse file tree 4 files changed +6
-4
lines changed
Expand file tree Collapse file tree 4 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ module github.com/stevenferrer/solr-go
33go 1.14
44
55require (
6- github.com/davecgh/go-spew v1.1.0
76 github.com/dnaeon/go-vcr v1.0.1
87 github.com/pkg/errors v0.9.1
98 github.com/stretchr/testify v1.6.1
Original file line number Diff line number Diff line change @@ -313,7 +313,8 @@ func TestModifySchema(t *testing.T) {
313313 body : schema.FieldType {
314314 Name : "myNewTextField" ,
315315 Class : "solr.TextField" ,
316- IndexAnalyzier : & schema.Analyzer {
316+ // with 2 analyzers
317+ IndexAnalyzer : & schema.Analyzer {
317318 Tokenizer : & schema.Tokenizer {
318319 Class : "solr.PathHierarchyTokenizerFactory" ,
319320 Delimeter : "/" ,
@@ -340,6 +341,8 @@ func TestModifySchema(t *testing.T) {
340341 Name : "myNewTextField" ,
341342 Class : "solr.TextField" ,
342343 PositionIncrementGap : "100" ,
344+ // with 1 analyzer, will be applied to both
345+ // index and query analyzer
343346 Analyzer : & schema.Analyzer {
344347 Tokenizer : & schema.Tokenizer {
345348 Class : "solr.StandardTokenizerFactory" ,
Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ func modifyingSchema() {
139139 err = schemaClient .AddFieldType (context .Background (), collection , schema.FieldType {
140140 Name : "myNewTextField" ,
141141 Class : "solr.TextField" ,
142- IndexAnalyzier : & schema.Analyzer {
142+ IndexAnalyzer : & schema.Analyzer {
143143 Tokenizer : & schema.Tokenizer {
144144 Class : "solr.PathHierarchyTokenizerFactory" ,
145145 Delimeter : "/" ,
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ type FieldType struct {
4545 SubFieldSuffix string `json:"subFieldSuffix,omitempty"`
4646 Dimension string `json:"dimension,omitempty"`
4747 Analyzer * Analyzer `json:"analyzer,omitempty"`
48- IndexAnalyzier * Analyzer `json:"indexAnalyzer,omitempty"`
48+ IndexAnalyzer * Analyzer `json:"indexAnalyzer,omitempty"`
4949 QueryAnalyzer * Analyzer `json:"queryAnalyzer,omitempty"`
5050}
5151
You can’t perform that action at this time.
0 commit comments