Show rewrite on overview
Change-Id: I93d0a31445430ea394c058b2d7685d86f056edd4
diff --git a/dev/demo/all.html b/dev/demo/all.html
index f878e36..eb78dc4 100644
--- a/dev/demo/all.html
+++ b/dev/demo/all.html
@@ -107,7 +107,66 @@
/*
KorAP.koralQuery = {"matches":["..."],"errors":[[302,"Parantheses\/brackets unbalanced.","20"]],"query":{"wrap":{"layer":"orth","match":"match:eq","foundry":"opennlp","key":"Goethe","@type":"koral:term"},"@type":"koral:token"},"meta":{"serialQuery":"tokens:s:Goethe","startIndex":0,"version":"unknown","itemsPerPage":25,"context":"p","benchmark":"0.103553092 s","totalResults":-1}};
*/
- KorAP.koralQuery = {"matches":["..."],"query":{"wrap":{"layer":"orth","match":"match:eq","foundry":"opennlp","key":"Goethe","@type":"koral:term"},"@type":"koral:token"},"meta":{"serialQuery":"tokens:s:Goethe","startIndex":0,"version":"unknown","itemsPerPage":25,"context":"p","benchmark":"0.103553092 s","totalResults":-1}};
+
+KorAP.koralQuery = {
+ "matches":["..."],
+ "collection":{
+ "@type": "koral:docGroup",
+ "operation": "operation:or", "operands": [{
+ "@type": "koral:docGroup",
+ "operation": "operation:and",
+ "operands": [
+ {
+ "@type": "koral:doc",
+ "key": "title",
+ "match": "match:eq",
+ "value": "Der Birnbaum",
+ "type": "type:string"
+ },
+ {
+ "@type": "koral:doc",
+ "key": "pubPlace",
+ "match": "match:eq",
+ "value": "Mannheim",
+ "type": "type:string"
+ },
+ {
+ "@type": "koral:docGroup",
+ "operation": "operation:or",
+ "operands": [
+ {
+ "@type": "koral:doc",
+ "key": "subTitle",
+ "match": "match:eq",
+ "value": "Aufzucht und Pflege",
+ "type": "type:string"
+ },
+ {
+ "@type": "koral:doc",
+ "key": "subTitle",
+ "match": "match:eq",
+ "value": "Gedichte",
+ "type": "type:string"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "@type": "koral:doc",
+ "key": "pubDate",
+ "match": "match:geq",
+ "value": "2015-03-05",
+ "type": "type:date",
+ "rewrites" : [{
+ "@type" : "koral:rewrite",
+ "operation" : "operation:modification",
+ "src" : "querySerializer",
+ "scope" : "tree"
+ }]
+ }
+ ]
+}, "query":{"wrap":{"layer":"orth","match":"match:eq","foundry":"opennlp","key":"Goethe","@type":"koral:term"},"@type":"koral:token"},"meta":{"serialQuery":"tokens:s:Goethe","startIndex":0,"version":"unknown","itemsPerPage":25,"context":"p","benchmark":"0.103553092 s","totalResults":-1}};
</script>
<div id="search">