|
@@ -70,7 +70,7 @@ func DocQuery(in *stdlib.DocQueryRequest, searchSource []string) *stdlib.DocQuer
|
|
|
}
|
|
|
query_append := fmt.Sprintf(Es_Query_Append, (in.PageNum-1)*in.PageSize, in.PageSize)
|
|
|
if searchSource != nil && len(searchSource) > 0 {
|
|
|
- musts = append(musts, fmt.Sprintf(Terms, "source", strings.Join(searchSource, `","`)))
|
|
|
+ musts = append(musts, fmt.Sprintf(Terms, "source", strings.Join(searchSource, `,`)))
|
|
|
}
|
|
|
if len(musts) == 0 {
|
|
|
query = fmt.Sprintf(Es_Query_All, fmt.Sprint(query_append, query_sort))
|