mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-24 22:09:24 +00:00
[DOCS] link: prefix not required when using {ref} attributes
This commit is contained in:
parent
e6127fc082
commit
17234fe454
@ -2,7 +2,7 @@
|
||||
== Count API
|
||||
|
||||
The count API is very similar to the
|
||||
link:{java}/count.html[Java count API]. The Groovy
|
||||
{java}/count.html[Java count API]. The Groovy
|
||||
extension allows to provide the query to execute as a `Closure` (similar
|
||||
to GORM criteria builder):
|
||||
|
||||
@ -19,4 +19,4 @@ def count = client.count {
|
||||
}
|
||||
--------------------------------------------------
|
||||
|
||||
The query follows the same link:{ref}/query-dsl.html[Query DSL].
|
||||
The query follows the same {ref}/query-dsl.html[Query DSL].
|
||||
|
@ -2,7 +2,7 @@
|
||||
== Delete API
|
||||
|
||||
The delete API is very similar to the
|
||||
link:{java}/delete.html[Java delete API], here is an
|
||||
{java}/delete.html[Java delete API], here is an
|
||||
example:
|
||||
|
||||
[source,js]
|
||||
|
@ -2,7 +2,7 @@
|
||||
== Get API
|
||||
|
||||
The get API is very similar to the
|
||||
link:{java}/get.html[Java get API]. The main benefit
|
||||
{java}/get.html[Java get API]. The main benefit
|
||||
of using groovy is handling the source content. It can be automatically
|
||||
converted to a `Map` which means using Groovy to navigate it is simple:
|
||||
|
||||
|
@ -12,7 +12,7 @@ asynchronous in nature (they either accept a listener, or return a
|
||||
future).
|
||||
|
||||
The Groovy API is a wrapper on top of the
|
||||
link:{java}[Java API] exposing it in a groovier
|
||||
{java}[Java API] exposing it in a groovier
|
||||
manner. The execution options for each API follow a similar manner and
|
||||
covered in <<anatomy>>.
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
== Index API
|
||||
|
||||
The index API is very similar to the
|
||||
link:{java}/index_.html[Java index API]. The Groovy
|
||||
{java}/index_.html[Java index API]. The Groovy
|
||||
extension to it is the ability to provide the indexed source using a
|
||||
closure. For example:
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
== Search API
|
||||
|
||||
The search API is very similar to the
|
||||
link:{java}/search.html[Java search API]. The Groovy
|
||||
{java}/search.html[Java search API]. The Groovy
|
||||
extension allows to provide the search source to execute as a `Closure`
|
||||
including the query itself (similar to GORM criteria builder):
|
||||
|
||||
@ -38,13 +38,13 @@ search.response.hits.each {SearchHit hit ->
|
||||
--------------------------------------------------
|
||||
|
||||
The format of the search `Closure` follows the same JSON syntax as the
|
||||
link:{ref}/search-search.html[Search API] request.
|
||||
{ref}/search-search.html[Search API] request.
|
||||
|
||||
|
||||
=== More examples
|
||||
|
||||
Term query where multiple values are provided (see
|
||||
link:{ref}/query-dsl-terms-query.html[terms]):
|
||||
{ref}/query-dsl-terms-query.html[terms]):
|
||||
|
||||
[source,js]
|
||||
--------------------------------------------------
|
||||
@ -60,7 +60,7 @@ def search = node.client.search {
|
||||
--------------------------------------------------
|
||||
|
||||
Query string (see
|
||||
link:{ref}/query-dsl-query-string-query.html[query string]):
|
||||
{ref}/query-dsl-query-string-query.html[query string]):
|
||||
|
||||
[source,js]
|
||||
--------------------------------------------------
|
||||
@ -78,7 +78,7 @@ def search = node.client.search {
|
||||
--------------------------------------------------
|
||||
|
||||
Pagination (see
|
||||
link:{ref}/search-request-from-size.html[from/size]):
|
||||
{ref}/search-request-from-size.html[from/size]):
|
||||
|
||||
[source,js]
|
||||
--------------------------------------------------
|
||||
@ -95,7 +95,7 @@ def search = node.client.search {
|
||||
}
|
||||
--------------------------------------------------
|
||||
|
||||
Sorting (see link:{ref}/search-request-sort.html[sort]):
|
||||
Sorting (see {ref}/search-request-sort.html[sort]):
|
||||
|
||||
[source,js]
|
||||
--------------------------------------------------
|
||||
|
@ -4,7 +4,7 @@
|
||||
The count API allows to easily execute a query and get the number of
|
||||
matches for that query. It can be executed across one or more indices
|
||||
and across one or more types. The query can be provided using the
|
||||
link:{ref}/query-dsl.html[Query DSL].
|
||||
{ref}/query-dsl.html[Query DSL].
|
||||
|
||||
[source,java]
|
||||
--------------------------------------------------
|
||||
@ -18,7 +18,7 @@ CountResponse response = client.prepareCount("test")
|
||||
--------------------------------------------------
|
||||
|
||||
For more information on the count operation, check out the REST
|
||||
link:{ref}/search-count.html[count] docs.
|
||||
{ref}/search-count.html[count] docs.
|
||||
|
||||
|
||||
=== Operation Threading
|
||||
|
@ -17,5 +17,5 @@ DeleteByQueryResponse response = client.prepareDeleteByQuery("test")
|
||||
--------------------------------------------------
|
||||
|
||||
For more information on the delete by query operation, check out the
|
||||
link:{ref}/docs-delete-by-query.html[delete_by_query API]
|
||||
{ref}/docs-delete-by-query.html[delete_by_query API]
|
||||
docs.
|
||||
|
@ -14,7 +14,7 @@ DeleteResponse response = client.prepareDelete("twitter", "tweet", "1")
|
||||
--------------------------------------------------
|
||||
|
||||
For more information on the delete operation, check out the
|
||||
link:{ref}/docs-delete.html[delete API] docs.
|
||||
{ref}/docs-delete.html[delete API] docs.
|
||||
|
||||
|
||||
=== Operation Threading
|
||||
|
@ -2,7 +2,7 @@
|
||||
== Facets
|
||||
|
||||
Elasticsearch provides a full Java API to play with facets. See the
|
||||
link:{ref}/search-facets.html[Facets guide].
|
||||
{ref}/search-facets.html[Facets guide].
|
||||
|
||||
Use the factory for facet builders (`FacetBuilders`) and add each facet
|
||||
you want to compute when querying and add it to your search request:
|
||||
@ -16,7 +16,7 @@ SearchResponse sr = node.client().prepareSearch()
|
||||
--------------------------------------------------
|
||||
|
||||
Note that you can add more than one facet. See
|
||||
link:{ref}/search-search.html[Search Java API] for details.
|
||||
{ref}/search-search.html[Search Java API] for details.
|
||||
|
||||
To build facet requests, use `FacetBuilders` helpers. Just import them
|
||||
in your class:
|
||||
@ -33,7 +33,7 @@ import org.elasticsearch.search.facet.FacetBuilders.*;
|
||||
==== Terms Facet
|
||||
|
||||
Here is how you can use
|
||||
link:{ref}/search-facets-terms-facet.html[Terms Facet]
|
||||
{ref}/search-facets-terms-facet.html[Terms Facet]
|
||||
with Java API.
|
||||
|
||||
|
||||
@ -78,7 +78,7 @@ for (TermsFacet.Entry entry : f) {
|
||||
==== Range Facet
|
||||
|
||||
Here is how you can use
|
||||
link:{ref}/search-facets-range-facet.html[Range Facet]
|
||||
{ref}/search-facets-range-facet.html[Range Facet]
|
||||
with Java API.
|
||||
|
||||
|
||||
@ -126,7 +126,7 @@ for (RangeFacet.Entry entry : f) {
|
||||
==== Histogram Facet
|
||||
|
||||
Here is how you can use
|
||||
link:{ref}/search-facets-histogram-facet.html[Histogram
|
||||
{ref}/search-facets-histogram-facet.html[Histogram
|
||||
Facet] with Java API.
|
||||
|
||||
|
||||
@ -167,7 +167,7 @@ for (HistogramFacet.Entry entry : f) {
|
||||
==== Date Histogram Facet
|
||||
|
||||
Here is how you can use
|
||||
link:{ref}/search-facets-date-histogram-facet.html[Date
|
||||
{ref}/search-facets-date-histogram-facet.html[Date
|
||||
Histogram Facet] with Java API.
|
||||
|
||||
|
||||
@ -209,7 +209,7 @@ for (DateHistogramFacet.Entry entry : f) {
|
||||
==== Filter Facet (not facet filter)
|
||||
|
||||
Here is how you can use
|
||||
link:{ref}/search-facets-filter-facet.html[Filter Facet]
|
||||
{ref}/search-facets-filter-facet.html[Filter Facet]
|
||||
with Java API.
|
||||
|
||||
If you are looking on how to apply a filter to a facet, have a look at
|
||||
@ -251,7 +251,7 @@ f.getCount(); // Number of docs that matched
|
||||
==== Query Facet
|
||||
|
||||
Here is how you can use
|
||||
link:{ref}/search-facets-query-facet.html[Query Facet]
|
||||
{ref}/search-facets-query-facet.html[Query Facet]
|
||||
with Java API.
|
||||
|
||||
|
||||
@ -290,7 +290,7 @@ learn how to build queries using Java.
|
||||
==== Statistical
|
||||
|
||||
Here is how you can use
|
||||
link:{ref}/search-facets-statistical-facet.html[Statistical
|
||||
{ref}/search-facets-statistical-facet.html[Statistical
|
||||
Facet] with Java API.
|
||||
|
||||
|
||||
@ -333,7 +333,7 @@ f.getVariance(); // Variance
|
||||
==== Terms Stats Facet
|
||||
|
||||
Here is how you can use
|
||||
link:{ref}/search-facets-terms-stats-facet.html[Terms
|
||||
{ref}/search-facets-terms-stats-facet.html[Terms
|
||||
Stats Facet] with Java API.
|
||||
|
||||
|
||||
@ -381,7 +381,7 @@ for (TermsStatsFacet.Entry entry : f) {
|
||||
==== Geo Distance Facet
|
||||
|
||||
Here is how you can use
|
||||
link:{ref}/search-facets-geo-distance-facet.html[Geo
|
||||
{ref}/search-facets-geo-distance-facet.html[Geo
|
||||
Distance Facet] with Java API.
|
||||
|
||||
|
||||
|
@ -13,7 +13,7 @@ GetResponse response = client.prepareGet("twitter", "tweet", "1")
|
||||
--------------------------------------------------
|
||||
|
||||
For more information on the index operation, check out the REST
|
||||
link:{ref}/docs-get.html[get] docs.
|
||||
{ref}/docs-get.html[get] docs.
|
||||
|
||||
|
||||
=== Operation Threading
|
||||
|
@ -29,7 +29,7 @@ directly constructs a `byte[]`.
|
||||
|
||||
Nothing really difficult here but note that you will have to encode
|
||||
dates regarding to the
|
||||
link:{ref}/mapping-date-format.html[Date Format].
|
||||
{ref}/mapping-date-format.html[Date Format].
|
||||
|
||||
[source,java]
|
||||
--------------------------------------------------
|
||||
@ -185,7 +185,7 @@ List<String> matches = response.matches();
|
||||
--------------------------------------------------
|
||||
|
||||
For more information on the index operation, check out the REST
|
||||
link:{ref}/docs-index_.html[index] docs.
|
||||
{ref}/docs-index_.html[index] docs.
|
||||
|
||||
|
||||
=== Operation Threading
|
||||
|
@ -2,7 +2,7 @@
|
||||
== Query DSL - Filters
|
||||
|
||||
elasticsearch provides a full Java query dsl in a similar manner to the
|
||||
REST link:{ref}/query-dsl.html[Query DSL]. The factory for filter
|
||||
REST {ref}/query-dsl.html[Query DSL]. The factory for filter
|
||||
builders is `FilterBuilders`.
|
||||
|
||||
Once your query is ready, you can use the <<search,Search API>>.
|
||||
@ -22,7 +22,7 @@ Note that you can easily print (aka debug) JSON generated queries using
|
||||
|
||||
=== And Filter
|
||||
|
||||
See link:{ref}/query-dsl-and-filter.html[And Filter]
|
||||
See {ref}/query-dsl-and-filter.html[And Filter]
|
||||
|
||||
|
||||
[source,java]
|
||||
@ -39,7 +39,7 @@ Note that you can cache the result using
|
||||
|
||||
=== Bool Filter
|
||||
|
||||
See link:{ref}/query-dsl-bool-filter.html[Bool Filter]
|
||||
See {ref}/query-dsl-bool-filter.html[Bool Filter]
|
||||
|
||||
|
||||
[source,java]
|
||||
@ -57,7 +57,7 @@ Note that you can cache the result using
|
||||
|
||||
=== Exists Filter
|
||||
|
||||
See link:{ref}/query-dsl-exists-filter.html[Exists Filter].
|
||||
See {ref}/query-dsl-exists-filter.html[Exists Filter].
|
||||
|
||||
|
||||
[source,java]
|
||||
@ -68,7 +68,7 @@ FilterBuilders.existsFilter("user");
|
||||
|
||||
=== Ids Filter
|
||||
|
||||
See link:{ref}/query-dsl-ids-filter.html[IDs Filter]
|
||||
See {ref}/query-dsl-ids-filter.html[IDs Filter]
|
||||
|
||||
|
||||
[source,java]
|
||||
@ -82,7 +82,7 @@ FilterBuilders.idsFilter().addIds("1", "4", "100");
|
||||
|
||||
=== Limit Filter
|
||||
|
||||
See link:{ref}/query-dsl-limit-filter.html[Limit Filter]
|
||||
See {ref}/query-dsl-limit-filter.html[Limit Filter]
|
||||
|
||||
|
||||
[source,java]
|
||||
@ -93,7 +93,7 @@ FilterBuilders.limitFilter(100);
|
||||
|
||||
=== Type Filter
|
||||
|
||||
See link:{ref}/query-dsl-type-filter.html[Type Filter]
|
||||
See {ref}/query-dsl-type-filter.html[Type Filter]
|
||||
|
||||
|
||||
[source,java]
|
||||
@ -104,7 +104,7 @@ FilterBuilders.typeFilter("my_type");
|
||||
|
||||
=== Geo Bounding Box Filter
|
||||
|
||||
See link:{ref}/query-dsl-geo-bounding-box-filter.html[Geo
|
||||
See {ref}/query-dsl-geo-bounding-box-filter.html[Geo
|
||||
Bounding Box Filter]
|
||||
|
||||
[source,java]
|
||||
@ -121,7 +121,7 @@ Note that you can cache the result using
|
||||
|
||||
=== GeoDistance Filter
|
||||
|
||||
See link:{ref}/query-dsl-geo-distance-filter.html[Geo
|
||||
See {ref}/query-dsl-geo-distance-filter.html[Geo
|
||||
Distance Filter]
|
||||
|
||||
[source,java]
|
||||
@ -140,7 +140,7 @@ Note that you can cache the result using
|
||||
|
||||
=== Geo Distance Range Filter
|
||||
|
||||
See link:{ref}/query-dsl-geo-distance-range-filter.html[Geo
|
||||
See {ref}/query-dsl-geo-distance-range-filter.html[Geo
|
||||
Distance Range Filter]
|
||||
|
||||
[source,java]
|
||||
@ -162,7 +162,7 @@ Note that you can cache the result using
|
||||
|
||||
=== Geo Polygon Filter
|
||||
|
||||
See link:{ref}/query-dsl-geo-polygon-filter.html[Geo Polygon
|
||||
See {ref}/query-dsl-geo-polygon-filter.html[Geo Polygon
|
||||
Filter]
|
||||
|
||||
[source,java]
|
||||
@ -180,7 +180,7 @@ Note that you can cache the result using
|
||||
|
||||
=== Geo Shape Filter
|
||||
|
||||
See link:{ref}/query-dsl-geo-shape-filter.html[Geo Shape
|
||||
See {ref}/query-dsl-geo-shape-filter.html[Geo Shape
|
||||
Filter]
|
||||
|
||||
Note: the `geo_shape` type uses `Spatial4J` and `JTS`, both of which are
|
||||
@ -240,8 +240,8 @@ filter = FilterBuilders.geoShapeFilter("location", "New Zealand", "countries")
|
||||
=== Has Child / Has Parent Filters
|
||||
|
||||
See:
|
||||
* link:{ref}/query-dsl-has-child-filter.html[Has Child Filter]
|
||||
* link:{ref}/query-dsl-has-parent-filter.html[Has Parent Filter]
|
||||
* {ref}/query-dsl-has-child-filter.html[Has Child Filter]
|
||||
* {ref}/query-dsl-has-parent-filter.html[Has Parent Filter]
|
||||
|
||||
[source,java]
|
||||
--------------------------------------------------
|
||||
@ -257,7 +257,7 @@ QFilterBuilders.hasParentFilter("blog",
|
||||
|
||||
=== Match All Filter
|
||||
|
||||
See link:{ref}/query-dsl-match-all-filter.html[Match All Filter]
|
||||
See {ref}/query-dsl-match-all-filter.html[Match All Filter]
|
||||
|
||||
[source,java]
|
||||
--------------------------------------------------
|
||||
@ -267,7 +267,7 @@ FilterBuilders.matchAllFilter();
|
||||
|
||||
=== Missing Filter
|
||||
|
||||
See link:{ref}/query-dsl-missing-filter.html[Missing Filter]
|
||||
See {ref}/query-dsl-missing-filter.html[Missing Filter]
|
||||
|
||||
|
||||
[source,java]
|
||||
@ -280,7 +280,7 @@ FilterBuilders.missingFilter("user")
|
||||
|
||||
=== Not Filter
|
||||
|
||||
See link:{ref}/query-dsl-not-filter.html[Not Filter]
|
||||
See {ref}/query-dsl-not-filter.html[Not Filter]
|
||||
|
||||
|
||||
[source,java]
|
||||
@ -292,7 +292,7 @@ FilterBuilders.notFilter(
|
||||
|
||||
=== Numeric Range Filter
|
||||
|
||||
See link:{ref}/query-dsl-numeric-range-filter.html[Numeric
|
||||
See {ref}/query-dsl-numeric-range-filter.html[Numeric
|
||||
Range Filter]
|
||||
|
||||
[source,java]
|
||||
@ -311,7 +311,7 @@ Note that you can cache the result using
|
||||
|
||||
=== Or Filter
|
||||
|
||||
See link:{ref}/query-dsl-or-filter.html[Or Filter]
|
||||
See {ref}/query-dsl-or-filter.html[Or Filter]
|
||||
|
||||
|
||||
[source,java]
|
||||
@ -328,7 +328,7 @@ Note that you can cache the result using
|
||||
|
||||
=== Prefix Filter
|
||||
|
||||
See link:{ref}/query-dsl-prefix-filter.html[Prefix Filter]
|
||||
See {ref}/query-dsl-prefix-filter.html[Prefix Filter]
|
||||
|
||||
|
||||
[source,java]
|
||||
@ -342,7 +342,7 @@ Note that you can cache the result using
|
||||
|
||||
=== Query Filter
|
||||
|
||||
See link:{ref}/query-dsl-query-filter.html[Query Filter]
|
||||
See {ref}/query-dsl-query-filter.html[Query Filter]
|
||||
|
||||
|
||||
[source,java]
|
||||
@ -358,7 +358,7 @@ Note that you can cache the result using
|
||||
|
||||
=== Range Filter
|
||||
|
||||
See link:{ref}/query-dsl-range-filter.html[Range Filter]
|
||||
See {ref}/query-dsl-range-filter.html[Range Filter]
|
||||
|
||||
|
||||
[source,java]
|
||||
@ -381,7 +381,7 @@ Note that you can ask not to cache the result using
|
||||
|
||||
=== Script Filter
|
||||
|
||||
See link:{ref}/query-dsl-script-filter.html[Script Filter]
|
||||
See {ref}/query-dsl-script-filter.html[Script Filter]
|
||||
|
||||
|
||||
[source,java]
|
||||
@ -397,7 +397,7 @@ Note that you can cache the result using
|
||||
|
||||
=== Term Filter
|
||||
|
||||
See link:{ref}/query-dsl-term-filter.html[Term Filter]
|
||||
See {ref}/query-dsl-term-filter.html[Term Filter]
|
||||
|
||||
|
||||
[source,java]
|
||||
@ -411,7 +411,7 @@ Note that you can ask not to cache the result using
|
||||
|
||||
=== Terms Filter
|
||||
|
||||
See link:{ref}/query-dsl-terms-filter.html[Terms Filter]
|
||||
See {ref}/query-dsl-terms-filter.html[Terms Filter]
|
||||
|
||||
|
||||
[source,java]
|
||||
@ -427,7 +427,7 @@ Note that you can ask not to cache the result using
|
||||
|
||||
=== Nested Filter
|
||||
|
||||
See link:{ref}/query-dsl-nested-filter.html[Nested Filter]
|
||||
See {ref}/query-dsl-nested-filter.html[Nested Filter]
|
||||
|
||||
|
||||
[source,java]
|
||||
|
@ -2,7 +2,7 @@
|
||||
== Query DSL - Queries
|
||||
|
||||
elasticsearch provides a full Java query dsl in a similar manner to the
|
||||
REST link:{ref}/query-dsl.html[Query DSL]. The factory for query
|
||||
REST {ref}/query-dsl.html[Query DSL]. The factory for query
|
||||
builders is `QueryBuilders`. Once your query is ready, you can use the
|
||||
<<search,Search API>>.
|
||||
|
||||
@ -24,7 +24,7 @@ such as `count` and `search`.
|
||||
|
||||
=== Match Query
|
||||
|
||||
See link:{ref}/query-dsl-match-query.html[Match Query]
|
||||
See {ref}/query-dsl-match-query.html[Match Query]
|
||||
|
||||
|
||||
[source,java]
|
||||
@ -35,7 +35,7 @@ QueryBuilder qb = QueryBuilders.matchQuery("name", "kimchy elasticsearch");
|
||||
|
||||
=== MultiMatch Query
|
||||
|
||||
See link:{ref}/query-dsl-multi-match-query.html[MultiMatch
|
||||
See {ref}/query-dsl-multi-match-query.html[MultiMatch
|
||||
Query]
|
||||
|
||||
[source,java]
|
||||
@ -49,7 +49,7 @@ QueryBuilder qb = QueryBuilders.multiMatchQuery(
|
||||
|
||||
=== Boolean Query
|
||||
|
||||
See link:{ref}/query-dsl-bool-query.html[Boolean Query]
|
||||
See {ref}/query-dsl-bool-query.html[Boolean Query]
|
||||
|
||||
|
||||
[source,java]
|
||||
@ -65,7 +65,7 @@ QueryBuilder qb = QueryBuilders
|
||||
|
||||
=== Boosting Query
|
||||
|
||||
See link:{ref}/query-dsl-boosting-query.html[Boosting Query]
|
||||
See {ref}/query-dsl-boosting-query.html[Boosting Query]
|
||||
|
||||
|
||||
[source,java]
|
||||
@ -79,7 +79,7 @@ QueryBuilders.boostingQuery()
|
||||
|
||||
=== IDs Query
|
||||
|
||||
See link:{ref}/query-dsl-ids-query.html[IDs Query]
|
||||
See {ref}/query-dsl-ids-query.html[IDs Query]
|
||||
|
||||
|
||||
[source,java]
|
||||
@ -90,7 +90,7 @@ QueryBuilders.idsQuery().ids("1", "2");
|
||||
|
||||
=== Custom Score Query
|
||||
|
||||
See link:{ref}/query-dsl-custom-score-query.html[Custom Score
|
||||
See {ref}/query-dsl-custom-score-query.html[Custom Score
|
||||
Query]
|
||||
|
||||
[source,java]
|
||||
@ -109,7 +109,7 @@ QueryBuilders.customScoreQuery(QueryBuilders.matchAllQuery())
|
||||
=== Custom Boost Factor Query
|
||||
|
||||
See
|
||||
link:{ref}/query-dsl-custom-boost-factor-query.html[Custom
|
||||
{ref}/query-dsl-custom-boost-factor-query.html[Custom
|
||||
Boost Factor Query]
|
||||
|
||||
[source,java]
|
||||
@ -121,7 +121,7 @@ QueryBuilders.customBoostFactorQuery(QueryBuilders.matchAllQuery()) // Your quer
|
||||
|
||||
=== Constant Score Query
|
||||
|
||||
See link:{ref}/query-dsl-constant-score-query.html[Constant
|
||||
See {ref}/query-dsl-constant-score-query.html[Constant
|
||||
Score Query]
|
||||
|
||||
[source,java]
|
||||
@ -138,7 +138,7 @@ QueryBuilders.constantScoreQuery(QueryBuilders.termQuery("name","kimchy"))
|
||||
|
||||
=== Disjunction Max Query
|
||||
|
||||
See link:{ref}/query-dsl-dis-max-query.html[Disjunction Max
|
||||
See {ref}/query-dsl-dis-max-query.html[Disjunction Max
|
||||
Query]
|
||||
|
||||
[source,java]
|
||||
@ -153,7 +153,7 @@ QueryBuilders.disMaxQuery()
|
||||
|
||||
=== Field Query
|
||||
|
||||
See link:{ref}/query-dsl-field-query.html[Field Query]
|
||||
See {ref}/query-dsl-field-query.html[Field Query]
|
||||
|
||||
|
||||
[source,java]
|
||||
@ -168,8 +168,8 @@ QueryBuilders.queryString("+kimchy -dadoonet").field("name");
|
||||
=== Fuzzy Like This (Field) Query (flt and flt_field)
|
||||
|
||||
See:
|
||||
* link:{ref}/query-dsl-flt-query.html[Fuzzy Like This Query]
|
||||
* link:{ref}/query-dsl-flt-field-query.html[Fuzzy Like This Field Query]
|
||||
* {ref}/query-dsl-flt-query.html[Fuzzy Like This Query]
|
||||
* {ref}/query-dsl-flt-field-query.html[Fuzzy Like This Field Query]
|
||||
|
||||
[source,java]
|
||||
--------------------------------------------------
|
||||
@ -188,7 +188,7 @@ QueryBuilders.fuzzyLikeThisFieldQuery("name.first") // Only on singl
|
||||
|
||||
=== FuzzyQuery
|
||||
|
||||
See link:{ref}/query-dsl-fuzzy-query.html[Fuzzy Query]
|
||||
See {ref}/query-dsl-fuzzy-query.html[Fuzzy Query]
|
||||
|
||||
|
||||
[source,java]
|
||||
@ -200,8 +200,8 @@ QueryBuilder qb = QueryBuilders.fuzzyQuery("name", "kimzhy");
|
||||
=== Has Child / Has Parent
|
||||
|
||||
See:
|
||||
* link:{ref}/query-dsl-has-child-query.html[Has Child Query]
|
||||
* link:{ref}/query-dsl-has-parent-query.html[Has Parent]
|
||||
* {ref}/query-dsl-has-child-query.html[Has Child Query]
|
||||
* {ref}/query-dsl-has-parent-query.html[Has Parent]
|
||||
|
||||
[source,java]
|
||||
--------------------------------------------------
|
||||
@ -217,7 +217,7 @@ QueryBuilders.hasParentQuery("blog",
|
||||
|
||||
=== MatchAll Query
|
||||
|
||||
See link:{ref}/query-dsl-match-all-query.html[Match All
|
||||
See {ref}/query-dsl-match-all-query.html[Match All
|
||||
Query]
|
||||
|
||||
[source,java]
|
||||
@ -229,8 +229,8 @@ QueryBuilder qb = QueryBuilders.matchAllQuery();
|
||||
=== Fuzzy Like This (Field) Query (flt and flt_field)
|
||||
|
||||
See:
|
||||
* link:{ref}/query-dsl-mlt-query.html[More Like This Query]
|
||||
* link:{ref}/query-dsl-mlt-field-query.html[More Like This Field Query]
|
||||
* {ref}/query-dsl-mlt-query.html[More Like This Query]
|
||||
* {ref}/query-dsl-mlt-field-query.html[More Like This Field Query]
|
||||
|
||||
[source,java]
|
||||
--------------------------------------------------
|
||||
@ -251,7 +251,7 @@ QueryBuilders.moreLikeThisFieldQuery("name.first") // Only on singl
|
||||
|
||||
=== Prefix Query
|
||||
|
||||
See link:{ref}/query-dsl-prefix-query.html[Prefix Query]
|
||||
See {ref}/query-dsl-prefix-query.html[Prefix Query]
|
||||
|
||||
[source,java]
|
||||
--------------------------------------------------
|
||||
@ -261,7 +261,7 @@ QueryBuilders.prefixQuery("brand", "heine");
|
||||
|
||||
=== QueryString Query
|
||||
|
||||
See link:{ref}/query-dsl-query-string-query.html[QueryString Query]
|
||||
See {ref}/query-dsl-query-string-query.html[QueryString Query]
|
||||
|
||||
[source,java]
|
||||
--------------------------------------------------
|
||||
@ -271,7 +271,7 @@ QueryBuilder qb = QueryBuilders.queryString("+kimchy -elasticsearch");
|
||||
|
||||
=== Range Query
|
||||
|
||||
See link:{ref}/query-dsl-range-query.html[Range Query]
|
||||
See {ref}/query-dsl-range-query.html[Range Query]
|
||||
|
||||
[source,java]
|
||||
--------------------------------------------------
|
||||
@ -287,11 +287,11 @@ QueryBuilder qb = QueryBuilders
|
||||
=== Span Queries (first, near, not, or, term)
|
||||
|
||||
See:
|
||||
* link:{ref}/query-dsl-span-first-query.html[Span First Query]
|
||||
* link:{ref}/query-dsl-span-near-query.html[Span Near Query]
|
||||
* link:{ref}/query-dsl-span-not-query.html[Span Not Query]
|
||||
* link:{ref}/query-dsl-span-or-query.html[Span Or Query]
|
||||
* link:{ref}/query-dsl-span-term-query.html[Span Term Query]
|
||||
* {ref}/query-dsl-span-first-query.html[Span First Query]
|
||||
* {ref}/query-dsl-span-near-query.html[Span Near Query]
|
||||
* {ref}/query-dsl-span-not-query.html[Span Not Query]
|
||||
* {ref}/query-dsl-span-or-query.html[Span Or Query]
|
||||
* {ref}/query-dsl-span-term-query.html[Span Term Query]
|
||||
|
||||
[source,java]
|
||||
--------------------------------------------------
|
||||
@ -328,7 +328,7 @@ QueryBuilders.spanTermQuery("user","kimchy");
|
||||
|
||||
=== Term Query
|
||||
|
||||
See link:{ref}/query-dsl-term-query.html[Term Query]
|
||||
See {ref}/query-dsl-term-query.html[Term Query]
|
||||
|
||||
[source,java]
|
||||
--------------------------------------------------
|
||||
@ -338,7 +338,7 @@ QueryBuilder qb = QueryBuilders.termQuery("name", "kimchy");
|
||||
|
||||
=== Terms Query
|
||||
|
||||
See link:{ref}/query-dsl-terms-query.html[Terms Query]
|
||||
See {ref}/query-dsl-terms-query.html[Terms Query]
|
||||
|
||||
[source,java]
|
||||
--------------------------------------------------
|
||||
@ -350,7 +350,7 @@ QueryBuilders.termsQuery("tags", // field
|
||||
|
||||
=== Top Children Query
|
||||
|
||||
See link:{ref}/query-dsl-top-children-query.html[Top Children Query]
|
||||
See {ref}/query-dsl-top-children-query.html[Top Children Query]
|
||||
|
||||
[source,java]
|
||||
--------------------------------------------------
|
||||
@ -366,7 +366,7 @@ QueryBuilders.topChildrenQuery(
|
||||
|
||||
=== Wildcard Query
|
||||
|
||||
See link:{ref}/query-dsl-wildcard-query.html[Wildcard Query]
|
||||
See {ref}/query-dsl-wildcard-query.html[Wildcard Query]
|
||||
|
||||
|
||||
[source,java]
|
||||
@ -377,7 +377,7 @@ QueryBuilders.wildcardQuery("user", "k?mc*");
|
||||
|
||||
=== Nested Query
|
||||
|
||||
See link:{ref}/query-dsl-nested-query.html[Nested Query]
|
||||
See {ref}/query-dsl-nested-query.html[Nested Query]
|
||||
|
||||
|
||||
[source,java]
|
||||
@ -394,7 +394,7 @@ QueryBuilders.nestedQuery("obj1", // Path
|
||||
=== Custom Filters Score Query
|
||||
|
||||
See
|
||||
link:{ref}/query-dsl-custom-filters-score-query.html[Custom Filters Score Query]
|
||||
{ref}/query-dsl-custom-filters-score-query.html[Custom Filters Score Query]
|
||||
|
||||
[source,java]
|
||||
--------------------------------------------------
|
||||
@ -409,7 +409,7 @@ QueryBuilders.customFiltersScoreQuery(
|
||||
|
||||
=== Indices Query
|
||||
|
||||
See link:{ref}/query-dsl-indices-query.html[Indices Query]
|
||||
See {ref}/query-dsl-indices-query.html[Indices Query]
|
||||
|
||||
|
||||
[source,java]
|
||||
@ -432,7 +432,7 @@ QueryBuilders.indicesQuery(
|
||||
|
||||
=== GeoShape Query
|
||||
|
||||
See link:{ref}/query-dsl-geo-shape-query.html[GeoShape Query]
|
||||
See {ref}/query-dsl-geo-shape-query.html[GeoShape Query]
|
||||
|
||||
|
||||
Note: the `geo_shape` type uses `Spatial4J` and `JTS`, both of which are
|
||||
|
@ -39,12 +39,12 @@ SearchResponse response = client.prepareSearch().execute().actionGet();
|
||||
--------------------------------------------------
|
||||
|
||||
For more information on the search operation, check out the REST
|
||||
link:{ref}/search.html[search] docs.
|
||||
{ref}/search.html[search] docs.
|
||||
|
||||
|
||||
=== Using scrolls in Java
|
||||
|
||||
Read the link:{ref}/search-request-scroll.html[scroll documentation]
|
||||
Read the {ref}/search-request-scroll.html[scroll documentation]
|
||||
first!
|
||||
|
||||
[source,java]
|
||||
@ -92,7 +92,7 @@ The default mode is `SINGLE_THREAD`.
|
||||
|
||||
=== MultiSearch API
|
||||
|
||||
See link:{ref}/search-multi-search.html[MultiSearch API Query]
|
||||
See {ref}/search-multi-search.html[MultiSearch API Query]
|
||||
documentation
|
||||
|
||||
[source,java]
|
||||
|
Loading…
x
Reference in New Issue
Block a user