Is this question related to a specific Adobe product or solution? Based on the information you've provided, I'd guess it was related to AEM. Is this the case? If so, I'll move your question to the Adobe Experience Manager community.
No, you should overlay files from libs to apps but if you want to change js file, you can create a copy of js file and modified and change the reference in js.txt
what do you mean by adding cq:variant property in omnisearch.js ? you want extra filter?
Thanks for the response.
How to add the property filter to the Omnisearch feature cq:CommerceType - variant when cq:CommerceType - product is already is present.
Both "variant" and "product" should be included because few products are having cq:CommerceType - product as a property and few products are having cq:CommerceType - variant as a property.
I need to add "variant" to the query parameter so that the products having "cq:commerceType-variant" will be displayed when we search that products.
Any idea where and which file this query parameter is present in CRXDE so that I can add this "cq:commerceType-variant" property .I could not that file where query is present. Please drop the solution if you know.
Thanks and Regards,