Re: Check if dynamic columns exists and query else ignore

2013-10-18 Thread Utkarsh Sengar
Thanks Chris! That worked! I overengineered my query! Thanks, -Utkarsh On Fri, Oct 18, 2013 at 12:02 PM, Chris Hostetter wrote: > > : I trying to do this: > : > : if (US_offers_i exists): > :fq=US_offers_i:[1 TO *] > : else: > :fq=offers_count:[1 TO *] > > "if()" and "exist()" are funct

Re: Check if dynamic columns exists and query else ignore

2013-10-18 Thread Chris Hostetter
: I trying to do this: : : if (US_offers_i exists): :fq=US_offers_i:[1 TO *] : else: :fq=offers_count:[1 TO *] "if()" and "exist()" are functions, so you would have to explicitly use them in a function context (ie: {!func} parser, or {!frange} parser) and to use those nested queries i

Re: Check if dynamic columns exists and query else ignore

2013-10-18 Thread Utkarsh Sengar
Bumping this one, any suggestions? Looks like if() and exists() are meant to solve this problem, but I am using it in a wrong way. -Utkarsh On Thu, Oct 17, 2013 at 1:16 PM, Utkarsh Sengar wrote: > I trying to do this: > > if (US_offers_i exists): >fq=US_offers_i:[1 TO *] > else: >fq=off