{i18n}Search Criteria Editor{/i18n}

{i18n}The search criteria editor allows you to utilise the full power of the KnowledgeTree search engine by allowing you to perform more complicated searches by using the free text criteria format.{/i18n} {capture assign=options} Advanced Search {/capture}

{i18n arg_options=$options}The #options# may also be used to perform searches.{/i18n}

{/if}
{if $txtQuery == ''} {assign var=txtQuery value="Title contains \"something\" or \nMetadata contains \"else\""} {/if} {literal} {/literal} {i18n}Advanced Query{/i18n}

{if $bSave}
{i18n}Save{/i18n} {i18n}You are currently editing the saved search:{/i18n}{$edtSaveQueryName}
{i18n}Grammar{/i18n} {i18n}Criteria may be built up using the following grammar:{/i18n}
expr ::= expr {literal}{{/literal} AND | OR {literal}}{/literal} expr
expr ::= NOT expr
expr ::= (expr)
expr ::= field {literal}{ < | <= | = | > | >= | CONTAINS |STARTS WITH | ENDS WITH }{/literal} value
expr ::= field BETWEEN value AND value
expr ::= field DOES [ NOT ] CONTAIN value
expr ::= field IS [ NOT ] LIKE value
value ::= "{i18n}search text here{/i18n}"

{literal} {/literal}

{i18n}Fields{/i18n} {i18n}The following fields may be used in search criteria:{/i18n} {assign var=i value=0} {foreach item=alias from=$aliases} {if (substr($alias,0,2) != '["')} {if $i>0}, {/if} {if (($i % 8) == 0)}
{/if} {$alias} {assign var=i value=$i+1} {/if} {/foreach}