# FLT working , MLT not working

**URL:** <https://discuss.elastic.co/t/flt-working-mlt-not-working/11829>\
**Category:** Elasticsearch\
**Created:** [May 6, 2013, 8:46am UTC](https://discuss.elastic.co/t/flt-working-mlt-not-working/11829 "2013-05-06T08:46:42Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![vineeth\_mohan](https://avatars.discourse-cdn.com/v4/letter/v/bc79bd/32.png) [@vineeth\_mohan](https://discuss.elastic.co/u/vineeth_mohan)\
**Post date:** [May 6, 2013, 8:46am UTC](https://discuss.elastic.co/t/flt-working-mlt-not-working/11829/1 "2013-05-06T08:46:42Z")

</div>

Hi ,

I am creating a document using this -

#!/bin/bash

curl -XPOST '[http://localhost:9200/dedupe/events](http://localhost:9200/dedupe/events)' -d '{  
"Events" : [ {  
"Event" : "In india we have to try hard to cop up with the living  
conditions"  
}  
]  
}'

Now i am testing out MLT using the entire string.

{  
"query": {  
"more\_like\_this": {  
"fields": [  
"Events.Event"  
],  
"like\_text": "In india we have to try hard to cop up with the living  
conditions"  
}  
}  
}

But its not giving any result.

But FLT is working fine.

{  
"query": {  
"fuzzy\_like\_this": {  
"fields": [  
"Events.Event"  
],  
"like\_text": "In india we have to try hard to cop up with the living  
conditions"  
}  
}  
}

Gives the result i just indexed.

What is the reason for this behavior ?

Thanks  
Vineeth

--  
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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 6, 2013, 9:21am UTC](https://discuss.elastic.co/t/flt-working-mlt-not-working/11829/2 "2013-05-06T09:21:24Z")

</div>

Do you have only one doc or many?

--  
David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 6 mai 2013 à 10:46, Vineeth Mohan [vineethmohan@algotree.com](mailto:vineethmohan@algotree.com) a écrit :

> Hi ,
> 
> I am creating a document using this -
> 
> #!/bin/bash
> 
> curl -XPOST '[http://localhost:9200/dedupe/events](http://localhost:9200/dedupe/events)' -d '{  
> "Events" : [ {  
> "Event" : "In india we have to try hard to cop up with the living conditions"  
> }  
> ]  
> }'
> 
> Now i am testing out MLT using the entire string.
> 
> {  
> "query": {  
> "more\_like\_this": {  
> "fields": [  
> "Events.Event"  
> ],  
> "like\_text": "In india we have to try hard to cop up with the living conditions"  
> }  
> }  
> }
> 
> But its not giving any result.
> 
> But FLT is working fine.
> 
> {  
> "query": {  
> "fuzzy\_like\_this": {  
> "fields": [  
> "Events.Event"  
> ],  
> "like\_text": "In india we have to try hard to cop up with the living conditions"  
> }  
> }  
> }
> 
> Gives the result i just indexed.
> 
> What is the reason for this behavior ?
> 
> ## Thanks Vineeth
> 
> 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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![vineeth\_mohan](https://avatars.discourse-cdn.com/v4/letter/v/bc79bd/32.png) [@vineeth\_mohan](https://discuss.elastic.co/u/vineeth_mohan)\
**Post date:** [May 6, 2013, 9:33am UTC](https://discuss.elastic.co/t/flt-working-mlt-not-working/11829/3 "2013-05-06T09:33:48Z")

</div>

I have only one document.  
Does it matter ?

Thanks  
Vineeth

On Mon, May 6, 2013 at 2:51 PM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:

> Do you have only one doc or many?
> 
> --  
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> 
> Le 6 mai 2013 à 10:46, Vineeth Mohan [vineethmohan@algotree.com](mailto:vineethmohan@algotree.com) a écrit :
> 
> Hi ,
> 
> I am creating a document using this -
> 
> #!/bin/bash
> 
> curl -XPOST '[http://localhost:9200/dedupe/events](http://localhost:9200/dedupe/events)' -d '{  
> "Events" : [ {  
> "Event" : "In india we have to try hard to cop up with the living  
> conditions"  
> }  
> ]  
> }'
> 
> Now i am testing out MLT using the entire string.
> 
> {  
> "query": {  
> "more\_like\_this": {  
> "fields": [  
> "Events.Event"  
> ],  
> "like\_text": "In india we have to try hard to cop up with the living  
> conditions"  
> }  
> }  
> }
> 
> But its not giving any result.
> 
> But FLT is working fine.
> 
> {  
> "query": {  
> "fuzzy\_like\_this": {  
> "fields": [  
> "Events.Event"  
> ],  
> "like\_text": "In india we have to try hard to cop up with the living  
> conditions"  
> }  
> }  
> }
> 
> Gives the result i just indexed.
> 
> What is the reason for this behavior ?
> 
> Thanks  
> Vineeth
> 
> --  
> 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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> 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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 6, 2013, 9:49am UTC](https://discuss.elastic.co/t/flt-working-mlt-not-working/11829/4 "2013-05-06T09:49:28Z")

</div>

Yes. Have a look at options: [Elastic — The Search AI Company | Elastic](http://www.elasticsearch.org/guide/reference/query-dsl/mlt-query/)  
Set min\_term\_freq=0

## It should work

David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
@dadoonet | @elasticsearchfr | @scrutmydocs

Le 6 mai 2013 à 11:33, Vineeth Mohan [vineethmohan@algotree.com](mailto:vineethmohan@algotree.com) a écrit :

> I have only one document.  
> Does it matter ?
> 
> Thanks  
> Vineeth
> 
> On Mon, May 6, 2013 at 2:51 PM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:  
> Do you have only one doc or many?
> 
> --  
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> 
> Le 6 mai 2013 à 10:46, Vineeth Mohan [vineethmohan@algotree.com](mailto:vineethmohan@algotree.com) a écrit :
> 
> > Hi ,
> > 
> > I am creating a document using this -
> > 
> > #!/bin/bash
> > 
> > curl -XPOST '[http://localhost:9200/dedupe/events](http://localhost:9200/dedupe/events)' -d '{  
> > "Events" : [ {  
> > "Event" : "In india we have to try hard to cop up with the living conditions"  
> > }  
> > ]  
> > }'
> > 
> > Now i am testing out MLT using the entire string.
> > 
> > {  
> > "query": {  
> > "more\_like\_this": {  
> > "fields": [  
> > "Events.Event"  
> > ],  
> > "like\_text": "In india we have to try hard to cop up with the living conditions"  
> > }  
> > }  
> > }
> > 
> > But its not giving any result.
> > 
> > But FLT is working fine.
> > 
> > {  
> > "query": {  
> > "fuzzy\_like\_this": {  
> > "fields": [  
> > "Events.Event"  
> > ],  
> > "like\_text": "In india we have to try hard to cop up with the living conditions"  
> > }  
> > }  
> > }
> > 
> > Gives the result i just indexed.
> > 
> > What is the reason for this behavior ?
> > 
> > Thanks  
> > Vineeth
> > 
> > --  
> > 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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> 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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> 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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![vineeth\_mohan](https://avatars.discourse-cdn.com/v4/letter/v/bc79bd/32.png) [@vineeth\_mohan](https://discuss.elastic.co/u/vineeth_mohan)\
**Post date:** [May 6, 2013, 9:59am UTC](https://discuss.elastic.co/t/flt-working-mlt-not-working/11829/5 "2013-05-06T09:59:01Z")

</div>

Sorry , but that didnt work.

{  
"query": {  
"more\_like\_this": {  
"like\_text": "In india we have to try hard to cop up with the living  
conditions",  
"min\_term\_freq": 0  
}  
}  
}

Thanks  
Vineeth

On Mon, May 6, 2013 at 3:20 PM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:

> Yes. Have a look at options:  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/query-dsl/mlt-query/)  
> Set min\_term\_freq=0
> 
> ## It should work
> 
> _David Pilato_ | _Technical Advocate_ | _[Elasticsearch.com](http://Elasticsearch.com)_  
> @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)  
> | @scrutmydocs [https://twitter.com/scrutmydocs](https://twitter.com/scrutmydocs)
> 
> Le 6 mai 2013 à 11:33, Vineeth Mohan [vineethmohan@algotree.com](mailto:vineethmohan@algotree.com) a écrit :
> 
> I have only one document.  
> Does it matter ?
> 
> Thanks  
> Vineeth
> 
> On Mon, May 6, 2013 at 2:51 PM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> 
> > Do you have only one doc or many?
> > 
> > --  
> > David 😉  
> > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > 
> > Le 6 mai 2013 à 10:46, Vineeth Mohan [vineethmohan@algotree.com](mailto:vineethmohan@algotree.com) a  
> > écrit :
> > 
> > Hi ,
> > 
> > I am creating a document using this -
> > 
> > #!/bin/bash
> > 
> > curl -XPOST '[http://localhost:9200/dedupe/events](http://localhost:9200/dedupe/events)' -d '{  
> > "Events" : [ {  
> > "Event" : "In india we have to try hard to cop up with the living  
> > conditions"  
> > }  
> > ]  
> > }'
> > 
> > Now i am testing out MLT using the entire string.
> > 
> > {  
> > "query": {  
> > "more\_like\_this": {  
> > "fields": [  
> > "Events.Event"  
> > ],  
> > "like\_text": "In india we have to try hard to cop up with the  
> > living conditions"  
> > }  
> > }  
> > }
> > 
> > But its not giving any result.
> > 
> > But FLT is working fine.
> > 
> > {  
> > "query": {  
> > "fuzzy\_like\_this": {  
> > "fields": [  
> > "Events.Event"  
> > ],  
> > "like\_text": "In india we have to try hard to cop up with the  
> > living conditions"  
> > }  
> > }  
> > }
> > 
> > Gives the result i just indexed.
> > 
> > What is the reason for this behavior ?
> > 
> > Thanks  
> > Vineeth
> > 
> > --  
> > 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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > 
> > --  
> > 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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> 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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![vineeth\_mohan](https://avatars.discourse-cdn.com/v4/letter/v/bc79bd/32.png) [@vineeth\_mohan](https://discuss.elastic.co/u/vineeth_mohan)\
**Post date:** [May 7, 2013, 2:29am UTC](https://discuss.elastic.co/t/flt-working-mlt-not-working/11829/6 "2013-05-07T02:29:19Z")

</div>

Hello David ,

Is there anything else i can try out here.

Thanks  
Vineeth

On Mon, May 6, 2013 at 3:29 PM, Vineeth Mohan [vineethmohan@algotree.com](mailto:vineethmohan@algotree.com)wrote:

> Sorry , but that didnt work.
> 
> {  
> "query": {  
> "more\_like\_this": {  
> "like\_text": "In india we have to try hard to cop up with the living  
> conditions",  
> "min\_term\_freq": 0  
> }  
> }  
> }
> 
> Thanks  
> Vineeth
> 
> On Mon, May 6, 2013 at 3:20 PM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> 
> > Yes. Have a look at options:  
> > [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/query-dsl/mlt-query/)  
> > Set min\_term\_freq=0
> > 
> > ## It should work
> > 
> > _David Pilato_ | _Technical Advocate_ | _[Elasticsearch.com](http://Elasticsearch.com)_  
> > @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)  
> > | @scrutmydocs [https://twitter.com/scrutmydocs](https://twitter.com/scrutmydocs)
> > 
> > Le 6 mai 2013 à 11:33, Vineeth Mohan [vineethmohan@algotree.com](mailto:vineethmohan@algotree.com) a écrit  
> > :
> > 
> > I have only one document.  
> > Does it matter ?
> > 
> > Thanks  
> > Vineeth
> > 
> > On Mon, May 6, 2013 at 2:51 PM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> > 
> > > Do you have only one doc or many?
> > > 
> > > --  
> > > David 😉  
> > > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > > 
> > > Le 6 mai 2013 à 10:46, Vineeth Mohan [vineethmohan@algotree.com](mailto:vineethmohan@algotree.com) a  
> > > écrit :
> > > 
> > > Hi ,
> > > 
> > > I am creating a document using this -
> > > 
> > > #!/bin/bash
> > > 
> > > curl -XPOST '[http://localhost:9200/dedupe/events](http://localhost:9200/dedupe/events)' -d '{  
> > > "Events" : [ {  
> > > "Event" : "In india we have to try hard to cop up with the  
> > > living conditions"  
> > > }  
> > > ]  
> > > }'
> > > 
> > > Now i am testing out MLT using the entire string.
> > > 
> > > {  
> > > "query": {  
> > > "more\_like\_this": {  
> > > "fields": [  
> > > "Events.Event"  
> > > ],  
> > > "like\_text": "In india we have to try hard to cop up with the  
> > > living conditions"  
> > > }  
> > > }  
> > > }
> > > 
> > > But its not giving any result.
> > > 
> > > But FLT is working fine.
> > > 
> > > {  
> > > "query": {  
> > > "fuzzy\_like\_this": {  
> > > "fields": [  
> > > "Events.Event"  
> > > ],  
> > > "like\_text": "In india we have to try hard to cop up with the  
> > > living conditions"  
> > > }  
> > > }  
> > > }
> > > 
> > > Gives the result i just indexed.
> > > 
> > > What is the reason for this behavior ?
> > > 
> > > Thanks  
> > > Vineeth
> > > 
> > > --  
> > > 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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > 
> > > --  
> > > 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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > 
> > --  
> > 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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 7, 2013, 7:34am UTC](https://discuss.elastic.co/t/flt-working-mlt-not-working/11829/7 "2013-05-07T07:34:53Z")

</div>

Hi Vineth,

See this Gist: [more like this (mlt) query with exact text on small dataset · GitHub](https://gist.github.com/dadoonet/5530856)  
Works fin on 0.90.0

HTH

--  
David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
@dadoonet | @elasticsearchfr | @scrutmydocs

Le 7 mai 2013 à 04:29, Vineeth Mohan [vineethmohan@algotree.com](mailto:vineethmohan@algotree.com) a écrit :

> Hello David ,
> 
> Is there anything else i can try out here.
> 
> Thanks  
> Vineeth
> 
> On Mon, May 6, 2013 at 3:29 PM, Vineeth Mohan [vineethmohan@algotree.com](mailto:vineethmohan@algotree.com) wrote:  
> Sorry , but that didnt work.
> 
> {  
> "query": {  
> "more\_like\_this": {  
> "like\_text": "In india we have to try hard to cop up with the living conditions",  
> "min\_term\_freq": 0  
> }  
> }  
> }
> 
> Thanks  
> Vineeth
> 
> On Mon, May 6, 2013 at 3:20 PM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:  
> Yes. Have a look at options: [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/query-dsl/mlt-query/)  
> Set min\_term\_freq=0
> 
> ## It should work
> 
> David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
> @dadoonet | @elasticsearchfr | @scrutmydocs
> 
> Le 6 mai 2013 à 11:33, Vineeth Mohan [vineethmohan@algotree.com](mailto:vineethmohan@algotree.com) a écrit :
> 
> > I have only one document.  
> > Does it matter ?
> > 
> > Thanks  
> > Vineeth
> > 
> > On Mon, May 6, 2013 at 2:51 PM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:  
> > Do you have only one doc or many?
> > 
> > --  
> > David 😉  
> > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > 
> > Le 6 mai 2013 à 10:46, Vineeth Mohan [vineethmohan@algotree.com](mailto:vineethmohan@algotree.com) a écrit :
> > 
> > > Hi ,
> > > 
> > > I am creating a document using this -
> > > 
> > > #!/bin/bash
> > > 
> > > curl -XPOST '[http://localhost:9200/dedupe/events](http://localhost:9200/dedupe/events)' -d '{  
> > > "Events" : [ {  
> > > "Event" : "In india we have to try hard to cop up with the living conditions"  
> > > }  
> > > ]  
> > > }'
> > > 
> > > Now i am testing out MLT using the entire string.
> > > 
> > > {  
> > > "query": {  
> > > "more\_like\_this": {  
> > > "fields": [  
> > > "Events.Event"  
> > > ],  
> > > "like\_text": "In india we have to try hard to cop up with the living conditions"  
> > > }  
> > > }  
> > > }
> > > 
> > > But its not giving any result.
> > > 
> > > But FLT is working fine.
> > > 
> > > {  
> > > "query": {  
> > > "fuzzy\_like\_this": {  
> > > "fields": [  
> > > "Events.Event"  
> > > ],  
> > > "like\_text": "In india we have to try hard to cop up with the living conditions"  
> > > }  
> > > }  
> > > }
> > > 
> > > Gives the result i just indexed.
> > > 
> > > What is the reason for this behavior ?
> > > 
> > > Thanks  
> > > Vineeth
> > > 
> > > --  
> > > 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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > 
> > --  
> > 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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > 
> > --  
> > 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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> 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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![vineeth\_mohan](https://avatars.discourse-cdn.com/v4/letter/v/bc79bd/32.png) [@vineeth\_mohan](https://discuss.elastic.co/u/vineeth_mohan)\
**Post date:** [May 8, 2013, 6:23am UTC](https://discuss.elastic.co/t/flt-working-mlt-not-working/11829/8 "2013-05-08T06:23:48Z")

</div>

Hello David ,

Thanks for all the hard work , i really appreciate it.  
In my gist , i tried with "min\_doc\_freq" but not "min\_term\_freq".  
I would greatly appreciate if you can tell me what these variables are. I  
refered the tutorial but didnt get the whole idea.

Again , thanks for all your time.

Thanks  
Vineeth

On Tue, May 7, 2013 at 1:04 PM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:

> Hi Vineth,
> 
> See this Gist: [more like this (mlt) query with exact text on small dataset · GitHub](https://gist.github.com/dadoonet/5530856)  
> Works fin on 0.90.0
> 
> HTH
> 
> --  
> _David Pilato_ | _Technical Advocate_ | _[Elasticsearch.com](http://Elasticsearch.com)_  
> @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)  
> | @scrutmydocs [https://twitter.com/scrutmydocs](https://twitter.com/scrutmydocs)
> 
> Le 7 mai 2013 à 04:29, Vineeth Mohan [vineethmohan@algotree.com](mailto:vineethmohan@algotree.com) a écrit :
> 
> Hello David ,
> 
> Is there anything else i can try out here.
> 
> Thanks  
> Vineeth
> 
> On Mon, May 6, 2013 at 3:29 PM, Vineeth Mohan [vineethmohan@algotree.com](mailto:vineethmohan@algotree.com)wrote:
> 
> > Sorry , but that didnt work.
> > 
> > {  
> > "query": {  
> > "more\_like\_this": {  
> > "like\_text": "In india we have to try hard to cop up with the  
> > living conditions",  
> > "min\_term\_freq": 0  
> > }  
> > }  
> > }
> > 
> > Thanks  
> > Vineeth
> > 
> > On Mon, May 6, 2013 at 3:20 PM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> > 
> > > Yes. Have a look at options:  
> > > [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/query-dsl/mlt-query/)  
> > > Set min\_term\_freq=0
> > > 
> > > ## It should work
> > > 
> > > _David Pilato_ | _Technical Advocate_ | \*[Elasticsearch.com](http://Elasticsearch.com)[http://elasticsearch.com/](http://elasticsearch.com/)  
> > > \*  
> > > @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)  
> > > | @scrutmydocs [https://twitter.com/scrutmydocs](https://twitter.com/scrutmydocs)
> > > 
> > > Le 6 mai 2013 à 11:33, Vineeth Mohan [vineethmohan@algotree.com](mailto:vineethmohan@algotree.com) a  
> > > écrit :
> > > 
> > > I have only one document.  
> > > Does it matter ?
> > > 
> > > Thanks  
> > > Vineeth
> > > 
> > > On Mon, May 6, 2013 at 2:51 PM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> > > 
> > > > Do you have only one doc or many?
> > > > 
> > > > --  
> > > > David 😉  
> > > > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > > > 
> > > > Le 6 mai 2013 à 10:46, Vineeth Mohan [vineethmohan@algotree.com](mailto:vineethmohan@algotree.com) a  
> > > > écrit :
> > > > 
> > > > Hi ,
> > > > 
> > > > I am creating a document using this -
> > > > 
> > > > #!/bin/bash
> > > > 
> > > > curl -XPOST '[http://localhost:9200/dedupe/events](http://localhost:9200/dedupe/events)' -d '{  
> > > > "Events" : [ {  
> > > > "Event" : "In india we have to try hard to cop up with the  
> > > > living conditions"  
> > > > }  
> > > > ]  
> > > > }'
> > > > 
> > > > Now i am testing out MLT using the entire string.
> > > > 
> > > > {  
> > > > "query": {  
> > > > "more\_like\_this": {  
> > > > "fields": [  
> > > > "Events.Event"  
> > > > ],  
> > > > "like\_text": "In india we have to try hard to cop up with the  
> > > > living conditions"  
> > > > }  
> > > > }  
> > > > }
> > > > 
> > > > But its not giving any result.
> > > > 
> > > > But FLT is working fine.
> > > > 
> > > > {  
> > > > "query": {  
> > > > "fuzzy\_like\_this": {  
> > > > "fields": [  
> > > > "Events.Event"  
> > > > ],  
> > > > "like\_text": "In india we have to try hard to cop up with the  
> > > > living conditions"  
> > > > }  
> > > > }  
> > > > }
> > > > 
> > > > Gives the result i just indexed.
> > > > 
> > > > What is the reason for this behavior ?
> > > > 
> > > > Thanks  
> > > > Vineeth
> > > > 
> > > > --  
> > > > 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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > > 
> > > > --  
> > > > 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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > 
> > > --  
> > > 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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> 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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![vineeth\_mohan](https://avatars.discourse-cdn.com/v4/letter/v/bc79bd/32.png) [@vineeth\_mohan](https://discuss.elastic.co/u/vineeth_mohan)\
**Post date:** [May 8, 2013, 6:43am UTC](https://discuss.elastic.co/t/flt-working-mlt-not-working/11829/9 "2013-05-08T06:43:44Z")

</div>

Hello David ,

There is one problem , the query you gave seems quite lineant.

{  
"query": {  
"more\_like\_this": {  
"fields": [  
"title"  
],  
"like\_text": "India",  
"min\_doc\_freq": 0,  
"min\_term\_freq": 1,  
"percent\_terms\_to\_match": "0.9"  
}  
}  
} (Returns te indexed document)  
Even though the percent match is set as 90% , its working fine with just  
one term which is not what i expected.  
What i expects is that atleast 90% of the analyzed tokens in a document  
should match with the analyzed tokens in the query.

So , to tune MLT for this , what should be done ?

Thanks  
Vineeth

On Wed, May 8, 2013 at 11:53 AM, Vineeth Mohan [vineethmohan@algotree.com](mailto:vineethmohan@algotree.com)wrote:

> Hello David ,
> 
> Thanks for all the hard work , i really appreciate it.  
> In my gist , i tried with "min\_doc\_freq" but not "min\_term\_freq".  
> I would greatly appreciate if you can tell me what these variables are. I  
> refered the tutorial but didnt get the whole idea.
> 
> Again , thanks for all your time.
> 
> Thanks  
> Vineeth
> 
> On Tue, May 7, 2013 at 1:04 PM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> 
> > Hi Vineth,
> > 
> > See this Gist: [more like this (mlt) query with exact text on small dataset · GitHub](https://gist.github.com/dadoonet/5530856)  
> > Works fin on 0.90.0
> > 
> > HTH
> > 
> > --  
> > _David Pilato_ | _Technical Advocate_ | _[Elasticsearch.com](http://Elasticsearch.com)_  
> > @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)  
> > | @scrutmydocs [https://twitter.com/scrutmydocs](https://twitter.com/scrutmydocs)
> > 
> > Le 7 mai 2013 à 04:29, Vineeth Mohan [vineethmohan@algotree.com](mailto:vineethmohan@algotree.com) a écrit  
> > :
> > 
> > Hello David ,
> > 
> > Is there anything else i can try out here.
> > 
> > Thanks  
> > Vineeth
> > 
> > On Mon, May 6, 2013 at 3:29 PM, Vineeth Mohan [vineethmohan@algotree.com](mailto:vineethmohan@algotree.com)wrote:
> > 
> > > Sorry , but that didnt work.
> > > 
> > > {  
> > > "query": {  
> > > "more\_like\_this": {  
> > > "like\_text": "In india we have to try hard to cop up with the  
> > > living conditions",  
> > > "min\_term\_freq": 0  
> > > }  
> > > }  
> > > }
> > > 
> > > Thanks  
> > > Vineeth
> > > 
> > > On Mon, May 6, 2013 at 3:20 PM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> > > 
> > > > Yes. Have a look at options:  
> > > > [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/query-dsl/mlt-query/)  
> > > > Set min\_term\_freq=0
> > > > 
> > > > ## It should work
> > > > 
> > > > _David Pilato_ | _Technical Advocate_ | \*[Elasticsearch.com](http://Elasticsearch.com)[http://elasticsearch.com/](http://elasticsearch.com/)  
> > > > \*  
> > > > @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr[https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr)  
> > > > | @scrutmydocs [https://twitter.com/scrutmydocs](https://twitter.com/scrutmydocs)
> > > > 
> > > > Le 6 mai 2013 à 11:33, Vineeth Mohan [vineethmohan@algotree.com](mailto:vineethmohan@algotree.com) a  
> > > > écrit :
> > > > 
> > > > I have only one document.  
> > > > Does it matter ?
> > > > 
> > > > Thanks  
> > > > Vineeth
> > > > 
> > > > On Mon, May 6, 2013 at 2:51 PM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> > > > 
> > > > > Do you have only one doc or many?
> > > > > 
> > > > > --  
> > > > > David 😉  
> > > > > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > > > > 
> > > > > Le 6 mai 2013 à 10:46, Vineeth Mohan [vineethmohan@algotree.com](mailto:vineethmohan@algotree.com) a  
> > > > > écrit :
> > > > > 
> > > > > Hi ,
> > > > > 
> > > > > I am creating a document using this -
> > > > > 
> > > > > #!/bin/bash
> > > > > 
> > > > > curl -XPOST '[http://localhost:9200/dedupe/events](http://localhost:9200/dedupe/events)' -d '{  
> > > > > "Events" : [ {  
> > > > > "Event" : "In india we have to try hard to cop up with the  
> > > > > living conditions"  
> > > > > }  
> > > > > ]  
> > > > > }'
> > > > > 
> > > > > Now i am testing out MLT using the entire string.
> > > > > 
> > > > > {  
> > > > > "query": {  
> > > > > "more\_like\_this": {  
> > > > > "fields": [  
> > > > > "Events.Event"  
> > > > > ],  
> > > > > "like\_text": "In india we have to try hard to cop up with the  
> > > > > living conditions"  
> > > > > }  
> > > > > }  
> > > > > }
> > > > > 
> > > > > But its not giving any result.
> > > > > 
> > > > > But FLT is working fine.
> > > > > 
> > > > > {  
> > > > > "query": {  
> > > > > "fuzzy\_like\_this": {  
> > > > > "fields": [  
> > > > > "Events.Event"  
> > > > > ],  
> > > > > "like\_text": "In india we have to try hard to cop up with the  
> > > > > living conditions"  
> > > > > }  
> > > > > }  
> > > > > }
> > > > > 
> > > > > Gives the result i just indexed.
> > > > > 
> > > > > What is the reason for this behavior ?
> > > > > 
> > > > > Thanks  
> > > > > Vineeth
> > > > > 
> > > > > --  
> > > > > 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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > > > 
> > > > > --  
> > > > > 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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > > 
> > > > --  
> > > > 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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > 
> > --  
> > 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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 2:37am UTC](https://discuss.elastic.co/t/flt-working-mlt-not-working/11829/10 "2017-07-06T02:37:42Z")

</div>


