I am building a mega search like wix: https://www.wix.com/corvid/example/mega-search
My code is similar to the link, I use checkboxGroup in my mega Search, I need to compare the data they select from the checkboxGroup with the data from my collection (tag type field) to filter that information and show it on a repeater.
//Estoy construyendo una mega search como wix: https://www.wix.com/corvid/example/mega-search
Mi código es parecido al del link, Utilizo checkboxGroup en mi mega Search, necesito comprar los datos seleccionados del checkboxGroup con los datos en mi colección (datos tipo tags o arreglo de cadenas) para filtrar la información y mostrarla en un repetidor.
the data in the collection is like: // Los datos de la colección son así:
My code is based on the wix megaserch, I use these code to filter with the other elements like sliders or inputs: // Mi código esta basado en el megaSearch de wix, utilizo este código para filtrar otro tipo de elementos de entrada como, sliders o inputs:
After consulting and filtering, I send this data to the repeater, so that only the matching information is displayed on the repeater (like wix megaSearch) // Después de consultar y filtrar, envío los datos al repetidor para que muestre solo la información que coincide (tal como el mesearch de wix).
The problem is that I can’t get the data using wixDataQuery filters like eq (), contains (), ge () or any of those because the data in the collection are tags (strings array) // El problema es que no puedo obtener los datos usando los filtros de wixDataQuery tales como eq (), contains (), ge () o cualquiera de ellos porque los datos de mi colección son tags (arreglo de cadenas).
How I can do it, using wixDataQuery ?.. // Como puedo hacerlo utilizando wixDataQuery ?..
In the wix MegaSearch, checkBoxGroup use field boolean, but I need use tags (string arrays) // En el mega Search de Wix el checkBoxGroup usa campos booleanos, pero necesito que mi campo sea de tipo tag (arreglo de cadenas).
I tried like this:
but it doesn’t work…
Could you help me, please?
@Steven @Sheyla @Oded @Eugene Olshenbaum you who are pro , do you have some idea?