public class LuceneResultSet extends AbstractResultSet
Constructor and Description |
---|
LuceneResultSet(Hits hits,
Searcher searcher,
org.alfresco.service.cmr.repository.NodeService nodeService,
org.alfresco.repo.tenant.TenantService tenantService,
org.alfresco.service.cmr.search.SearchParameters searchParameters,
LuceneConfig config)
Wrap a lucene seach result with node support
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
int |
doc(int index) |
boolean |
getBulkFetch()
Do we bulk fetch
|
int |
getBulkFetchSize()
Get the bulk fetch size.
|
org.alfresco.service.cmr.repository.ChildAssociationRef |
getChildAssocRef(int n) |
org.apache.lucene.document.Document |
getDocument(int n) |
org.alfresco.service.cmr.repository.NodeRef |
getNodeRef(int n) |
org.alfresco.service.cmr.repository.NodeService |
getNodeService() |
long |
getNumberFound() |
org.alfresco.service.cmr.search.ResultSetMetaData |
getResultSetMetaData() |
org.alfresco.service.cmr.search.ResultSetRow |
getRow(int i) |
float |
getScore(int n) |
int |
getStart() |
org.alfresco.repo.tenant.TenantService |
getTenantService() |
boolean |
hasMore() |
ResultSetRowIterator |
iterator() |
int |
length() |
boolean |
setBulkFetch(boolean bulkFetch)
Bulk fetch results in the cache
|
int |
setBulkFetchSize(int bulkFetchSize)
Set the bulk fetch size
|
getChildAssocRefs, getFacetQueries, getFieldFacet, getHighlighting, getNodeRefs, getSpellCheckResult
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public LuceneResultSet(Hits hits, Searcher searcher, org.alfresco.service.cmr.repository.NodeService nodeService, org.alfresco.repo.tenant.TenantService tenantService, org.alfresco.service.cmr.search.SearchParameters searchParameters, LuceneConfig config)
hits
- Hitssearcher
- SearchernodeService
- nodeServicetenantService
- tenant servicesearchParameters
- SearchParametersconfig
- - lucene configpublic ResultSetRowIterator iterator()
public int length()
public org.alfresco.service.cmr.repository.NodeRef getNodeRef(int n)
public float getScore(int n) throws SearcherException
getScore
in interface org.alfresco.service.cmr.search.ResultSetSPI<org.alfresco.service.cmr.search.ResultSetRow,org.alfresco.service.cmr.search.ResultSetMetaData>
getScore
in class AbstractResultSet
SearcherException
public org.apache.lucene.document.Document getDocument(int n)
public void close()
close
in interface org.alfresco.service.cmr.search.ResultSetSPI<org.alfresco.service.cmr.search.ResultSetRow,org.alfresco.service.cmr.search.ResultSetMetaData>
close
in class AbstractResultSet
public org.alfresco.service.cmr.repository.NodeService getNodeService()
public org.alfresco.service.cmr.search.ResultSetRow getRow(int i)
public org.alfresco.service.cmr.repository.ChildAssociationRef getChildAssocRef(int n)
public org.alfresco.service.cmr.search.ResultSetMetaData getResultSetMetaData()
public int getStart()
public boolean hasMore()
public org.alfresco.repo.tenant.TenantService getTenantService()
public boolean setBulkFetch(boolean bulkFetch)
setBulkFetch
in interface org.alfresco.service.cmr.search.ResultSetSPI<org.alfresco.service.cmr.search.ResultSetRow,org.alfresco.service.cmr.search.ResultSetMetaData>
setBulkFetch
in class AbstractResultSet
bulkFetch
- booleanpublic boolean getBulkFetch()
getBulkFetch
in interface org.alfresco.service.cmr.search.ResultSetSPI<org.alfresco.service.cmr.search.ResultSetRow,org.alfresco.service.cmr.search.ResultSetMetaData>
getBulkFetch
in class AbstractResultSet
public int setBulkFetchSize(int bulkFetchSize)
setBulkFetchSize
in interface org.alfresco.service.cmr.search.ResultSetSPI<org.alfresco.service.cmr.search.ResultSetRow,org.alfresco.service.cmr.search.ResultSetMetaData>
setBulkFetchSize
in class AbstractResultSet
bulkFetchSize
- intpublic int getBulkFetchSize()
getBulkFetchSize
in interface org.alfresco.service.cmr.search.ResultSetSPI<org.alfresco.service.cmr.search.ResultSetRow,org.alfresco.service.cmr.search.ResultSetMetaData>
getBulkFetchSize
in class AbstractResultSet
public int doc(int index)
index
- intpublic long getNumberFound()
Copyright © 2005–2017 Alfresco Software. All rights reserved.