Skip to content

Commit

Permalink
fix auto-complete record IDs so that all text samples have unique rec…
Browse files Browse the repository at this point in the history
…ord IDs
  • Loading branch information
alecgrieser committed May 24, 2022
1 parent 662edfc commit f659f62
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1121,6 +1121,7 @@ void testAutoCompleteSearchForPhrase() throws Exception {
"states united as a country",
"states have been united as a country",
"all the states united as a country",
"all the states have been united as a country",
"welcome to the united states of america",
"The countries are united kingdom, france, the states"));

Expand Down Expand Up @@ -1178,6 +1179,7 @@ void testAutoCompleteSearchWithHighlightForPhrase() throws Exception {
"<b>states</b> <b>united</b> as a country",
"<b>states</b> have been <b>united</b> as a country",
"all the <b>states</b> <b>united</b> as a country",
"all the <b>states</b> have been <b>united</b> as a country",
"welcome to the <b>united</b> <b>states</b> of america",
"The countries are <b>united</b> kingdom, france, the <b>states</b>"));

Expand Down Expand Up @@ -1776,7 +1778,7 @@ private void addIndexAndSaveRecordsForAutoCompleteOfPhrase(@Nonnull FDBRecordCon
recordStore.saveRecord(createSimpleDocument(1628L, "all the states united as a country", 1));
recordStore.saveRecord(createSimpleDocument(1629L, "states have been united as a country", 1));
recordStore.saveRecord(createSimpleDocument(1630L, "all the states have been united as a country", 1));
recordStore.saveRecord(createSimpleDocument(1630L, "united states is a country in the continent of america", 1));
recordStore.saveRecord(createSimpleDocument(1631L, "united states is a country in the continent of america", 1));
}

private void queryAndAssertAutoCompleteSuggestionsReturned(@Nonnull Index index, @Nonnull String searchKey, @Nonnull List<String> expectedSuggestions) throws Exception {
Expand Down

0 comments on commit f659f62

Please sign in to comment.