Added new fundamental filter 'xslt'. This filter reads XML records
[idzebra-moved-to-github.git] / test / charmap / charmap1.c
index 1ef2269..137e872 100644 (file)
@@ -1,6 +1,6 @@
-/* $Id: charmap1.c,v 1.1 2004-12-02 13:59:08 adam Exp $
-   Copyright (C) 2003,2004
-   Index Data Aps
+/* $Id: charmap1.c,v 1.4 2005-03-11 17:56:36 adam Exp $
+   Copyright (C) 1995-2005
+   Index Data ApS
 
 This file is part of the Zebra server.
 
@@ -28,6 +28,8 @@ int main(int argc, char **argv)
     ZebraHandle  zh = zebra_open(zs);
     char path[256];
 
+    check_filter(zs, "grs.xml");
+
     zebra_select_database(zh, "Default");
 
     zebra_init(zh);
@@ -44,5 +46,17 @@ int main(int argc, char **argv)
     do_query(__LINE__, zh, "@term string ḥ", 1);
 
 
+    /* search for UNICODE A ring */
+    do_query(__LINE__, zh, "@term string lås", 1);
+
+    /* search for aa  */
+    do_query(__LINE__, zh, "@term string laas", 1);
+
+    /* search for aa  (regular) */
+    do_query(__LINE__, zh, "@attr 5=102 @term string lås", 1);
+
+    /* search for aaa  */
+    do_query(__LINE__, zh, "@term string laaas", 0);
+
     return close_down(zh, zs, 0);
 }