Hi: I'm trying to build a custom update handler to accomplish one specific task. In our app we do query suggestions based on previous queries passed into our frontend app, the thing is that instead of getting this queries from the solr logs, we stored in a separated core. So far so good, but one particular requirement is that not every query typed by the users in the search box appears as a suggestion, only the more popuparls. For this we created a field in the schema called count. And write code in out frontend to increase this value, to be honest we don't like this. So we came up with an idea of writing a custom update handler that before store the query in the index, checks if the query exists and then add 1 to the counter.
The thing is that right now we have set up a dedupe component to avoid storing very similar queries, is there any way of accessing the dedupe component from the custom update handler? Is there any documentation I can check out to see anything similar to this? Greetings