Add truncation attributes.
authorMike Taylor <mike@indexdata.com>
Fri, 19 Dec 2003 12:00:36 +0000 (12:00 +0000)
committerMike Taylor <mike@indexdata.com>
Fri, 19 Dec 2003 12:00:36 +0000 (12:00 +0000)
etc/pqf.properties

index 5e15948..22e6b9b 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: pqf.properties,v 1.5 2003-12-18 16:49:07 mike Exp $
+# $Id: pqf.properties,v 1.6 2003-12-19 12:00:36 mike Exp $
 #
 # Propeties file to drive org.z3950.zing.cql.CQLNode's toPQF()
 # back-end and the YAZ CQL-to-PQF converter.  This specifies the
@@ -109,11 +109,22 @@ structure.any                             = 4=2
 structure.*                            = 4=1
        # phrase
 
+# Truncation attributes used to implement CQL wildcard patterns.  The
+# simpler forms, left, right- and both-truncation will be used for the
+# simplest patterns, so that we produce PQF queries that conform more
+# closely to the Bath Profile.  However, when a more complex pattern
+# such as "foo*bar" is used, we fall back on Z39.58-style masking.
+#
+truncation.right                       = 5=1
+truncation.left                                = 5=2
+truncation.both                                = 5=3
+truncation.none                                = 5=100
+truncation.z3958                       = 5=104
+
 # Finally, any additional attributes that should always be included
 # with each term can be specified in the "always" property.
 #
-always                                 = 5=105 6=1
-# 5=105: the not-yet-standarised CQL-like trunction attribute
+always                                 = 6=1
 # 6=1: completeness = incomplete subfield