public class FullText extends SearchAction
Query
class. Takes a Google-like search
string and returns fully formed objects via Hibernate Search.Modifier and Type | Field and Description |
---|---|
static String |
ALL_PROJECTIONS |
static String |
TOTAL_SIZE |
chainedList, values
Constructor and Description |
---|
FullText(SearchValues values,
String query,
Class<? extends org.apache.lucene.analysis.Analyzer> analyzer)
Creates a new instance; Passes the query directly on to the Lucene
parser.
|
FullText(SearchValues values,
String fields,
String from,
String to,
String dateType,
String query,
Class<? extends org.apache.lucene.analysis.Analyzer> analyzer)
Constructs a new instance; Builds a Lucence query with the provided
arguments and passes it on the Lucene parser
|
Modifier and Type | Method and Description |
---|---|
Object |
doWork(org.hibernate.Session s,
ServiceFactory sf)
Work method.
|
Object[] |
getProjections(IObject object) |
Float |
getScore(IObject object) |
Integer |
getTotalSize(IObject object) |
protected void |
initializeQuery(org.hibernate.search.FullTextQuery ftQuery)
Allows settings offset and limit on the query.
|
annotatedBetween, annotatedBetween, annotatedBy, annotatedBy, chainedSearch, copyOfValues, createdOrModified, createdOrModified, description, ids, ids, notNullOrLikeOrEqual, notNullOrLikeOrEqual, orderByAscending, orderByPath, ownerOrGroup, ownerOrGroup
public static final String ALL_PROJECTIONS
public static final String TOTAL_SIZE
public FullText(SearchValues values, String fields, String from, String to, String dateType, String query, Class<? extends org.apache.lucene.analysis.Analyzer> analyzer)
values
- fields
- Comma separated field names (name, description, etc.)from
- Date range from in form YYYYMMDDto
- Date range to in form YYYYMMDDdateType
- Type of date Search.DATE_TYPE_ACQUISITION
or
Search.DATE_TYPE_IMPORT
query
- The terms to search foranalyzer
- public FullText(SearchValues values, String query, Class<? extends org.apache.lucene.analysis.Analyzer> analyzer)
values
- query
- analyzer
- protected void initializeQuery(org.hibernate.search.FullTextQuery ftQuery)
ftQuery
- @Transactional(readOnly=true) public Object doWork(org.hibernate.Session s, ServiceFactory sf)
Executor.Work
Object
return method.s
- non null.sf
- non null.
Version: 5.2.8-ice35-b57
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.