| 131 | } |
| 132 | |
| 133 | func (h *ManagerOptionsExt) ServeHTTP( |
| 134 | w http.ResponseWriter, req *http.Request) { |
| 135 | h.mgrOptions.ServeHTTP(w, req) |
| 136 | |
| 137 | // Update log level if requested. |
| 138 | logLevelStr := h.mgr.Options()["logLevel"] |
| 139 | if logLevelStr != "" { |
| 140 | logLevel, _ := LogLevels[logLevelStr] |
| 141 | log.SetLevel(log.LogLevel(logLevel)) |
| 142 | } |
| 143 | |
| 144 | // Update bleveMaxClauseCount if requested. |
| 145 | bleveMaxClauseCountStr := h.mgr.Options()["bleveMaxClauseCount"] |
| 146 | if bleveMaxClauseCountStr != "" { |
| 147 | bleveMaxClauseCount, _ := strconv.Atoi(bleveMaxClauseCountStr) |
| 148 | bleveSearcher.DisjunctionMaxClauseCount = bleveMaxClauseCount |
| 149 | } |
| 150 | } |
| 151 | |
| 152 | type ConciseOptions struct { |
| 153 | mgr *cbgt.Manager |