fdb-record-layer icon indicating copy to clipboard operation
fdb-record-layer copied to clipboard

AUTO-COMPLETE does not complete phrases which contain stop words in them

Open qdnguyen0 opened this issue 1 year ago • 0 comments

Simple reproducing test case (using the syntax in LuceneIndexTest.java inside of RecordLayer):

    recordStore.saveRecord(createSimpleDocument(1623L, "united states of america", 1));
    recordStore.saveRecord(createSimpleDocument(1624L, "welcome to the united states of america", 1));
    recordStore.saveRecord(createSimpleDocument(1625L, "united kingdom, france, the states", 1));
    recordStore.saveRecord(createSimpleDocument(1626L, "The countries are united kingdom, france, the states", 1));
    recordStore.saveRecord(createSimpleDocument(1627L, "states united as a country", 1));
    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(1631L, "united states is a country in the continent of america", 1));

queryAndAssertAutoCompleteSuggestionsReturned(index, storedFields, "text", ""united states of america\””, ImmutableList.of("united states of america", "welcome to the united states of america"));

However, this does not return any results.

qdnguyen0 avatar Nov 30 '23 21:11 qdnguyen0