server/integration/testsuite/src/test/java/org/infinispan/server/test/query/RemoteQueryIT.java
/**
     * Sorting on a field that does not contain DocValues so Hibernate Search is forced to uninvert it.
     * @see <a href="https://issues.jboss.org/browse/ISPN-5729">https://issues.jboss.org/browse/ISPN-5729</a>
     */
Sorting on a field that does not contain DocValues so Hibernate Search is forced to uninvert it.
Sorting on a field that does not contain DocValues so Hibernate Search is forced to uninvert it .
@Test
    public void testUninverting() throws Exception {
        remoteCache.put(1, createUser1());
        remoteCache.put(2, createUser2());
        QueryFactory qf = Search.getQueryFactory(remoteCache);
        Query query = qf.from(User.class)
              .having("name").eq("John")
              .orderBy("id")
              .build();
        assertEquals(0, query.list().size());
    }
@ Test public void testUninverting ( ) throws Exception { remoteCache . put ( 1 , createUser1 ( ) ) ; remoteCache . put ( 2 , createUser2 ( ) ) ; QueryFactory qf = Search . getQueryFactory ( remoteCache ) ; Query query = qf . from ( User . class ) . having ( "name" ) . eq ( "John" ) . orderBy ( "id" ) . build ( ) ; assertEquals ( 0 , query . list ( ) . size ( ) ) ; }
Sorting on a field that does not contain DocValues so Hibernate Search is forced to uninvert it.
Sorting on a field that does not contain DocValues so Hibernate Search is forced to uninvert it .