Search API updates. FTS fixes for range and dual tokenisation.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14419 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Andrew Hind
2009-05-22 14:36:48 +00:00
parent 373c26db78
commit 7c934abbe4
55 changed files with 5625 additions and 3905 deletions

View File

@@ -31,7 +31,6 @@ import java.util.List;
import org.alfresco.service.cmr.repository.ChildAssociationRef;
import org.alfresco.service.cmr.repository.NodeRef;
import org.alfresco.service.cmr.repository.Path;
import org.alfresco.service.cmr.search.LimitBy;
import org.alfresco.service.cmr.search.PermissionEvaluationMode;
import org.alfresco.service.cmr.search.ResultSet;
@@ -39,19 +38,22 @@ import org.alfresco.service.cmr.search.ResultSetMetaData;
import org.alfresco.service.cmr.search.ResultSetRow;
import org.alfresco.service.cmr.search.SearchParameters;
/**
* An empty result set
* @author andyh
*
*/
public class EmptyResultSet implements ResultSet
{
/**
* Default constructor
*/
public EmptyResultSet()
{
super();
}
public Path[] getPropertyPaths()
{
return new Path[]{};
}
public int length()
{
return 0;
@@ -80,7 +82,6 @@ public class EmptyResultSet implements ResultSet
public ResultSetRow getRow(int i)
{
// TODO Auto-generated method stub
throw new UnsupportedOperationException();
}
@@ -96,7 +97,6 @@ public class EmptyResultSet implements ResultSet
public ChildAssociationRef getChildAssocRef(int n)
{
// TODO Auto-generated method stub
throw new UnsupportedOperationException();
}
@@ -104,4 +104,14 @@ public class EmptyResultSet implements ResultSet
{
return new SimpleResultSetMetaData(LimitBy.UNLIMITED, PermissionEvaluationMode.EAGER, new SearchParameters());
}
public int getStart()
{
return 0;
}
public boolean hasMore()
{
return false;
}
}