String pattern = patterns[i]; newQuery.setNode( EnumQuery.KEYWORDS ); newQuery.setComment( "Search-pattern:" ); newQuery.setDefaultValue( pattern ); searchQuery.addQuery( newQuery );
String pattern = patterns[i];  switch ( determineSearchType( pattern ) )	 { case AND : newQuery.setNode( EnumQuery.KEYWORDS ); newQuery.setComment( "Search-pattern:" ); pattern = pattern.substring( 1 ); newQuery.setDefaultValue( pattern ); andQuerys.add( newQuery ); break; case ANDNOT : newQuery.setNode( EnumQuery.KEYWORDS ); newQuery.setComment( "Search-pattern:" ); pattern = pattern.substring( 1 ); newQuery.setDefaultValue( pattern ); andNotQuerys.add( newQuery ); break; default : newQuery.setNode( EnumQuery.KEYWORDS ); newQuery.setComment( "Search-pattern:" ); newQuery.setDefaultValue( pattern ); orQuerys.add( newQuery ); break; }
	public void setSearchString( String searchString ) {		this.searchString = searchString;		String[] patterns = split( searchString, ' ' );		/* now we have to generate a query-Object for each search pattern */		Query newQuery;			 	for ( int i = 0; i < patterns.length; i++ ) {								newQuery = new Query();				String pattern = patterns[i];							newQuery.setNode( EnumQuery.KEYWORDS );				newQuery.setComment( "Search-pattern:" );				newQuery.setDefaultValue( pattern );				searchQuery.addQuery( newQuery );			}	}