Skip to content

Commit

Permalink
fixed lint issues
Browse files Browse the repository at this point in the history
- temporary comment out unused params
  • Loading branch information
stevenferrer committed Feb 5, 2021
1 parent e439be8 commit b025acf
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 31 deletions.
44 changes: 22 additions & 22 deletions facet.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@ type TermsFacet struct {
limit int
sort string

overRequest int
refine bool
overRefine int
minCount int
missing bool
numBuckets bool
allBuckets bool
prefix string
method string
prelimSort string
// overRequest int
// refine bool
// overRefine int
// minCount int
// missing bool
// numBuckets bool
// allBuckets bool
// prefix string
// method string
// prelimSort string

facet M

Expand Down Expand Up @@ -175,15 +175,15 @@ func (f *QueryFacet) AddToFacet(key string, value interface{}) *QueryFacet {
return f
}

// RangeFacet is a range facet
type RangeFacet struct {
field string
start int
end int
gap int
hardend bool
other string
include string
ranges string
facet M
}
// // RangeFacet is a range facet
// type RangeFacet struct {
// field string
// start int
// end int
// gap int
// hardend bool
// other string
// include string
// ranges string
// facet M
// }
2 changes: 1 addition & 1 deletion json_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ func (c *JSONClient) postJSON(
) error {
theURL, err := url.Parse(urlStr)
if err != nil {
errors.Wrap(err, "parse url")
return errors.Wrap(err, "parse url")
}

buf := &bytes.Buffer{}
Expand Down
16 changes: 8 additions & 8 deletions query.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ type Query struct {
// Refer to https://lucene.apache.org/solr/guide/8_7/common-query-parameters.html

// standard params in v1 api
debug string
explainOther string
timeAllowed int
segmentTerminateEarly bool
omitHeader bool
echoParams string
minExactCount int
responseWriter string // wt
// debug string
// explainOther string
// timeAllowed int
// segmentTerminateEarly bool
// omitHeader bool
// echoParams string
// minExactCount int
// responseWriter string // wt

// supported params in json request api
sort string
Expand Down

0 comments on commit b025acf

Please sign in to comment.