server/search: allow searching by source URL content
This commit is contained in:
		
							parent
							
								
									68bd168434
								
							
						
					
					
						commit
						1d8cfd5a89
					
				| @ -38,6 +38,10 @@ | ||||
|             <td><code>fav</code></td> | ||||
|             <td>favorited by given user (accepts wildcards)</td> | ||||
|         </tr> | ||||
|         <tr> | ||||
|             <td><code>source</code></td> | ||||
|             <td>having given source URL (accepts wildcards)</td> | ||||
|         </tr> | ||||
|         <tr> | ||||
|             <td><code>tag-count</code></td> | ||||
|             <td>having given number of tags</td> | ||||
|  | ||||
| @ -230,6 +230,11 @@ class PostSearchConfig(BaseSearchConfig): | ||||
|                 _create_score_filter(-1) | ||||
|             ), | ||||
| 
 | ||||
|             ( | ||||
|                 ['source'], | ||||
|                 search_util.create_str_filter(model.Post.source) | ||||
|             ), | ||||
| 
 | ||||
|             ( | ||||
|                 ['tag-count'], | ||||
|                 search_util.create_num_filter(model.Post.tag_count) | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Shyam Sunder
						Shyam Sunder