org.infinispan.query
Interface SearchManager


public interface SearchManager

The SearchManager is the entry point to create full text queries on top of a cache.

Author:
Sanne Grinovero (C) 2011 Red Hat Inc.

Method Summary
 org.hibernate.search.query.dsl.EntityContext buildQueryBuilderForClass(Class<?> entityType)
          Experimental.
 CacheQuery getQuery(org.apache.lucene.search.Query luceneQuery, Class<?>... classes)
          This is a simple method that will just return a CacheQuery, filtered according to a set of classes passed in.
 org.hibernate.search.SearchFactory getSearchFactory()
          Experimental.
 

Method Detail

getQuery

CacheQuery getQuery(org.apache.lucene.search.Query luceneQuery,
                    Class<?>... classes)
This is a simple method that will just return a CacheQuery, filtered according to a set of classes passed in. If no classes are passed in, it is assumed that no type filtering is performed and so all known types will be searched.

Parameters:
luceneQuery - - Query
classes - - optionally only return results of type that matches this list of acceptable types
Returns:
the CacheQuery object which can be used to iterate through results

buildQueryBuilderForClass

org.hibernate.search.query.dsl.EntityContext buildQueryBuilderForClass(Class<?> entityType)
Experimental. Provides Hibernate Search DSL to build full text queries

Returns:

getSearchFactory

org.hibernate.search.SearchFactory getSearchFactory()
Experimental. Access the SearchFactory


-->

Copyright © 2011 JBoss, a division of Red Hat. All Rights Reserved.