From 6e692d38ec217f91329ec94692cb0a927d5cca2f Mon Sep 17 00:00:00 2001 From: Karl-Johan Wettin Date: Mon, 9 Feb 2009 11:49:33 +0000 Subject: [PATCH] LUCENE-1531 Added support for BoostingTermQuery to XML query parser. git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@742411 13f79535-47bb-0310-9956-ffa450edef68 --- contrib/CHANGES.txt | 3 ++ contrib/xml-query-parser/LuceneCoreQuery.dtd | 27 +++++++++++- .../apache/lucene/xmlparser/CoreParser.java | 23 +++-------- .../builders/BoostingTermBuilder.java | 41 +++++++++++++++++++ .../lucene/xmlparser/BoostingTermQuery.xml | 2 + .../org/apache/lucene/xmlparser/SpanQuery.xml | 3 +- .../apache/lucene/xmlparser/TestParser.java | 14 ++++--- 7 files changed, 87 insertions(+), 26 deletions(-) create mode 100644 contrib/xml-query-parser/src/java/org/apache/lucene/xmlparser/builders/BoostingTermBuilder.java create mode 100644 contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/BoostingTermQuery.xml diff --git a/contrib/CHANGES.txt b/contrib/CHANGES.txt index dc4d38db796..53f1af96d9a 100644 --- a/contrib/CHANGES.txt +++ b/contrib/CHANGES.txt @@ -31,6 +31,9 @@ New features RangeQuery at the expense of added space (additional indexed tokens) consumed in the index. (Uwe Schindler via Mike McCandless) + 2. LUCENE-1531: Added support for BoostingTermQuery to XML query parser. (Karl Wettin) + + Documentation (None) diff --git a/contrib/xml-query-parser/LuceneCoreQuery.dtd b/contrib/xml-query-parser/LuceneCoreQuery.dtd index 6978209f6c6..4208d434573 100644 --- a/contrib/xml-query-parser/LuceneCoreQuery.dtd +++ b/contrib/xml-query-parser/LuceneCoreQuery.dtd @@ -53,8 +53,8 @@ --> - - + + @@ -186,6 +186,29 @@ Passes content directly through to the standard LuceneQuery parser see "Lucene Q + + + + + + + +