热门面试题与答案和在线测试
面向面试准备、在线测试、教程与实战练习的学习平台

通过聚焦学习路径、模拟测试和面试实战内容持续提升技能。

WithoutBook 将分主题面试题、在线练习测试、教程和对比指南整合到一个响应式学习空间中。

面试准备

Elasticsearch 面试题与答案

问题 31. What is a shard in Elasticsearch?

A shard is a basic unit of storage and search in Elasticsearch. Indexes are divided into shards to distribute data across multiple nodes for scalability.

Example:

PUT /my_index/_settings
{
  "number_of_shards": 5
}

这有帮助吗? 添加评论 查看评论
 

问题 32. How does Elasticsearch handle security?

Elasticsearch provides security features like role-based access control, SSL/TLS encryption, and authentication mechanisms.

这有帮助吗? 添加评论 查看评论
 

问题 33. Explain the purpose of the term 'mapping' in Elasticsearch.

Mapping in Elasticsearch is the process of defining how a document and its fields are stored and indexed. It helps in defining the data type, analysis, and other properties.

Example:

PUT /my_index
{
  "mappings": {
    "properties": {
      "title": { "type": "text" }
    }
  }
}

这有帮助吗? 添加评论 查看评论
 

问题 34. Explain the term 'Bulk API' in Elasticsearch.

The Bulk API allows for the efficient indexing and deletion of multiple documents in a single request.

这有帮助吗? 添加评论 查看评论
 

问题 35. What is the role of a filter in Elasticsearch?

Filters in Elasticsearch are used to narrow down the search results based on specific criteria. They are applied to queries to exclude or include documents in the search.

Example:

GET /my_index/_search
{
  "query": {
    "bool": {
      "filter": {
        "range": {
          "price": { "gte": 20 }
        }
      }
    }
  }
}

这有帮助吗? 添加评论 查看评论
 

用户评价最有帮助的内容:

版权所有 © 2026,WithoutBook。