Page MenuHomePhabricator
Paste P10308

maximum of two separate morelikethis queries
ActivePublic

Authored by EBernhardson on Tue, Feb 4, 8:46 PM.
{
"_source": [
"namespace_text",
"title"
],
"size": 3,
"query": {
"bool": {
"must": [
{
"dis_max": {
"queries": [
{
"more_like_this": {
"min_doc_freq": 2,
"max_doc_freq": null,
"max_query_terms": 25,
"min_term_freq": 2,
"min_word_length": 0,
"max_word_length": 0,
"minimum_should_match": "30%",
"fields": [
"text"
],
"like": [
{
"_id": "752"
}
]
}
},
{
"more_like_this": {
"min_doc_freq": 2,
"max_doc_freq": null,
"max_query_terms": 25,
"min_term_freq": 2,
"min_word_length": 0,
"max_word_length": 0,
"minimum_should_match": "30%",
"fields": [
"text"
],
"like": [
{
"_id": "22939"
}
]
}
}
]
}
}
],
"filter": [
{
"terms": {
"namespace": [
0
]
}
}
]
}
}
}