OpenSearch/docs/reference/query-dsl/queries
Alex Ksikes 4da407a869 MLT Query: versatile 'like' parameter
The MLT query has a lot of parameters. For example, a set of documents is
specified with either `like_text`, `ids` or `docs`, with at least one
parameter required. This commit groups all the document specification
parameters under one called `like`. The syntax is described below and could
easily be extended to allow for new means of specifying document input. The
`like_text`, `ids` and `docs` parameters are deprecated.

As a single piece text:

{
  "query": {
    "more_like_this": {
      "like": "some text here"
    }
  }
}

As a single item:

{
  "query": {
    "more_like_this": {
      "like": {
        "_index": "imdb",
        "_type": "movies",
        "_id": "88247"
      }
    }
  }
}

Or as a mixture of all:

{
  "query": {
    "more_like_this": {
      "like": [
        "Some random text ...",
        {
          "_index": "imdb",
          "_type": "movies",
          "_id": "88247"
        },
        {
          "_index": "imdb",
          "_type": "movies",
          "doc": {
            "title": "Document with an artificial title!"
          }
        }
      ]
    }
  }
}

Closes #8039
2014-10-25 11:04:51 +02:00
..
bool-query.asciidoc Migrated documentation into the main repo 2013-08-29 01:24:34 +02:00
boosting-query.asciidoc Migrated documentation into the main repo 2013-08-29 01:24:34 +02:00
common-terms-query.asciidoc Migrated documentation into the main repo 2013-08-29 01:24:34 +02:00
constant-score-query.asciidoc Migrated documentation into the main repo 2013-08-29 01:24:34 +02:00
dis-max-query.asciidoc Migrated documentation into the main repo 2013-08-29 01:24:34 +02:00
filtered-query.asciidoc Docs: Update filtered-query.asciidoc 2014-10-21 09:45:19 +02:00
flt-field-query.asciidoc Rename edit_distance/min_similarity to fuzziness 2014-01-09 15:14:51 +01:00
flt-query.asciidoc Rename edit_distance/min_similarity to fuzziness 2014-01-09 15:14:51 +01:00
function-score-query.asciidoc Docs: Removed all the added/deprecated tags from 1.x 2014-09-26 21:04:42 +02:00
fuzzy-query.asciidoc [DOCS] Fixed the fuzzy query docs with correct default value max_expansion option 2014-06-05 19:52:12 +02:00
geo-shape-query.asciidoc [DOCS] Removed outdated new/deprecated version notices 2013-09-03 21:28:31 +02:00
has-child-query.asciidoc Adding "min" score mode to parent-child queries 2014-10-15 09:23:36 -05:00
has-parent-query.asciidoc Docs: Updated the explanation about memory usage with parent/child 2014-06-21 16:32:29 +02:00
ids-query.asciidoc Migrated documentation into the main repo 2013-08-29 01:24:34 +02:00
indices-query.asciidoc Removed 0.90.* deprecation and addition notifications 2014-02-07 20:52:49 +01:00
match-all-query.asciidoc Migrated documentation into the main repo 2013-08-29 01:24:34 +02:00
match-query.asciidoc Fixed a typo 2014-08-14 16:27:30 +02:00
minimum-should-match.asciidoc Docs: Update minimum-should-match.asciidoc 2014-10-21 09:43:55 +02:00
mlt-field-query.asciidoc MLT Query: use minimum should match more extensive syntax 2014-09-29 11:14:56 +02:00
mlt-query.asciidoc MLT Query: versatile 'like' parameter 2014-10-25 11:04:51 +02:00
multi-match-query.asciidoc Docs: cross_type query needs to be cross_fields 2014-10-15 18:27:48 +02:00
multi-term-rewrite.asciidoc Migrated documentation into the main repo 2013-08-29 01:24:34 +02:00
nested-query.asciidoc Update nested-query.asciidoc 2014-07-26 22:32:28 +02:00
prefix-query.asciidoc Docs: Update prefix-query.asciidoc 2014-09-07 11:32:05 +02:00
query-string-query.asciidoc Add time_zone setting for query_string 2014-10-20 19:09:45 +02:00
query-string-syntax.asciidoc Docs: Update query-string-syntax.asciidoc 2014-07-23 16:32:32 +02:00
range-query.asciidoc Search: add `format` support for date range filter and queries 2014-10-06 15:59:18 +02:00
regexp-query.asciidoc Docs: Add clarifying text about regexp and terms 2014-07-03 11:39:57 +02:00
regexp-syntax.asciidoc Docs: Update regexp-syntax.asciidoc 2014-09-07 11:42:33 +02:00
simple-query-string-query.asciidoc Docs: Removed all the added/deprecated tags from 1.x 2014-09-26 21:04:42 +02:00
span-first-query.asciidoc Migrated documentation into the main repo 2013-08-29 01:24:34 +02:00
span-multi-term-query.asciidoc RegexpQueryBuilder now implements MultiTermQueryBuilder 2013-10-31 09:12:57 +01:00
span-near-query.asciidoc Migrated documentation into the main repo 2013-08-29 01:24:34 +02:00
span-not-query.asciidoc Docs: Update span-not-query.asciidoc 2014-09-07 11:28:19 +02:00
span-or-query.asciidoc Migrated documentation into the main repo 2013-08-29 01:24:34 +02:00
span-term-query.asciidoc Migrated documentation into the main repo 2013-08-29 01:24:34 +02:00
template-query.asciidoc Docs: Removed all the added/deprecated tags from 1.x 2014-09-26 21:04:42 +02:00
term-query.asciidoc Migrated documentation into the main repo 2013-08-29 01:24:34 +02:00
terms-query.asciidoc Migrated documentation into the main repo 2013-08-29 01:24:34 +02:00
top-children-query.asciidoc Facets: Removal from master. 2014-08-21 10:34:39 +02:00
wildcard-query.asciidoc Migrated documentation into the main repo 2013-08-29 01:24:34 +02:00