|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.infinispan.query.QueryFactory
public class QueryFactory
Class that is used to build CacheQuery
Constructor Summary | |
---|---|
QueryFactory(Cache cache,
QueryHelper qh)
|
Method Summary | |
---|---|
CacheQuery |
getBasicQuery(String field,
String search)
Deprecated. |
CacheQuery |
getBasicQuery(String field,
String search,
org.apache.lucene.util.Version luceneVersion)
This method is a basic query. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public QueryFactory(Cache cache, QueryHelper qh)
Method Detail |
---|
public CacheQuery getQuery(org.apache.lucene.search.Query luceneQuery, Class<?>... classes)
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.
luceneQuery
- - Query
classes
- - only return results of type that matches this list of acceptable types
public CacheQuery getBasicQuery(String field, String search, org.apache.lucene.util.Version luceneVersion) throws org.apache.lucene.queryParser.ParseException
Query
is built.
The first string is the field that they are searching and the second one is the search that they want to run.
For example: -
CacheQuery
cq = new QueryFactory
The query is built by use of a QueryParser
and a StandardAnalyzer
field
- - the field on the class that you are searchingsearch
- - the String that you want to be using to search
CacheQuery
result
org.apache.lucene.queryParser.ParseException
@Deprecated public CacheQuery getBasicQuery(String field, String search) throws org.apache.lucene.queryParser.ParseException
org.apache.lucene.queryParser.ParseException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |