Replacing old facet/field search with distinct ordered by occurrences (aggregation criteria)

Signed-off-by: José Luis Di Biase <josx@interorganic.com.ar>