mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-06 04:58:50 +00:00
We've had `QueryDSLDocumentationTests` for a while but it had a very hopeful comment at the top about how we want to make sure that the example in the query-dsl docs match up with the test but we never had anything that made *sure* that they did. This changes that! Now the examples from the query-dsl docs are all built from the `QueryDSLDocumentationTests`. All except for the percolator example because that is hard to do as it stands now. To make this easier this change moves `QueryDSLDocumentationTests` from core and into the high level rest client. This is useful for two reasons: 1. We expect the high level rest client to be able to use the builders. 2. The code that builds that docs doesn't check out all of Elasticsearch. It only checks out certain directories. Since we're already including snippets from that directory we don't have to make any changes to that process. Closes #24320
14 lines
400 B
Plaintext
14 lines
400 B
Plaintext
[[java-query-dsl-mlt-query]]
|
|
==== More Like This Query
|
|
|
|
See {ref}/query-dsl-mlt-query.html[More Like This Query]
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
--------------------------------------------------
|
|
include-tagged::{query-dsl-test}[more_like_this]
|
|
--------------------------------------------------
|
|
<1> fields
|
|
<2> text
|
|
<3> ignore threshold
|
|
<4> max num of Terms in generated queries
|