From da8068b4715e046e3d4592834f9bb9d5c9dac855 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Sun, 24 Mar 2002 16:19:23 +0000 Subject: [PATCH] PQF feature: @use=value --- CHANGELOG | 2 ++ zutil/pquery.c | 10 ++++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index a6073c2..85e343c 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -2,6 +2,8 @@ Possible compatibility problems with earlier versions marked with '*'. --- 1.8.6 2002/MM/DD +Added PQF feature: '@attr use=value' may be written as '@use=value'. + Client displays USR.1:SearchResult-1 (hits per term). Additional Search Info for search in Generic Frontend Server. diff --git a/zutil/pquery.c b/zutil/pquery.c index adb54c7..55c2c67 100644 --- a/zutil/pquery.c +++ b/zutil/pquery.c @@ -2,7 +2,7 @@ * Copyright (c) 1995-2002, Index Data. * See the file LICENSE for details. * - * $Id: pquery.c,v 1.12 2002-01-23 20:25:42 adam Exp $ + * $Id: pquery.c,v 1.13 2002-03-24 16:19:23 adam Exp $ */ #include @@ -70,7 +70,13 @@ static int query_token (struct lex_info *li) ++(*qptr); } li->lex_buf = *qptr; - + + if (**qptr == li->escape_char && isdigit ((*qptr)[1])) + { + ++(li->lex_len); + ++(*qptr); + return 'l'; + } while (**qptr && **qptr != sep_char) { if (**qptr == '\\') -- 1.7.10.4