[Xapian-commits] 9317: trunk/xapian-core/ trunk/xapian-core/include/xapian/ trunk/xapian-core/queryparser/ trunk/xapian-core/tests/

richard xapian-commits at lists.xapian.org
Wed Sep 19 17:21:21 BST 2007


SVN root:       svn://svn.xapian.org/xapian
Changes by:     richard
Revision:       9317
Date:           2007-09-19 17:21:19 +0100 (Wed, 19 Sep 2007)

Log message (18 lines):
include/xapian/queryparser.h,queryparser/queryparser.cc,
queryparser/queryparser.lemony,queryparser/queryparser_internal.h:
Handle repeated calls to QueryParser::add_boolean_prefix() with
the same field - this will generate multiple terms for each
occurrence of the field in the query.  Involves reorganising the
internal representation of prefixes, to hold a list of PrefixInfo
objects for each field, instead of a single object.  This also
paves the way towards handling for multiple calls to
QueryParser:add_prefix() with the same field, and allowing
add_{boolean_}prefix() with an empty field to set the default
prefix handling, but the behaviour of this are currently
unchanged.  Technically, this could be considered an API change,
but the previous behaviour (of using only the most recent value
set by add_boolean_prefix) was unintentional and undocumented,
and seems unlikely to have been deliberately used.
tests/queryparsertest.cc: Add a very simple test for repeated
boolean_prefix fields; several more are needed.  Also, a
commented out test of repeated non-boolean prefix fields.

Modified files:
U   trunk/xapian-core/ChangeLog
U   trunk/xapian-core/include/xapian/queryparser.h
U   trunk/xapian-core/queryparser/queryparser.cc
U   trunk/xapian-core/queryparser/queryparser.lemony
U   trunk/xapian-core/queryparser/queryparser_internal.h
U   trunk/xapian-core/tests/queryparsertest.cc

Links:
http://xapian.org/C?9317
http://xapian.org/C?9317?trunk/xapian-core/ChangeLog
http://xapian.org/C?9317?trunk/xapian-core/include/xapian/queryparser.h
http://xapian.org/C?9317?trunk/xapian-core/queryparser/queryparser.cc
http://xapian.org/C?9317?trunk/xapian-core/queryparser/queryparser.lemony
http://xapian.org/C?9317?trunk/xapian-core/queryparser/queryparser_internal.h
http://xapian.org/C?9317?trunk/xapian-core/tests/queryparsertest.cc



More information about the Xapian-commits mailing list