@SuppressWarnings("unchecked")
	public Collection<String> searchWithPageKeys(TextPageCriteria criteria)
	throws Exception
	{
		if(criteria == null)
			return null;
		
		Region<?,?> region = this.getRegion(criteria.getRegionName());
		
		Execution<?,?,?> exe = FunctionService.onRegion(region).setArguments(criteria);
		
		if(criteria.getFilter() != null)
		{
			exe = exe.withFilter(criteria.getFilter());
		}
		
	    return GemFireIO.exeWithResults(exe, new LuceneSearchFunction<Object>());
	    
	}
@ SuppressWarnings ( "unchecked" ) public Collection < String > searchWithPageKeys ( TextPageCriteria criteria ) throws Exception { if ( criteria == null ) return null ; Region < ? , ? > region = this . getRegion ( criteria . getRegionName ( ) ) ; Execution < ? , ? , ? > exe = FunctionService . onRegion ( region ) . setArguments ( criteria ) ; if ( criteria . getFilter ( ) != null ) { exe = exe . withFilter ( criteria . getFilter ( ) ) ; } return GemFireIO . exeWithResults ( exe , new LuceneSearchFunction < Object > ( ) ) ; }
@param criteria the search criteria
@return the collection keys in the page region
@throws Exception when an unknow exception occurs