- Sort Score
- Result 10 results
- Languages All
Results 31 - 38 of 38 for getSettings (0.17 sec)
-
docs/zh/docs/advanced/settings.md
/// tip 如果可能,请尽量使用 `Annotated` 版本。 /// ```Python hl_lines="1 10" {!> ../../docs_src/settings/app03/main.py!} ``` //// 然后,在下一次请求的依赖项中对 `get_settings()` 进行任何后续调用时,它不会执行 `get_settings()` 的内部代码并创建新的 `Settings` 对象,而是返回在第一次调用时返回的相同对象,一次又一次。 #### `lru_cache` 技术细节 `@lru_cache` 修改了它所装饰的函数,以返回第一次返回的相同值,而不是再次计算它,每次都执行函数的代码。 因此,下面的函数将对每个参数组合执行一次。然后,每个参数组合返回的值将在使用完全相同的参数组合调用函数时再次使用。
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 13.8K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/suggest/settings/AnalyzerSettings.java
.execute().actionGet(this.settings.getIndicesTimeout()); } protected void createAnalyzerSettings(final Map<String, Object> settings, final Map<String, Object> mappings) { client.admin().indices().prepareCreate(analyzerSettingsIndexName).setSettings(settings).execute()
Registered: Fri Nov 08 09:08:12 UTC 2024 - Last Modified: Sat Oct 12 00:10:39 UTC 2024 - 19.4K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/suggest/Suggester.java
if (logger.isInfoEnabled()) { logger.info("Create suggest index: {}", indexName); } client.admin().indices().prepareCreate(indexName).setSettings(settingsSource, XContentType.JSON).setMapping(mappingSource) .addAlias(new Alias(getSearchAlias(index))).addAlias(new Alias(getUpdateAlias(index))).execute()
Registered: Fri Nov 08 09:08:12 UTC 2024 - Last Modified: Sat Oct 12 00:10:39 UTC 2024 - 14.6K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/suggest/settings/SuggestSettings.java
doCreate = true; } if (doCreate) { if (doIndexCreate) { try { client.admin().indices().prepareCreate(settingsIndexName).setSettings(loadIndexSettings(), XContentType.JSON).execute() .actionGet(getIndicesTimeout()); } catch (final IOException e) { throw new SuggesterException(e);
Registered: Fri Nov 08 09:08:12 UTC 2024 - Last Modified: Sat Oct 12 00:10:39 UTC 2024 - 11.7K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/suggest/settings/ArraySettings.java
} catch (final IndexNotFoundException e) { empty = true; final CreateIndexResponse response = client.admin().indices().prepareCreate(actualIndex) .setSettings(loadIndexSettings(), XContentType.JSON).execute().actionGet(settings.getIndicesTimeout()); if (!response.isAcknowledged()) {
Registered: Fri Nov 08 09:08:12 UTC 2024 - Last Modified: Sat Oct 12 00:10:39 UTC 2024 - 10.9K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Connection.kt
taskRunner.newQueue().execute(name = connectionName, block = readerRunnable) } /** Merges [settings] into this peer's settings and sends them to the remote peer. */ @Throws(IOException::class) fun setSettings(settings: Settings) { writer.withLock { this.withLock { if (isShutdown) { throw ConnectionShutdownException() } okHttpSettings.merge(settings) }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Apr 20 17:03:43 UTC 2024 - 32.6K bytes - Viewed (0) -
mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt
private fun writeResponse( stream: Http2Stream, request: RecordedRequest, response: MockResponse, ) { val settings = response.settings stream.connection.setSettings(settings) if (response.socketPolicy === NoResponse) { return } val bodyDelayNanos = response.bodyDelayNanos val trailers = response.trailers
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sun Mar 31 17:16:15 UTC 2024 - 37.4K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/es/client/SearchEngineClient.java
} public void addConfigFile(final String index, final String path) { configListMap.computeIfAbsent(index, k -> new ArrayList<>()).add(path); } public void setSettings(final Map<String, String> settings) { this.settings = settings; } public String getStatus() {
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Sun Oct 20 02:08:03 UTC 2024 - 86.1K bytes - Viewed (0)