- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 1,049 for Query (0.02 sec)
-
docs/es/docs/tutorial/query-params-str-validations.md
```Python q: str | None = Query(default=None, max_length=50) ``` Esto validará los datos, mostrará un error claro cuando los datos no sean válidos, y documentará el parámetro en el esquema del *path operation* de OpenAPI. ### `Query` como valor por defecto o en `Annotated` { #query-as-the-default-value-or-in-annotated } Ten en cuenta que cuando uses `Query` dentro de `Annotated` no puedes usar el parámetro `default` para `Query`.Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 18.4K bytes - Viewed (0) -
docs/zh/docs/tutorial/query-params-str-validations.md
我们打算添加约束条件:即使 `q` 是可选的,但只要提供了该参数,则该参数值**不能超过50个字符的长度**。 ### 导入 `Query` 为此,首先从 `fastapi` 导入 `Query`: {* ../../docs_src/query_params_str_validations/tutorial002.py hl[1] *} ## 使用 `Query` 作为默认值 现在,将 `Query` 用作查询参数的默认值,并将它的 `max_length` 参数设置为 50: {* ../../docs_src/query_params_str_validations/tutorial002.py hl[9] *} 由于我们必须用 `Query(default=None)` 替换默认值 `None`,`Query` 的第一个参数同样也是用于定义默认值。 所以: ```PythonRegistered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Feb 15 16:23:59 UTC 2025 - 7.7K bytes - Viewed (0) -
tests/test_query.py
response = client.get("/query/int?query=42") assert response.status_code == 200 assert response.json() == "foo bar 42" def test_query_int_query_42_5(): response = client.get("/query/int?query=42.5") assert response.status_code == 422 assert response.json() == { "detail": [ { "type": "int_parsing", "loc": ["query", "query"],
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 18:19:10 UTC 2025 - 7.4K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/query/DefaultQueryBuilder.java
*/ package org.codelibs.fess.query; import java.io.IOException; import java.util.Objects; import org.apache.lucene.search.Query; import org.opensearch.core.common.io.stream.StreamOutput; import org.opensearch.core.xcontent.XContentBuilder; import org.opensearch.index.query.BoolQueryBuilder; import org.opensearch.index.query.DisMaxQueryBuilder; import org.opensearch.index.query.QueryBuilder;
Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 6.6K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/query/parser/QueryParser.java
* @return the parsed Query object * @throws QueryParseException if the query cannot be parsed */ public Query parse(final String query) { return filterChain.parse(query); } /** * Creates a new Lucene query parser with the current configuration. * The parser is configured with the default field, analyzer, wildcard settings, * and default operator. *Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 10.2K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/query/QueryCommand.java
/** * Gets the class name of the query this command handles. * @return The query class name. */ protected abstract String getQueryClassName(); /** * Registers this query command with the query processor. * Associates this command with its query class name in the processor. */Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Sun Nov 23 11:39:05 UTC 2025 - 11.6K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/query/TermQueryCommand.java
} @Override public QueryBuilder execute(final QueryContext context, final Query query, final float boost) { if (query instanceof final TermQuery termQuery) { if (logger.isDebugEnabled()) { logger.debug("TermQuery: query={}, boost={}", query, boost); } return convertTermQuery(context, termQuery, boost); }Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Fri Nov 28 16:29:12 UTC 2025 - 13.6K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/query/WildcardQueryCommand.java
"Unknown q: " + query.getClass() + " => " + query); } /** * Converts a wildcard query to an appropriate OpenSearch QueryBuilder. * * @param context The query context containing field and search information * @param wildcardQuery The Lucene wildcard query to convert * @param boost The boost factor to apply to the query * @return The converted OpenSearch QueryBuilder
Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Fri Nov 28 16:29:12 UTC 2025 - 5.7K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/helper/QueryHelper.java
import org.opensearch.index.query.BoolQueryBuilder; import org.opensearch.index.query.QueryBuilder; import org.opensearch.index.query.QueryBuilders; import org.opensearch.index.query.functionscore.FunctionScoreQueryBuilder.FilterFunctionBuilder; import org.opensearch.index.query.functionscore.ScoreFunctionBuilder; import org.opensearch.index.query.functionscore.ScoreFunctionBuilders;
Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 19.9K bytes - Viewed (0) -
tests/test_application.py
}, "summary": "Get Query", "operationId": "get_query_query_get", "parameters": [ { "required": True, "schema": {"title": "Query"}, "name": "query", "in": "query", } ],Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 18:19:10 UTC 2025 - 51.9K bytes - Viewed (0)