I am trying to filter moreLikeThis results by adding additional query - but
it seems to ignore it at all.
I tried to run my ignoreQuery separately and it works fine, but how to make
it work with moreLikeThis? Please help me.
$ignoreQuery = $this->IgnoreCategoryQuery('movies')
$this->resultsSet = $this->index->moreLikeThis(new \Elastica\Document($id),
array_merge($this->mlt_fields, array('search_size' => $this->size,
'search_from' => $this->from, 'min_doc_freq' => 2, 'min_term_freq' => 1,
'min_word_length' => 3)), $ignoreQuery);
My IgnoreCategory function:
public function IgnoreCategoryQuery($category = 'main')
$categoriesTermQuery = new \Elastica\Query\Term();
$categoriesBoolQuery = new \Elastica\Query\Bool();
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 email@example.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/f5779463-9dbd-4e76-bd84-9d8c5d98c930%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.