Parámetros queryField y mapField

Hola comunidad.

Quiero armar un search-result-layout.customQuery para una colección.
No entiendo qué significan los parámetros queryField y mapField y de dónde los saco. ¿Alguien sabe cómo armar estos campos?

Hola @marmarquez
Bienvenido!

Puede consultar la documentación aquí que habla sobre los 2 campos sobre los que tiene preguntas.

VTEX dice lo siguiente:

queryField --> Search URL's query string to define which results should be fetched in the custom query. For example: Blue. This prop only works if the mapField prop is declared as well.

mapField --> Search URL's map parameter to define which results should be fetched in the custom query, for example specificationFilter_100. This prop only works if the queryField prop is declared as well.

Pero como mencioné, puede encontrar más detalles en la documentación que presenté anteriormente.

Y aquí nesta documentacion mostra como tu podes armar com estos campos.

¡Espero que te ayude!

At.te,
Estevão.

1 Like

Can I write down more than one parameter into mapField and queryField? or they only support one of them? It would be great if you could write down it in the documentation

solved, for anyone who is working in the side-editor
Query field → you need to divide them with /
Map field → you need to divide them with ,

For example:
Query field → {category}/{brand}/{productClusterIds}/{specificationFilter}
Map field → c,b,productClusterIds,specificationFilter_{X}

I hope it can be useful.

2 Likes

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.