'Difference between below two methods in hibernate-search

What is difference between below two methods and what is the equivalent method for onFields(String, String[]) in hibernate-search 6 ?

QueryBuilder.simpleQueryString().onFields(String, String[]) //hibernate-search 5

SearchPredicateFactory.simpleQueryString().fields(String,String) // hibernate-search 6

Also,is there equivalent method for fullTextEntityManager.close(); in hibernate search 6 like searchSession.close()?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source