|
|
Choosing A Webhost: |
9476: trunk/xapian-core/ trunk/xapian-core/include/xapian/ trunk/xapian-cor: msg#00091search.xapian.cvs
SVN root: svn://svn.xapian.org/xapian Changes by: olly Revision: 9476 Date: 2007-10-19 03:47:11 +0100 (Fri, 19 Oct 2007) Log message (14 lines): include/xapian/queryparser.h,queryparser/queryparser.cc, queryparser/queryparser.lemony,queryparser/queryparser_internal.h, tests/queryparsertest.cc: Since calling QueryParser::add_prefix() or QueryParser::add_boolean_prefix() a second time with the same field name was ignored before (rather than overriding as we had thought) it seems reasonable to change this behaviour. This also avoids the need to deprecate these methods which will force all users to update their code. Change the semantics of default_prefix - it's more useful if this overrides any default prefixes set with add_prefix(), since this allows the same QueryParser object to parse both a "general" search input which searches several fields and also a "title" search input. Trying to set the same field as probabilistic and boolean now throws InvalidOperationError rather than UnimplementedError. 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?9476 http://xapian.org/C?9476?trunk/xapian-core/ChangeLog http://xapian.org/C?9476?trunk/xapian-core/include/xapian/queryparser.h http://xapian.org/C?9476?trunk/xapian-core/queryparser/queryparser.cc http://xapian.org/C?9476?trunk/xapian-core/queryparser/queryparser.lemony http://xapian.org/C?9476?trunk/xapian-core/queryparser/queryparser_internal.h http://xapian.org/C?9476?trunk/xapian-core/tests/queryparsertest.cc
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | 9475: trunk/xapian-core/ trunk/xapian-core/queryparser/, olly |
|---|---|
| Next by Date: | 9477: trunk/xapian-core/ trunk/xapian-core/docs/, olly |
| Previous by Thread: | 9475: trunk/xapian-core/ trunk/xapian-core/queryparser/, olly |
| Next by Thread: | 9477: trunk/xapian-core/ trunk/xapian-core/docs/, 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 |