don't append "*" to the term, it doesn't make sense and is confusing

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150672 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Daniel Naber 2004-11-24 19:41:16 +00:00
parent 31335c60ae
commit 1bc761f26a
1 changed files with 2 additions and 2 deletions

View File

@ -72,7 +72,7 @@ public class TestMultiPhraseQuery extends TestCase
// this TermEnum gives "piccadilly", "pie" and "pizza".
String prefix = "pi";
TermEnum te = ir.terms(new Term("body", prefix + "*"));
TermEnum te = ir.terms(new Term("body", prefix));
do {
if (te.term().text().startsWith(prefix))
{
@ -95,7 +95,7 @@ public class TestMultiPhraseQuery extends TestCase
MultiPhraseQuery query3 = new MultiPhraseQuery();
termsWithPrefix.clear();
prefix = "blue";
te = ir.terms(new Term("body", prefix + "*"));
te = ir.terms(new Term("body", prefix));
do {
if (te.term().text().startsWith(prefix))
{