More Like This

More Like This is equivalent to a search for similar documents to a given one.The search can be used either by submitting the encoded ID to the default search handler in the form of q=mlt:$ID or by using the dedicated endpoint (see below).

Normally the search response would contain mlt action URLs that link to the morelikethis search for every document (refer to Document fields).

Usage

The default more-like-this endpoint is /morelikethis. The mandatory parameter for this call is:

  • id: This is the encoded identifier of the document for which similar documents should be returned. This encoded form is automatically generated and returned when a document is retrieved – see section Document fields for details.

Optional parameters:

  • Monitoring parameters, like in the case of normal searches, are prepared and delivered by the search server in prepopulated action URLs – see section Common conventions for details.

Configuration

In the properties section of the configuration file the following properties are used to control the behavior of the More Like This search:

Property name Type Default value Description

search.config.mlt.similarityfields

String

sem_text_search

Name of the field(s) that is/are used to get MoreLikeThis results

search.config.mlt.doctype.field

String

-

Name of the Field that is used to restrict MoreLikeThis results to documents with the same value in this field.

Response

Elements of the Response

The main sections of the response are the same as in a normal search (refer to The search response). An additional field can be found in response:

  • maxScore: The maximal similarity score

Note that the documents under docs are ordered by decreasing similarity to the original document, and the score within each documents describes it’s similarity

Example

Try it out! 3 similar wines to the "2004 Domaine Prieur Brunet Jehanne de Chantal" are returned from the More like this endpoint at https://search-features.demos.contexity.ch/sl/morelikethis?id=SEML2VuLzIwMDRfZG9tYWluZV9wcmlldXJfYnJ1bmV0X2plaGFubmVfZGVfY2hhbnRhbA

The overall structure of an more-like-this response is as follows (see section A.3. Full more like this response for a full sample response)

Example of a mlt response
{
  "response": {
    "numFound": 3,
    "start": 0,
    "maxScore": 3.1117635,
    "numFoundExact": true,
    "docs": [
      {
        "wine_producer": "Domaine Gabriel Billard",
        "sem_text_search": [
          "Domaine Gabriel Billard",
          "France",
          "Red Wine",
          "Pommard wine",
          "2005 Domaine Gabriel Billard  \"Milliane\"  Bourgogne Rouge"
        ],
        "sem_text_suggest": [
          "Domaine Gabriel Billard",
          "France",
          "2005 Domaine Gabriel Billard  \"Milliane\"  Bourgogne Rouge"
        ],
        "sem_suggest_prefix": [
          "Domaine Gabriel Billard",
          "France",
          "2005 Domaine Gabriel Billard  \"Milliane\"  Bourgogne Rouge"
        ],
        "sem_suggest_phrase": [
          "Domaine Gabriel Billard",
          "France",
          "2005 Domaine Gabriel Billard  \"Milliane\"  Bourgogne Rouge"
        ],
        "wine_producer_id": "Domaine Gabriel Billard",
        "wine_sub_region": "Côte de Beaune",
        "country": "France",
        "/common/topic/image": [
          "Gabriel_billard.png"
        ],
        "id": "/m/02zznx2",
        "region": "Burgundy",
        "wine_type": "Still Wine",
        "wine_type_facet": "Still Wine",
        "percentage_alcohol": 12.5,
        "color": "Red Wine",
        "sem_grouping": "Red Wine",
        "color_facet": "Red Wine",
        "appellation": "Pommard wine",
        "appellation_facet": "Pommard wine",
        "vintage": 2005,
        "sem_location": "47.010269, 4.794092",
        "sem_location_latlng": "47.010269, 4.794092",
        "sem_title": "2005 Domaine Gabriel Billard  \"Milliane\"  Bourgogne Rouge",
        "sem_title_alpha": "2005 Domaine Gabriel Billard  \"Milliane\"  Bourgogne Rouge",
        "sem_url": "http://www.freebase.com/m/02zznx2",
        "sem_record_type": "wine",
        "sem_lang": "fr",
        "sem_timestamp": "2024-06-07T12:19:43.380Z",
        "score": 3.1117635,
        "color_document": [
          {
            "id": "Red Wine",
            "sem_title": "Red Wine",
            "sem_record_type": "color",
            "sem_url": "http://www.freebase.com/m/02wsb20"
          }
        ],
        "sem_actions": {
          "default": "goto",
          "goto": {
            "sem_url": "/sl/redirect?url=http%3A%2F%2Fwww.freebase.com%2Fm%2F02zznx2&id=SEML20vMDJ6em54Mg",
            "sem_url_action": "/sl/redirect?url=http%3A%2F%2Fwww.freebase.com%2Fm%2F02zznx2&id=SEML20vMDJ6em54Mg&ot.et=result&ot.est=serp-result-click&ot.q=id%3A%28%22Domaine+Prieur-Brunet%22+%22Domaine+Gabriel+Billard%22+%22Domaine+Daniel+Rion%22+%22Domaine+de+la+Roman%C3%A9e-Conti%22+%22%2Fm%2F02zznx2%22+%22%2Fm%2F03ggy82%22+%22%2Fen%2F1999_domaine_romanee_conti_la_tache%22%29&ot.es=source_serp&ot.nf=3&ot.s=0&ot.r=20&ot.rank=0&ot.sse=cc260008-5d4b-4cd0-be5e-e43296ffa3d5",
            "sem_url_logging": "/sl/log?url=http%3A%2F%2Fwww.freebase.com%2Fm%2F02zznx2&id=SEML20vMDJ6em54Mg&ot.et=result&ot.est=serp-result-click&ot.q=id%3A%28%22Domaine+Prieur-Brunet%22+%22Domaine+Gabriel+Billard%22+%22Domaine+Daniel+Rion%22+%22Domaine+de+la+Roman%C3%A9e-Conti%22+%22%2Fm%2F02zznx2%22+%22%2Fm%2F03ggy82%22+%22%2Fen%2F1999_domaine_romanee_conti_la_tache%22%29&ot.es=source_serp&ot.nf=3&ot.s=0&ot.r=20&ot.rank=0&ot.sse=cc260008-5d4b-4cd0-be5e-e43296ffa3d5",
            "sem_is_external": true
          },
          "fetch": {
            "sem_url": "/sl/record?id=SEML20vMDJ6em54Mg",
            "sem_url_action": "/sl/record?id=SEML20vMDJ6em54Mg&ot.et=result&ot.est=serp-result-click&ot.q=id%3A%28%22Domaine+Prieur-Brunet%22+%22Domaine+Gabriel+Billard%22+%22Domaine+Daniel+Rion%22+%22Domaine+de+la+Roman%C3%A9e-Conti%22+%22%2Fm%2F02zznx2%22+%22%2Fm%2F03ggy82%22+%22%2Fen%2F1999_domaine_romanee_conti_la_tache%22%29&ot.es=source_serp&ot.nf=3&ot.s=0&ot.r=20&ot.rank=0&ot.sse=cc260008-5d4b-4cd0-be5e-e43296ffa3d5",
            "sem_url_logging": "/sl/log?id=SEML20vMDJ6em54Mg&ot.et=result&ot.est=serp-result-click&ot.q=id%3A%28%22Domaine+Prieur-Brunet%22+%22Domaine+Gabriel+Billard%22+%22Domaine+Daniel+Rion%22+%22Domaine+de+la+Roman%C3%A9e-Conti%22+%22%2Fm%2F02zznx2%22+%22%2Fm%2F03ggy82%22+%22%2Fen%2F1999_domaine_romanee_conti_la_tache%22%29&ot.es=source_serp&ot.nf=3&ot.s=0&ot.r=20&ot.rank=0&ot.sse=cc260008-5d4b-4cd0-be5e-e43296ffa3d5"
          },
          "mlt": {
            "sem_url": "/sl/morelikethis?id=SEML20vMDJ6em54Mg",
            "sem_url_action": "/sl/morelikethis?id=SEML20vMDJ6em54Mg&ot.et=mlt&ot.est=mlt&ot.es=source_serp&ot.nf=3&ot.s=0&ot.r=20&ot.rank=0&ot.q=id%3A%28%22Domaine+Prieur-Brunet%22+%22Domaine+Gabriel+Billard%22+%22Domaine+Daniel+Rion%22+%22Domaine+de+la+Roman%C3%A9e-Conti%22+%22%2Fm%2F02zznx2%22+%22%2Fm%2F03ggy82%22+%22%2Fen%2F1999_domaine_romanee_conti_la_tache%22%29&ot.sse=cc260008-5d4b-4cd0-be5e-e43296ffa3d5"
          }
        },
        "sem_encoded_id": "SEML20vMDJ6em54Mg"
      },
      {
        "wine_producer": "Domaine de la Romanée-Conti",
        "sem_text_search": [
          "Domaine de la Romanée-Conti",
          "France",
          "Red Wine",
          "Vosne-Romanée",
          "La Tâche AOC",
          "1999 Domaine Romanee Conti La Tache"
        ],
        "sem_text_suggest": [
          "Domaine de la Romanée-Conti",
          "France",
          "La Tâche AOC",
          "1999 Domaine Romanee Conti La Tache"
        ],
        "sem_suggest_prefix": [
          "Domaine de la Romanée-Conti",
          "France",
          "La Tâche AOC",
          "1999 Domaine Romanee Conti La Tache"
        ],
        "sem_suggest_phrase": [
          "Domaine de la Romanée-Conti",
          "France",
          "La Tâche AOC",
          "1999 Domaine Romanee Conti La Tache"
        ],
        "wine_producer_id": "Domaine de la Romanée-Conti",
        "wine_sub_region": "Côte de Nuits",
        "wine_style": [
          "Red Burgundy"
        ],
        "wine_style_facet": "Red Burgundy",
        "fruit_source": "Producer owned",
        "country": "France",
        "/common/topic/image": [
          "DRC99LaTache.JPG"
        ],
        "id": "/en/1999_domaine_romanee_conti_la_tache",
        "region": "Burgundy",
        "wine_type": "Still Wine",
        "wine_type_facet": "Still Wine",
        "percentage_alcohol": 13.5,
        "color": "Red Wine",
        "sem_grouping": "Red Wine",
        "color_facet": "Red Wine",
        "appellation": "Vosne-Romanée",
        "appellation_facet": "Vosne-Romanée",
        "vintage_hierachy": "Old:1999",
        "vintage": 1999,
        "vineyard": "La Tâche AOC",
        "sem_location": "47.161664, 4.955435",
        "sem_location_latlng": "47.161664, 4.955435",
        "sem_publication_date": "2017-05-29T16:33:28.258Z",
        "sem_opening_hours": [
          "1701010000 2501010000"
        ],
        "sem_title": "1999 Domaine Romanee Conti La Tache",
        "sem_title_alpha": "1999 Domaine Romanee Conti La Tache",
        "sem_record_type": "wine",
        "sem_lang": "it",
        "sem_timestamp": "2024-06-07T12:19:43.380Z",
        "score": 3.1117635,
        "color_document": [
          {
            "id": "Red Wine",
            "sem_title": "Red Wine",
            "sem_record_type": "color",
            "sem_url": "http://www.freebase.com/m/02wsb20"
          }
        ],
        "sem_actions": {
          "default": "goto",
          "goto": {
            "sem_url": "/sl/record?id=SEML2VuLzE5OTlfZG9tYWluZV9yb21hbmVlX2NvbnRpX2xhX3RhY2hl",
            "sem_url_action": "/sl/record?id=SEML2VuLzE5OTlfZG9tYWluZV9yb21hbmVlX2NvbnRpX2xhX3RhY2hl&ot.et=result&ot.est=serp-result-click&ot.q=id%3A%28%22Domaine+Prieur-Brunet%22+%22Domaine+Gabriel+Billard%22+%22Domaine+Daniel+Rion%22+%22Domaine+de+la+Roman%C3%A9e-Conti%22+%22%2Fm%2F02zznx2%22+%22%2Fm%2F03ggy82%22+%22%2Fen%2F1999_domaine_romanee_conti_la_tache%22%29&ot.es=source_serp&ot.nf=3&ot.s=0&ot.r=20&ot.rank=1&ot.sse=cc260008-5d4b-4cd0-be5e-e43296ffa3d5",
            "sem_url_logging": "/sl/log?id=SEML2VuLzE5OTlfZG9tYWluZV9yb21hbmVlX2NvbnRpX2xhX3RhY2hl&ot.et=result&ot.est=serp-result-click&ot.q=id%3A%28%22Domaine+Prieur-Brunet%22+%22Domaine+Gabriel+Billard%22+%22Domaine+Daniel+Rion%22+%22Domaine+de+la+Roman%C3%A9e-Conti%22+%22%2Fm%2F02zznx2%22+%22%2Fm%2F03ggy82%22+%22%2Fen%2F1999_domaine_romanee_conti_la_tache%22%29&ot.es=source_serp&ot.nf=3&ot.s=0&ot.r=20&ot.rank=1&ot.sse=cc260008-5d4b-4cd0-be5e-e43296ffa3d5",
            "sem_is_external": false
          },
          "fetch": {
            "sem_url": "/sl/record?id=SEML2VuLzE5OTlfZG9tYWluZV9yb21hbmVlX2NvbnRpX2xhX3RhY2hl",
            "sem_url_action": "/sl/record?id=SEML2VuLzE5OTlfZG9tYWluZV9yb21hbmVlX2NvbnRpX2xhX3RhY2hl&ot.et=result&ot.est=serp-result-click&ot.q=id%3A%28%22Domaine+Prieur-Brunet%22+%22Domaine+Gabriel+Billard%22+%22Domaine+Daniel+Rion%22+%22Domaine+de+la+Roman%C3%A9e-Conti%22+%22%2Fm%2F02zznx2%22+%22%2Fm%2F03ggy82%22+%22%2Fen%2F1999_domaine_romanee_conti_la_tache%22%29&ot.es=source_serp&ot.nf=3&ot.s=0&ot.r=20&ot.rank=1&ot.sse=cc260008-5d4b-4cd0-be5e-e43296ffa3d5",
            "sem_url_logging": "/sl/log?id=SEML2VuLzE5OTlfZG9tYWluZV9yb21hbmVlX2NvbnRpX2xhX3RhY2hl&ot.et=result&ot.est=serp-result-click&ot.q=id%3A%28%22Domaine+Prieur-Brunet%22+%22Domaine+Gabriel+Billard%22+%22Domaine+Daniel+Rion%22+%22Domaine+de+la+Roman%C3%A9e-Conti%22+%22%2Fm%2F02zznx2%22+%22%2Fm%2F03ggy82%22+%22%2Fen%2F1999_domaine_romanee_conti_la_tache%22%29&ot.es=source_serp&ot.nf=3&ot.s=0&ot.r=20&ot.rank=1&ot.sse=cc260008-5d4b-4cd0-be5e-e43296ffa3d5"
          },
          "mlt": {
            "sem_url": "/sl/morelikethis?id=SEML2VuLzE5OTlfZG9tYWluZV9yb21hbmVlX2NvbnRpX2xhX3RhY2hl",
            "sem_url_action": "/sl/morelikethis?id=SEML2VuLzE5OTlfZG9tYWluZV9yb21hbmVlX2NvbnRpX2xhX3RhY2hl&ot.et=mlt&ot.est=mlt&ot.es=source_serp&ot.nf=3&ot.s=0&ot.r=20&ot.rank=1&ot.q=id%3A%28%22Domaine+Prieur-Brunet%22+%22Domaine+Gabriel+Billard%22+%22Domaine+Daniel+Rion%22+%22Domaine+de+la+Roman%C3%A9e-Conti%22+%22%2Fm%2F02zznx2%22+%22%2Fm%2F03ggy82%22+%22%2Fen%2F1999_domaine_romanee_conti_la_tache%22%29&ot.sse=cc260008-5d4b-4cd0-be5e-e43296ffa3d5"
          }
        },
        "sem_encoded_id": "SEML2VuLzE5OTlfZG9tYWluZV9yb21hbmVlX2NvbnRpX2xhX3RhY2hl"
      },
      {
        "wine_producer": "Domaine Daniel Rion",
        "sem_text_search": [
          "Domaine Daniel Rion",
          "France",
          "Red Wine",
          "Le Vaucrain",
          "2005 Domaine Daniel Rion Le Vaucrain, Côte de Nuits-Villages"
        ],
        "sem_text_suggest": [
          "Domaine Daniel Rion",
          "France",
          "Le Vaucrain",
          "2005 Domaine Daniel Rion Le Vaucrain, Côte de Nuits-Villages"
        ],
        "sem_suggest_prefix": [
          "Domaine Daniel Rion",
          "France",
          "Le Vaucrain",
          "2005 Domaine Daniel Rion Le Vaucrain, Côte de Nuits-Villages"
        ],
        "sem_suggest_phrase": [
          "Domaine Daniel Rion",
          "France",
          "Le Vaucrain",
          "2005 Domaine Daniel Rion Le Vaucrain, Côte de Nuits-Villages"
        ],
        "wine_producer_id": "Domaine Daniel Rion",
        "wine_sub_region": "Côte de Nuits",
        "country": "France",
        "/common/topic/image": [
          "1034511l.jpg"
        ],
        "id": "/m/03ggy82",
        "region": "Burgundy",
        "wine_type": "Still Wine",
        "wine_type_facet": "Still Wine",
        "color": "Red Wine",
        "sem_grouping": "Red Wine",
        "color_facet": "Red Wine",
        "vintage": 2005,
        "vineyard": "Le Vaucrain",
        "sem_location": "47.109931,4.929972",
        "sem_location_latlng": "47.109931,4.929972",
        "sem_title": "2005 Domaine Daniel Rion Le Vaucrain, Côte de Nuits-Villages",
        "sem_title_alpha": "2005 Domaine Daniel Rion Le Vaucrain, Côte de Nuits-Villages",
        "sem_url": "http://www.freebase.com/m/03ggy82",
        "sem_record_type": "wine",
        "sem_lang": "fr",
        "sem_timestamp": "2024-06-07T12:19:43.380Z",
        "score": 3.1117635,
        "color_document": [
          {
            "id": "Red Wine",
            "sem_title": "Red Wine",
            "sem_record_type": "color",
            "sem_url": "http://www.freebase.com/m/02wsb20"
          }
        ],
        "sem_actions": {
          "default": "goto",
          "goto": {
            "sem_url": "/sl/redirect?url=http%3A%2F%2Fwww.freebase.com%2Fm%2F03ggy82&id=SEML20vMDNnZ3k4Mg",
            "sem_url_action": "/sl/redirect?url=http%3A%2F%2Fwww.freebase.com%2Fm%2F03ggy82&id=SEML20vMDNnZ3k4Mg&ot.et=result&ot.est=serp-result-click&ot.q=id%3A%28%22Domaine+Prieur-Brunet%22+%22Domaine+Gabriel+Billard%22+%22Domaine+Daniel+Rion%22+%22Domaine+de+la+Roman%C3%A9e-Conti%22+%22%2Fm%2F02zznx2%22+%22%2Fm%2F03ggy82%22+%22%2Fen%2F1999_domaine_romanee_conti_la_tache%22%29&ot.es=source_serp&ot.nf=3&ot.s=0&ot.r=20&ot.rank=2&ot.sse=cc260008-5d4b-4cd0-be5e-e43296ffa3d5",
            "sem_url_logging": "/sl/log?url=http%3A%2F%2Fwww.freebase.com%2Fm%2F03ggy82&id=SEML20vMDNnZ3k4Mg&ot.et=result&ot.est=serp-result-click&ot.q=id%3A%28%22Domaine+Prieur-Brunet%22+%22Domaine+Gabriel+Billard%22+%22Domaine+Daniel+Rion%22+%22Domaine+de+la+Roman%C3%A9e-Conti%22+%22%2Fm%2F02zznx2%22+%22%2Fm%2F03ggy82%22+%22%2Fen%2F1999_domaine_romanee_conti_la_tache%22%29&ot.es=source_serp&ot.nf=3&ot.s=0&ot.r=20&ot.rank=2&ot.sse=cc260008-5d4b-4cd0-be5e-e43296ffa3d5",
            "sem_is_external": true
          },
          "fetch": {
            "sem_url": "/sl/record?id=SEML20vMDNnZ3k4Mg",
            "sem_url_action": "/sl/record?id=SEML20vMDNnZ3k4Mg&ot.et=result&ot.est=serp-result-click&ot.q=id%3A%28%22Domaine+Prieur-Brunet%22+%22Domaine+Gabriel+Billard%22+%22Domaine+Daniel+Rion%22+%22Domaine+de+la+Roman%C3%A9e-Conti%22+%22%2Fm%2F02zznx2%22+%22%2Fm%2F03ggy82%22+%22%2Fen%2F1999_domaine_romanee_conti_la_tache%22%29&ot.es=source_serp&ot.nf=3&ot.s=0&ot.r=20&ot.rank=2&ot.sse=cc260008-5d4b-4cd0-be5e-e43296ffa3d5",
            "sem_url_logging": "/sl/log?id=SEML20vMDNnZ3k4Mg&ot.et=result&ot.est=serp-result-click&ot.q=id%3A%28%22Domaine+Prieur-Brunet%22+%22Domaine+Gabriel+Billard%22+%22Domaine+Daniel+Rion%22+%22Domaine+de+la+Roman%C3%A9e-Conti%22+%22%2Fm%2F02zznx2%22+%22%2Fm%2F03ggy82%22+%22%2Fen%2F1999_domaine_romanee_conti_la_tache%22%29&ot.es=source_serp&ot.nf=3&ot.s=0&ot.r=20&ot.rank=2&ot.sse=cc260008-5d4b-4cd0-be5e-e43296ffa3d5"
          },
          "mlt": {
            "sem_url": "/sl/morelikethis?id=SEML20vMDNnZ3k4Mg",
            "sem_url_action": "/sl/morelikethis?id=SEML20vMDNnZ3k4Mg&ot.et=mlt&ot.est=mlt&ot.es=source_serp&ot.nf=3&ot.s=0&ot.r=20&ot.rank=2&ot.q=id%3A%28%22Domaine+Prieur-Brunet%22+%22Domaine+Gabriel+Billard%22+%22Domaine+Daniel+Rion%22+%22Domaine+de+la+Roman%C3%A9e-Conti%22+%22%2Fm%2F02zznx2%22+%22%2Fm%2F03ggy82%22+%22%2Fen%2F1999_domaine_romanee_conti_la_tache%22%29&ot.sse=cc260008-5d4b-4cd0-be5e-e43296ffa3d5"
          }
        },
        "sem_encoded_id": "SEML20vMDNnZ3k4Mg"
      }
    ]
  }
}