Apply More Like This to subset data

Hi there,

I'm trying to apply a more like this query to a subset of my data filtered for dates. I'd like the final score to only be the score of more like this on the subset.
How should i proceed ?

I have been trying the following but it does not seem to work.

Thanks in advance.

    query ={
            'bool':{
                'must':[
                    {'range':{
                            'InsertDate':{
                                'lte':yyyy-mm-dd,
                                }
                            }
                        },
            {'more_like_this':{
                'fields':['agency','seriesName','title', 'text'],
                'like':[
                    {'_index':index,
                    '_id': id}
                    ],
                }
                }
            ]
            }
            }

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.