Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.infinispan.query.remote.search;
 
 import  org.apache.lucene.search.Query;
 import  org.hibernate.hql.ast.spi.predicate.IsNullPredicate;
 import  org.hibernate.search.query.dsl.QueryBuilder;

Lucene-based IS NULL predicate.

Author(s):
Gunnar Morling
class IspnLuceneIsNullPredicate extends IsNullPredicate<Query> {
   private final QueryBuilder builder;
   private final String nullToken;
   public IspnLuceneIsNullPredicate(QueryBuilder builderString propertyNameString nullToken) {
      super(propertyName);
      this. = builder;
      this. = nullToken;
   }
   @Override
   public Query getQuery() {
      return .keyword().onField(propertyName).ignoreFieldBridge().matching().createQuery();
   }
New to GrepCode? Check out our FAQ X