Print

Print


David Jiao wrote:
> Hi, I have a question on a CQL query like
>
> word and and
>
> Is this a valid CQL query? According to the BNF, I think it is, since
It's valid.

> "and" is a valid *term*. THe parse tree can be viewed as -
>
> cqlQuery
> scopedClause
>  searchClause
>   searchTerm
>    term
>     identifier: (word)
>  booleanGroup
>   boolean: (and)
>  searchClause
>   searchTerm
>    term: (and)

Correct.

>
> So does CQL BNF include "and", "or", "prox", "not" in the *Term* node on
> purpose so users can search for these words?
Yes.

/ Adam

>
> Thanks!
>
> David
>
> --
> Dazhi (David) Jiao
> System Analyst / Programmer
> Digital Library Program, Indiana University at Bloomington
> Tel: 812.856.0089  Email: [log in to unmask]
>