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 java.lang.String |
ALL_PROJECTIONS |
static java.lang.String |
TOTAL_SIZE |
chainedList, values
Constructor and Description |
---|
FullText(SearchValues values,
java.lang.String query,
java.lang.Class<? extends org.apache.lucene.analysis.Analyzer> analyzer)
Creates a new instance; Passes the query directly on to the Lucene
parser.
|
FullText(SearchValues values,
java.lang.String fields,
java.lang.String from,
java.lang.String to,
java.lang.String dateType,
java.lang.String query,
java.lang.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 |
---|---|
java.lang.Object |
doWork(org.hibernate.Session s,
ServiceFactory sf)
Work method.
|
java.lang.Object[] |
getProjections(IObject object) |
java.lang.Float |
getScore(IObject object) |
java.lang.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 java.lang.String ALL_PROJECTIONS
public static final java.lang.String TOTAL_SIZE
public FullText(SearchValues values, java.lang.String fields, java.lang.String from, java.lang.String to, java.lang.String dateType, java.lang.String query, java.lang.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, java.lang.String query, java.lang.Class<? extends org.apache.lucene.analysis.Analyzer> analyzer)
values
- query
- analyzer
- protected void initializeQuery(org.hibernate.search.FullTextQuery ftQuery)
ftQuery
- @Transactional(readOnly=true) public java.lang.Object doWork(org.hibernate.Session s, ServiceFactory sf)
Executor.Work
Object
return method.s
- non null.sf
- non null.public java.lang.Float getScore(IObject object)
public java.lang.Integer getTotalSize(IObject object)
public java.lang.Object[] getProjections(IObject object)
Version: 5.4.6-ice35-b87
Copyright © 2018 The University of Dundee & Open Microscopy Environment. All Rights Reserved.