|
|
Choosing A Webhost: |
9321: trunk/xapian-core/ trunk/xapian-core/include/xapian/ trunk/xapian-cor: msg#00113search.xapian.cvs
SVN root: svn://svn.xapian.org/xapian Changes by: richard Revision: 9321 Date: 2007-09-21 15:11:54 +0100 (Fri, 21 Sep 2007) Log message (30 lines): include/xapian/queryparser.h,queryparser/queryparser.cc: API addition: Revert previous change to behaviour of QueryParser::add_prefix and QueryParser::add_boolean_prefix methods, to avoid API change within a release series. Add new QueryParser::add_prefix() form which takes three parameters; the third parameter is a value from a new "prefix_type" enum. queryparser/queryparser.lemony,queryparser/queryparser_internal.h: Internal changes to allow multiple filters to be set for a single field: - Remove the PrefixInfoList object again - instead add a list of prefixes to PrefixInfo. We only aim to support one type of prefix for a given field, so the extra flexibility given by PrefixInfoList is a districation. - Change filter_group_id to be based on a list of prefixes, instead of a single prefix. - Change Term objects to store a list of prefixes instead of a single prefix. make_term() now takes a prefix argument and makes a single term. Term::as_... methods iterate through the prefix list and OR together the resulting terms. - Change TermList object to store a list of Terms instead of Queries, and also to keep track of whether the prefix lists for those Terms are all the same. When they are the same, generate separate phrases for each prefix, and OR them togeher, instead of generating phrases of "OR" groups of terms. Remove the unused "TermList::add_term()" method. tests/queryparsertest.cc: Add simple tests of repeated inline fields, phrases with multiple prefixed fields, tests of backwards compatible behaviour of add_prefix(field, prefix), and add_boolean_prefix(), and of the new add_prefix() form with incompatible types. 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?9321 http://xapian.org/C?9321?trunk/xapian-core/ChangeLog http://xapian.org/C?9321?trunk/xapian-core/include/xapian/queryparser.h http://xapian.org/C?9321?trunk/xapian-core/queryparser/queryparser.cc http://xapian.org/C?9321?trunk/xapian-core/queryparser/queryparser.lemony http://xapian.org/C?9321?trunk/xapian-core/queryparser/queryparser_internal.h http://xapian.org/C?9321?trunk/xapian-core/tests/queryparsertest.cc
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | 9320: trunk/xapian-maintainer-tools/win32msvc/makedepend/, olly |
|---|---|
| Next by Date: | 9322: trunk/xapian-core/ trunk/xapian-core/queryparser/ trunk/xapian-core/tests/, richard |
| Previous by Thread: | 9320: trunk/xapian-maintainer-tools/win32msvc/makedepend/, olly |
| Next by Thread: | 9322: trunk/xapian-core/ trunk/xapian-core/queryparser/ trunk/xapian-core/tests/, richard |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |