mirror of
https://github.com/owncloud/ocis
synced 2026-04-25 17:25:21 +02:00
* enhancement: add more kql spec tests and simplify ast normalization * enhancement: kql parser error if query starts with AND * enhancement: add kql docs and support for date and time only dateTimeRestriction queries * enhancement: add the ability to decide how kql nodes get connected connecting nodes (with edges) seem straight forward when not using group, the default connection for nodes with the same node is always OR. THis only applies for first level nodes, for grouped nodes it is defined differently. The KQL docs are saying, nodes inside a grouped node, with the same key are connected by a AND edge. * enhancement: explicit error handling for falsy group nodes and queries with leading binary operator * enhancement: use optimized grammar for kql parser and toolify pigeon * enhancement: simplify error handling * fix: kql implicit 'AND' and 'OR' follows the ms html spec instead of the pdf spec
1.2 KiB
1.2 KiB
Enhancement: Keyword Query Language (KQL) search syntax
We've introduced support for KQL as the default oCIS search query language.
Some examples of a valid KQL query are:
Tag:tag:golden tag:"silver"Filename:name:file.txt name:"file.docx"Content:content:ahab content:"captain aha*"
Conjunctive normal form queries:
Boolean:tag:golden AND tag:"silver,tag:golden OR tag:"silver,tag:golden NOT tag:"silverGroup:(tag:book content:ahab*),tag:(book pdf)
Complex queries:
(name:"moby di*" OR tag:bestseller) AND tag:book NOT tag:read
https://github.com/owncloud/ocis/pull/7212 https://github.com/owncloud/ocis/pull/7043 https://github.com/owncloud/ocis/pull/7247 https://github.com/owncloud/ocis/pull/7248 https://github.com/owncloud/ocis/pull/7254 https://github.com/owncloud/web/pull/9653 https://github.com/owncloud/web/pull/9672 https://github.com/owncloud/ocis/issues/7042 https://github.com/owncloud/ocis/issues/7179 https://github.com/owncloud/ocis/issues/7114 https://github.com/owncloud/web/issues/9636 https://github.com/owncloud/web/issues/9646