Skip to content

Commit

Permalink
Bindu | BAH-1947 | Enable Sort option for registration lucene patient…
Browse files Browse the repository at this point in the history
… identifier search (#153)
  • Loading branch information
binduak authored Oct 3, 2022
1 parent c186754 commit 18dfabc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -259,9 +259,9 @@ private List<PatientIdentifier> getPatientIdentifiers(String identifier, Boolean
.must(nonVoidedPatients)
.must(identifierTypeShouldJunction.createQuery())
.createQuery();
// Sort sort = new Sort( new SortField( "identifier", SortField.Type.STRING, false ) );
Sort sort = new Sort( new SortField( "identifierExact", SortField.Type.STRING, false ) );
FullTextQuery fullTextQuery = fullTextSession.createFullTextQuery(booleanQuery, PatientIdentifier.class);
// fullTextQuery.setSort(sort);
fullTextQuery.setSort(sort);
fullTextQuery.setFirstResult(offset);
fullTextQuery.setMaxResults(length);
return (List<PatientIdentifier>) fullTextQuery.list();
Expand Down

0 comments on commit 18dfabc

Please sign in to comment.