Skip to content

Commit

Permalink
HSEARCH-3999 Fix migration helper test not using the right query type…
Browse files Browse the repository at this point in the history
… for an embedded ID
  • Loading branch information
yrodiere committed Sep 24, 2020
1 parent 2ad9de6 commit 14f201c
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -11,6 +11,7 @@
import java.util.ArrayList;
import java.util.List;

import org.apache.lucene.document.LongPoint;
import org.apache.lucene.index.Term;
import org.apache.lucene.queryparser.classic.MultiFieldQueryParser;
import org.apache.lucene.queryparser.classic.ParseException;
Expand Down Expand Up @@ -68,7 +69,7 @@ public void testEmbeddedIndexing() throws Exception {
result = session.createFullTextQuery( query, Tower.class ).list();
assertEquals( "unable to find property in embedded", 1, result.size() );

query = parser.parse( "address.id:" + a.getId().toString() );
query = LongPoint.newExactQuery( "address.id", a.getId() );
result = session.createFullTextQuery( query, Tower.class ).list();
assertEquals( "unable to find property by id of embedded", 1, result.size() );

Expand Down

0 comments on commit 14f201c

Please sign in to comment.