切换到主索引
This commit is contained in:
		@@ -83,7 +83,7 @@ func ElasticsearchSearch(text string) (r *SearchData) {
 | 
			
		||||
	// 执行查询
 | 
			
		||||
	res, err := es.Search(
 | 
			
		||||
		es.Search.WithContext(context.Background()),
 | 
			
		||||
		es.Search.WithIndex("my_index"),
 | 
			
		||||
		es.Search.WithIndex("web_images"),
 | 
			
		||||
		es.Search.WithBody(&buf),
 | 
			
		||||
		es.Search.WithTrackTotalHits(true),
 | 
			
		||||
		es.Search.WithPretty(),
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user