code: function(keyword, nameSearch, useRoot, advancedOptions, searchScope)  {
  			var searchOn = useRoot ? this.getSearchRootLocation(): this.getSearchLocation(searchScope);
  			if (nameSearch) {
  				//assume implicit trailing wildcard if there isn't one already
  				//var wildcard= (/\*$/.test(keyword) ? "" : "*"); //$NON-NLS-0$
  				return {
  					resource: searchOn,
  					sort: "NameLower asc", //$NON-NLS-0$
  					rows: 100,
  					start: 0,
  					nameSearch: true,
  					keyword: keyword,
  					exclude: (advancedOptions && advancedOptions.exclude) ? advancedOptions.exclude : undefined,
  				};
  			}
  			return {
  				resource: searchOn,
  				sort: advancedOptions && advancedOptions.sort ? advancedOptions.sort : "Path asc", //$NON-NLS-0$
  				rows: advancedOptions && advancedOptions.rows ? advancedOptions.rows : 40,
  				start: 0,
  				caseSensitive: advancedOptions ? advancedOptions.caseSensitive : undefined,
  				wholeWord: advancedOptions ? advancedOptions.wholeWord : undefined,
  				regEx: advancedOptions ? advancedOptions.regEx : undefined,
  				fileType: advancedOptions ? advancedOptions.fileType : undefined,
  				fileNamePatterns: (advancedOptions && advancedOptions.fileNamePatterns) ? advancedOptions.fileNamePatterns : undefined,
  				exclude: (advancedOptions && advancedOptions.exclude) ? advancedOptions.exclude : undefined,
  				keyword: keyword,
  				replace: advancedOptions ? advancedOptions.replace : undefined,
  				searchScope: searchScope
  			};
  		}
docs: Returns a query object for search. The return value has the propertyies of resource and parameters.
  @param {String} keyword The text to search for, or null when searching purely on file name
  @param {Boolean} [nameSearch] The name of a file to search for
  @param {Boolean} [useRoot] If true, do not use the location property of the searcher. Use the root url of the file system instead.