Skip to content

Search Document

Search Documents

Query DSL

To perform full-text search, use the DSL. For usage, refer to:

Query DSL Documentation

We do not support all query parameter options provided by ES. Unsupported parameters include: indices_boost, knn, min_score, retriever, pit, runtime_mappings, seq_no_primary_term, stats, terminate_after, version.

Search API: Search API

Delete by Query

To delete documents based on a query, use the delete-by-query operation. Like search, we do not support some ES parameters.

ElasticSearch API: Delete by Query

Multi-search supports searching multiple indexes and running different queries on each index.

ElasticSearch API: Multi-Search API Documentation

We extended the multi-search to support using the same scoring information across different indexes for more accurate score calculation. To enable this, set unify_score=true in the query.

unify_score is meaningful only in this scenario: when searching the same query across multiple indexes. For example, in Seafile, we create an index for each library. When globally searching across all accessible libraries, enabling unify_score ensures consistent scoring across different repositories, providing more accurate search results.

[POST] /es/_msearch?unify_score=true
{"index": "t1"}
{"query": {"bool": {"should": [{"match": {"filename": {"query": "数据库", "minimum_should_match": "-25%"}}}, {"match": {"filename.ngram": {"query": "数据库", "minimum_should_match": "80