// estrago le info sulla categoriacatInfo = catConvert(Trim(arguments.categoria));
// creo i filtri di ricercasavecontent variable="filtri" {
// se è una ricerca con filtri if ( !catInfo.all ) {
// cerca tutta la categoria if (catInfo.padre == 1) {
writeOutput('
"and":[ { "term":{ "pro_cat": ' & catInfo.IdCat & ' } } ]
');
} else {
// cerca solo nella sottocategoria writeOutput('
"and":[ { "term":{ "pro_cat_id": ' & catInfo.IdUni & ' } } ]
');
} // if secondaria } // if principale}; // savecontent
variables.searchParams = [];variables.searchParams = { "from":0, "size":150, "query":{ "filtered":{ "query":{ "multi_match":{ "query":"#searchUrlToString(arguments.searchText)#", "type": "most_fields", "fields":[ "pro_titolo^10", "pro_descrizione", "pro_brand" ] } }, "filter": { #filtri# } } }};
{ #filtri# }
Igal Sapir
Lucee Core Developer
Lucee.org
--
Love Lucee? Become a supporter and be part of the Lucee project today! - http://lucee.org/supporters/become-a-supporter.html
---
You received this message because you are subscribed to the Google Groups "Lucee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/df3c1e6f-1d73-4e08-8b3a-cd9d8e131752%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/56FC2882.3030700%40lucee.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/CAGHrs%3D-16jVqcLWYi2HTvUVQ6dQPPgQ_%3D96A9uK%2BqGHDbZMVuw%40mail.gmail.com.
I don't think that would work, because the literal struct is still invalid.
--
Love Lucee? Become a supporter and be part of the Lucee project today! - http://lucee.org/supporters/become-a-supporter.html
---
You received this message because you are subscribed to the Google Groups "Lucee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/5a31cfab-220d-47f6-9da8-94d3310e1d03%40googlegroups.com.
Ok. So, you how do you suggest me to do?
--
Love Lucee? Become a supporter and be part of the Lucee project today! - http://lucee.org/supporters/become-a-supporter.html
---
You received this message because you are subscribed to the Google Groups "Lucee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/29ebe4ea-5f0d-4b8b-833d-462ce421eb2a%40googlegroups.com.
--
Love Lucee? Become a supporter and be part of the Lucee project today! - http://lucee.org/supporters/become-a-supporter.html
---
You received this message because you are subscribed to the Google Groups "Lucee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/2f848319-d374-446c-ac6f-a219e4cdfa25%40googlegroups.com.
Great! so it works! Thank you Michael
--
Love Lucee? Become a supporter and be part of the Lucee project today! - http://lucee.org/supporters/become-a-supporter.html
---
You received this message because you are subscribed to the Google Groups "Lucee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/98af7673-0ac0-49ab-abd8-5580f3f8a509%40googlegroups.com.