We're updating the issue view to help you get more done. 

Search 6 groundwork - Replace Search.getSearchSession(Session) with SearchSession.get(Session)

Description

This:

1 2 3 SearchResult<Book> result = Search.getSearchSession(em).search(Book.class) .predicate(f -> f.matchAll()) .fetch(20, 0);

will become this:

1 2 3 SearchResult<Book> result = SearchSession.get(em).search(Book.class) .predicate(f -> f.matchAll()) .fetch(20, 0);

Keep Search.getSearchSession() for now, but implement it as a redirection to SearchSession.get(), and deprecate it.

Be sure to replace every use of Search.getSearchSession() in our code with the new syntax.

Environment

None

Status

Assignee

Unassigned

Reporter

Yoann Rodière

Components

Fix versions

Priority

Major