mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-06-29 23:41:12 +08:00
### What problem does this PR solve? Refine handling of POST /api/v1/datasets/search in GO ### Type of change - [x] Refactoring
14 lines
407 B
Go
14 lines
407 B
Go
package common
|
|
|
|
const (
|
|
// PAGERANK_FLD is the field name for pagerank score
|
|
PAGERANK_FLD = "pagerank_fea"
|
|
// TAG_FLD is the field name for tag features
|
|
TAG_FLD = "tag_feas"
|
|
// MAX_RESULT_WINDOW is the maximum result window for ES
|
|
MAX_RESULT_WINDOW = 10000
|
|
// SearchAfterBatchSize caps how many hits one Elasticsearch
|
|
// request can return per search_after iteration.
|
|
SearchAfterBatchSize = 1000
|
|
)
|