mirror of
				https://git.code.sf.net/p/seeddms/code
				synced 2025-10-31 05:11:27 +00:00 
			
		
		
		
	check if query term already has a trailing '*'
This commit is contained in:
		
							parent
							
								
									416568f1c4
								
							
						
					
					
						commit
						e69f7125bc
					
				|  | @ -72,8 +72,10 @@ class SeedDMS_Lucene_Search { | |||
| 	 */ | ||||
| 	function search($term, $fields=array(), $limit=array()) { /* {{{ */ | ||||
| 		$querystr = ''; | ||||
| 		if($term) | ||||
| 			$querystr .= trim($term); | ||||
| 		$term = trim($term); | ||||
| 		if($term) { | ||||
| 			$querystr = substr($term, -1) != '*' ? $term.'*' : $term; | ||||
| 		} | ||||
| 		if(!empty($fields['owner'])) { | ||||
| 			if(is_string($owner)) { | ||||
| 				if($querystr) | ||||
|  |  | |||
|  | @ -72,8 +72,10 @@ class SeedDMS_SQliteFTS_Search { | |||
| 	 */ | ||||
| 	function search($term, $fields=array(), $limit=array()) { /* {{{ */ | ||||
| 		$querystr = ''; | ||||
| 		if($term) | ||||
| 			$querystr .= trim($term); | ||||
| 		$term = trim($term); | ||||
| 		if($term) { | ||||
| 			$querystr = substr($term, -1) != '*' ? $term.'*' : $term; | ||||
| 		} | ||||
| 		if(!empty($fields['owner'])) { | ||||
| 			if(is_string($fields['owner'])) { | ||||
| 				if($querystr) | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Uwe Steinmann
						Uwe Steinmann