mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-08 14:51:49 +00:00
Merged searchapi (5.2.1) to 5.2.N (5.2.1)
130022 gjames: Merged 5.2.N-AHIND (5.2.1) to searchapi (5.2.1) 129926 ahind: SEARCH-31 SOLR 6 - Shard based on date - SOLR implementation - Support returning a date, datetime or string property to use for sharding git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@130285 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -102,7 +102,7 @@ public class SOLRDAOTest extends TestCase
|
||||
@Override
|
||||
public List<Node> execute() throws Throwable
|
||||
{
|
||||
return solrDAO.getNodes(nodeParameters);
|
||||
return solrDAO.getNodes(nodeParameters, null);
|
||||
}
|
||||
}, true);
|
||||
}
|
||||
|
@@ -88,7 +88,7 @@ public class DbOrIndexSwitchingQueryLanguageTest
|
||||
when(indexQueryLang.executeQuery(argThat(isSearchParamsSinceTxId(null)), eq(admLuceneSearcher))).thenReturn(indexResults);
|
||||
when(indexResults.getLastIndexedTxId()).thenReturn(80L);
|
||||
when(dbQueryLang.executeQuery(argThat(isSearchParamsSinceTxId(80L)), eq(admLuceneSearcher))).thenReturn(dbResults);
|
||||
when(solrDAO.getNodes(argThat(isNodeParamsFromTxnId(81L)))).thenReturn(changedNodes);
|
||||
when(solrDAO.getNodes(argThat(isNodeParamsFromTxnId(81L)), null)).thenReturn(changedNodes);
|
||||
|
||||
searchParameters.setQueryConsistency(QueryConsistency.HYBRID);
|
||||
|
||||
|
@@ -131,6 +131,12 @@ class TestNode implements Node
|
||||
public AuditablePropertiesEntity getAuditableProperties()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getShardKey()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user