Morelikethis returns no results


(Mike Merritt-Holmes) #1

Hi,

we are currently trying to use the MLT API to get similar documents based
on one of them and we get no results back. To debug we even tried using the
query directly with some settings like minimum documents and terms to zero
and we got no results back.

We tried several variations, tweak the settings, not to say any document in
the query, tried other datasets (indexes and types) but never seem to get a
result back.

API call:
curl -XGET
'http://localhost:9200/tweets-world/tweets/476735980666630144/_mlt?routing=476735980666630144&fields=matching_phrases.brand
http://localhost:9200/tweets-world/tweets/476735980666630144/_mlt?routing=476735980666630144&fields=matching_phrases.brand'

query request:
{

  • "query": {*
  • "more_like_this": {*
  •  "docs" : [*
    
  •    {*
    
  •        "_index" : "tweets-world",*
    
  •        "_type" : "tweets",*
    
  •        "_id" : "476735980666630144"*
    
  •    }*
    
  •    ],*
    
  •  "min_term_freq": 0,*
    
  •  "min_doc_freq": 0,*
    
  •  "min_word_len": 0*
    
  • }*
  • }*
    }

In attachment you'll find an example of our documents and mappings.

Thanks

Mike

--

NOTICE AND DISCLAIMER

This email (including attachments) is confidential. If you are not the
intended recipient, notify the sender immediately, delete this email from
your system and do not disclose or use for any purpose.

Business Address: 1 Bath Street, London, EC1V 9LB.
Registered Office: Finsgate, 5-7 Cranwood Street, London, EC1V 9EE
Big Data Partnership Limited is a company registered in England & Wales
with Company No 7904824

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/3137adc1-7eaf-4e75-b957-ff5e051372c9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(system) #2