feat:完善信息
This commit is contained in:
@ -82,12 +82,12 @@ func TestNewInstance2(t *testing.T) {
|
||||
client := _new()
|
||||
|
||||
query := elastic.NewBoolQuery()
|
||||
query.Must(elastic.NewMatchQuery("title", "一种"))
|
||||
//query.Must(elastic.NewMatchQuery("title", "一种"))
|
||||
//query.Must(elastic.NewMatchPhraseQuery("industry", "你是"))
|
||||
|
||||
service := client.Search().
|
||||
//Index("es_patent_index")
|
||||
Index("es_manage_index_1")
|
||||
Index("es_manage_index_2")
|
||||
|
||||
result, err := service.From(0).Size(10).
|
||||
//Explain(true).
|
||||
|
Reference in New Issue
Block a user