I want to use search templates to generate a query based on the value of a 
parameter (not its presence or being True).

For example I have a sortType parameter that can be {nearest, cheapest, 
easiest, newest}. Each of these options causes a drastically different 
change to the query sent to ES.

I'm assuming that I'm currently limited to creating a boolean flag and 
checking for the presence of sortType_nearest, sortType_cheapest etc.

It would be nice to have a template language supported that included an if 
statement.

Apologies if this has already been mentioned, but I searched and couldn't 
find anything.

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/c7ac6071-bd43-4e64-8571-c8036b0d9218%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to