Reindex w/field collapsing

Is there any way to collapse results with ReIndexing? I have a source index and want to get the most used pieces out, and only return their 'natural' key into a new index.
I can't figure out how to stuff the collapse logic into the Reindex process... query? aggregation?

    {
      "max_docs": 1,
      "source": {
      "index": "toplanes",
    		"_source": ["compkey"],
    		"collapse":{"field":"compkey"}
    	},
    	
      "dest": {
        "index": "hot_lane_lookup"
      }
    }

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