mirror of https://github.com/apache/lucene.git
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:
parent
31335c60ae
commit
1bc761f26a
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue