Complex Search with "OR" #724
-
I would like to make a quiet complex query with a chain of smaller queries connected with th OR-operator. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
In general, the OR-queries have a tendency to get complicated when trying to reference the nodes by number. It should be possible however, to use the shortcut for the operators and keep all "OR" relations on the toplevel. E.g. instead of
(which does not work because the automatic nodes numbers are more complicated in OR-queries, you could write
(https://korpling.org/annis3/?id=a2f8d2dc-a607-4651-94f5-0ed03bbbe3a4) which puts the operator directly between the nodes. If you want to reference a node from several or-parts, you could explicitly name it instead of relying on the automatic numbering.
(https://korpling.org/annis3/?id=1cd68504-b78a-46d2-a698-e92c417fa836) Also, the handling and especially nesting of OR-terms has been improved in the ANNIS 4 release. |
Beta Was this translation helpful? Give feedback.
In general, the OR-queries have a tendency to get complicated when trying to reference the nodes by number. It should be possible however, to use the shortcut for the operators and keep all "OR" relations on the toplevel. E.g. instead of
(which does not work because the automatic nodes numbers are more complicated in OR-queries, you could write
(https://korpling.org/annis3/?id=a2f8d2dc-a607-4651-94f5-0ed03bbbe3a4) which puts the operator directly between the nodes. If you want to reference a node from several or-parts, you could explicitly name it instead of relying on the automatic numbering.