curl -XPOST '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"
}
}
}
curl -XPOST '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"
}
}
}
curl -XPOST '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"
}
}
}
curl -XPOST '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"
}
}
}
curl -XPOST '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"
}
}
}
curl -XPOST '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"
}
}
}
curl -XPOST '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"
}
}
}
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 wrote:
curl -XPOST '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"
}
}
}
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.
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 wrote:
curl -XPOST '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"
}
}
}
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.