I want to know weither it’s possible to do it, to put it in the context, i have several attributes, among them is the phone number of certain a user, i want to trigger searching with this attribute only when there’s at least 7 digits in the search box.
Yes it’s possible but you’ll have to do check this condition on your side. Before dispatching the call to Algolia, you’ll need to check if the query string is 7 digits and then call algolia to only search in this field using
restrictSearchableAttributes, note that the field has to be in the searchableAttributes, I’d recommend putting it last.
Don’t forget to turn off typotolerance on this type of fields: