[DOCS] Removed deprecated queries/filters from Java API docs
This commit is contained in:
parent
93930d6dc7
commit
164d52767c
|
@ -305,26 +305,6 @@ FilterBuilders.notFilter(
|
|||
--------------------------------------------------
|
||||
|
||||
|
||||
[[numeric-range-filter]]
|
||||
=== Numeric Range Filter
|
||||
|
||||
See {ref}/query-dsl-numeric-range-filter.html[Numeric
|
||||
Range Filter]
|
||||
|
||||
[source,java]
|
||||
--------------------------------------------------
|
||||
FilterBuilders.numericRangeFilter("age")
|
||||
.from(10)
|
||||
.to(20)
|
||||
.includeLower(true)
|
||||
.includeUpper(false);
|
||||
--------------------------------------------------
|
||||
|
||||
Note that you can cache the result using
|
||||
`NumericRangeFilterBuilder#cache(boolean)` method. See
|
||||
<<query-dsl-filters-caching>>.
|
||||
|
||||
|
||||
[[or-filter]]
|
||||
=== Or Filter
|
||||
|
||||
|
|
|
@ -92,40 +92,6 @@ See {ref}/query-dsl-ids-query.html[IDs Query]
|
|||
QueryBuilders.idsQuery().ids("1", "2");
|
||||
--------------------------------------------------
|
||||
|
||||
|
||||
[[custom-score]]
|
||||
=== Custom Score Query
|
||||
|
||||
See {ref}/query-dsl-custom-score-query.html[Custom Score
|
||||
Query]
|
||||
|
||||
[source,java]
|
||||
--------------------------------------------------
|
||||
QueryBuilders.customScoreQuery(QueryBuilders.matchAllQuery()) // Your query here
|
||||
.script("_score * doc['price'].value"); // Your script here
|
||||
|
||||
// If the script have parameters, use the same script and provide parameters to it.
|
||||
QueryBuilders.customScoreQuery(QueryBuilders.matchAllQuery())
|
||||
.script("_score * doc['price'].value / pow(param1, param2)")
|
||||
.param("param1", 2)
|
||||
.param("param2", 3.1);
|
||||
--------------------------------------------------
|
||||
|
||||
|
||||
[[custom-boost-factor]]
|
||||
=== Custom Boost Factor Query
|
||||
|
||||
See
|
||||
{ref}/query-dsl-custom-boost-factor-query.html[Custom
|
||||
Boost Factor Query]
|
||||
|
||||
[source,java]
|
||||
--------------------------------------------------
|
||||
QueryBuilders.customBoostFactorQuery(QueryBuilders.matchAllQuery()) // Your query
|
||||
.boostFactor(3.1f);
|
||||
--------------------------------------------------
|
||||
|
||||
|
||||
[[constant-score]]
|
||||
=== Constant Score Query
|
||||
|
||||
|
@ -160,21 +126,6 @@ QueryBuilders.disMaxQuery()
|
|||
--------------------------------------------------
|
||||
|
||||
|
||||
[[field]]
|
||||
=== Field Query
|
||||
|
||||
See {ref}/query-dsl-field-query.html[Field Query]
|
||||
|
||||
|
||||
[source,java]
|
||||
--------------------------------------------------
|
||||
QueryBuilders.fieldQuery("name", "+kimchy -dadoonet");
|
||||
|
||||
// Note that you can write the same query using queryString query.
|
||||
QueryBuilders.queryString("+kimchy -dadoonet").field("name");
|
||||
--------------------------------------------------
|
||||
|
||||
|
||||
[[flt]]
|
||||
=== Fuzzy Like This (Field) Query (flt and flt_field)
|
||||
|
||||
|
@ -414,22 +365,6 @@ QueryBuilders.nestedQuery("obj1", // Path
|
|||
--------------------------------------------------
|
||||
|
||||
|
||||
[[custom-filters-score]]
|
||||
=== Custom Filters Score Query
|
||||
|
||||
See
|
||||
{ref}/query-dsl-custom-filters-score-query.html[Custom Filters Score Query]
|
||||
|
||||
[source,java]
|
||||
--------------------------------------------------
|
||||
QueryBuilders.customFiltersScoreQuery(
|
||||
QueryBuilders.matchAllQuery()) // Query
|
||||
// Filters with their boost factors
|
||||
.add(FilterBuilders.rangeFilter("age").from(0).to(10), 3)
|
||||
.add(FilterBuilders.rangeFilter("age").from(10).to(20), 2)
|
||||
.scoreMode("first"); // first, min, max, total, avg or multiply
|
||||
--------------------------------------------------
|
||||
|
||||
|
||||
[[indices]]
|
||||
=== Indices Query
|
||||
|
|
Loading…
Reference in New Issue