Highlight from inside more_like_this query

I got highlight to work with query_string type of query,
but I don't seem to be able to do so with a more_like_this query
is it possible to get highlights in an MLT search?

here is my JSON

{
"query": {
"more_like_this": {
"like_text": "Clinton nanotech",
"min_term_freq": 1,
"min_doc_freq": 1,
"percent_terms_to_match": 0.001
}
},
"size": 20,
"highlight": {
"fields": {
"nlp_cf.content.NN": {},
"nlp_cf.content.NNP": {},
"nlp_cf.content.nps": {},
"nlp_cf.content.PER": {},
"nlp_cf.content.ORG": {},
"nlp_cf.content.MISC": {},
"nlp_cf.content.ORGANIZATION": {},
"nlp_cf.content.PERSON": {}
}
}
}

thanks muchly
-gil

--

Hi, Have you solved this problem? Can you explain how you did it?

El martes, 18 de diciembre de 2012 05:51:39 UTC-3, Gil Fuchs escribió:

I got highlight to work with query_string type of query,
but I don't seem to be able to do so with a more_like_this query
is it possible to get highlights in an MLT search?

here is my JSON

{
"query": {
"more_like_this": {
"like_text": "Clinton nanotech",
"min_term_freq": 1,
"min_doc_freq": 1,
"percent_terms_to_match": 0.001
}
},
"size": 20,
"highlight": {
"fields": {
"nlp_cf.content.NN": {},
"nlp_cf.content.NNP": {},
"nlp_cf.content.nps": {},
"nlp_cf.content.PER": {},
"nlp_cf.content.ORG": {},
"nlp_cf.content.MISC": {},
"nlp_cf.content.ORGANIZATION": {},
"nlp_cf.content.PERSON": {}
}
}
}

thanks muchly
-gil

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

hi Adrian,
sorry I never did get this to work... :{
i had learnt to live without it...

-gil


From: Adrián Van Langenhove adrianvanlan@gmail.com
To: elasticsearch@googlegroups.com
Sent: Monday, September 9, 2013 4:51 PM
Subject: Re: highlight from inside more_like_this query

Hi, Have you solved this problem? Can you explain how you did it?

El martes, 18 de diciembre de 2012 05:51:39 UTC-3, Gil Fuchs escribió:
I got highlight to work with query_string type of query,

but I don't seem to be able to do so with a more_like_this query
is it possible to get highlights in an MLT search?

here is my JSON

{
"query": {
"more_like_this": {
"like_text": "Clinton nanotech",
"min_term_freq": 1,
"min_doc_freq": 1,
"percent_terms_to_match": 0.001
}
},
"size": 20,
"highlight": {
"fields": {
"nlp_cf.content.NN": {},
"nlp_cf.content.NNP": {},
"nlp_cf.content.nps": {},
"nlp_cf.content.PER": {},
"nlp_cf.content.ORG": {},
"nlp_cf.content.MISC": {},
"nlp_cf.content.ORGANIZATION": {},
"nlp_cf.content.PERSON": {}
}
}

}

thanks muchly
-gil

--
You received this message because you are subscribed to a topic in the Google Groups "elasticsearch" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/elasticsearch/GSMFekOPz9Q/unsubscribe.
To unsubscribe from this group and all its topics, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit 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.
For more options, visit https://groups.google.com/groups/opt_out.