mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-05 20:48:22 +00:00
27cc2fe4dc
Significant changes: * AbstractQueryTestCase has moved to the test framework module, in order for query builder tests in modules and plugins * Added support to AbstractQueryTestCase to register plugins * Lift the restriction that only one percolator could be added per index. This validation existed in MapperService, but because the percolator moved to a module it could no longer exist there. Instead of bringing it back it was removed. This validation existed since the percolator cache only supported one percolator query per document, since the percolator cache has been removed this restriction could removed as well. * While moving percolator tests to the new module, also removed a couple of tests for the deprecated percolate and mpercolate api. These APIs are now sugar APIs for bwc and rediect to the searvh and msearvh APIs. Some tests were still testing as if percolate and mpercolate API did the percolation, but this no longer the case and these tests could be removed.
35 lines
942 B
Plaintext
35 lines
942 B
Plaintext
[[java-specialized-queries]]
|
|
|
|
=== Specialized queries
|
|
|
|
This group contains queries which do not fit into the other groups:
|
|
|
|
<<java-query-dsl-mlt-query,`more_like_this` query>>::
|
|
|
|
This query finds documents which are similar to the specified text, document,
|
|
or collection of documents.
|
|
|
|
<<java-query-dsl-template-query,`template` query>>::
|
|
|
|
The `template` query accepts a Mustache template (either inline, indexed, or
|
|
from a file), and a map of parameters, and combines the two to generate the
|
|
final query to execute.
|
|
|
|
<<java-query-dsl-script-query,`script` query>>::
|
|
|
|
This query allows a script to act as a filter. Also see the
|
|
<<java-query-dsl-function-score-query,`function_score` query>>.
|
|
|
|
<<java-query-percolate-query,`percolate` query>>::
|
|
|
|
This query finds percolator queries based on documents.
|
|
|
|
include::mlt-query.asciidoc[]
|
|
|
|
include::template-query.asciidoc[]
|
|
|
|
include::script-query.asciidoc[]
|
|
|
|
include::percolate-query.asciidoc[]
|
|
|