Daisy documentation
 PreviousHomeNext 
4.3.3 Creating a variant on a documentBook Index4.3.5 Queries embedded in documents

4.3.4 Searching for non-existing variants

When translating a site, it can be useful to search which documents are not yet translated in a certain language. Similarly, it can be useful to see which documents exist on one branch but not on another. For this purpose, the query language provides a function called DoesNotHaveVariant(branch, language).

For example, to search on the Daisy site for all documents that have been added in the documentation of version 1.3 compared to 1.2, you can use the following query:

select id, name
  where
   InCollection('daisydocs')
   and branch = 'daisydocs-1_3' and language = 'en'
   and DoesNotHaveVariant('daisydocs-1_2', 'en')
 PreviousHomeNext 
4.3.3 Creating a variant on a document4.3.5 Queries embedded in documents