We need a method that takes an opensearch query object or dictionary and converts it for use as a percolator query.
Currently an opensearch query contains a 'query' attribute which contains a string a user searched for and a 'post_filter' which contains filters that the user toggled such as 'topic' or 'offered by'. we need to combine them into a single query and then also remove the 'has_child' filters since percolate doesnt support related queries.
We do something similar in micromasters (minus the removal of related queries)
We need a method that takes an opensearch query object or dictionary and converts it for use as a percolator query.
Currently an opensearch query contains a 'query' attribute which contains a string a user searched for and a 'post_filter' which contains filters that the user toggled such as 'topic' or 'offered by'. we need to combine them into a single query and then also remove the 'has_child' filters since percolate doesnt support related queries.
We do something similar in micromasters (minus the removal of related queries)