|
|
Choosing A Webhost: |
9317: trunk/xapian-core/ trunk/xapian-core/include/xapian/ trunk/xapian-cor: msg#00109search.xapian.cvs
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
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | 9316: trunk/xapian-bindings/ trunk/xapian-bindings/python/docs/, richard |
|---|---|
| Next by Date: | 9318: trunk/xapian-core/ trunk/xapian-core/backends/flint/, olly |
| Previous by Thread: | 9316: trunk/xapian-bindings/ trunk/xapian-bindings/python/docs/, richard |
| Next by Thread: | 9318: trunk/xapian-core/ trunk/xapian-core/backends/flint/, olly |
| 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 |