From c9eed3779d2bbaefd248c568ede479ee69b2dc87 Mon Sep 17 00:00:00 2001 From: richardwei2008 Date: Thu, 14 Apr 2016 07:38:59 +0800 Subject: [PATCH 1/2] chapter14_part1: /110_Multi_Field_Search/00_Intro.asciidoc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 初译 --- 110_Multi_Field_Search/00_Intro.asciidoc | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/110_Multi_Field_Search/00_Intro.asciidoc b/110_Multi_Field_Search/00_Intro.asciidoc index d6090dd5e..eced1d324 100644 --- a/110_Multi_Field_Search/00_Intro.asciidoc +++ b/110_Multi_Field_Search/00_Intro.asciidoc @@ -1,17 +1,8 @@ [[multi-field-search]] -== Multifield Search +== 多字段搜索 -Queries are seldom simple one-clause `match` queries. ((("multifield search"))) We frequently need to -search for the same or different query strings in one or more fields, which -means that we need to be able to combine multiple query clauses and their -relevance scores in a way that makes sense. +查询很少是简单一句话的 `match` 匹配查询。((("multifield search")))通常我们需要用相同或不同的字符串查询一个或多个字段,也就是说,需要对多个查询语句以及它们相关度评分进行合理的合并。 -Perhaps we're looking for a book called _War and Peace_ by an author called -Leo Tolstoy. Perhaps we're searching the Elasticsearch documentation -for ``minimum should match,'' which might be in the title or the body of a -page. Or perhaps we're searching for users with first name John and last -name Smith. +有时候或许我们正查找作者 Leo Tolstoy 写的一本名为 _War and Peace_(战争与和平)的书。或许我们正用 "minimum should match" (最少应该匹配)的方式在文档中对标题或页面内容进行搜索,或许我们正在搜索所有名字为 John Smith 的用户。 -In this chapter, we present the available tools for constructing multiclause -searches and how to figure out which solution you should apply to your -particular use case. +在本章,我们会介绍构造多语句搜索的工具及在特定场景下应该采用的解决方案。 From bf6351fec740475e4ab9c7abb9a11a2c77b8866f Mon Sep 17 00:00:00 2001 From: richardwei2008 Date: Thu, 14 Apr 2016 08:58:43 +0800 Subject: [PATCH 2/2] fix English quota fix English quota --- 110_Multi_Field_Search/00_Intro.asciidoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/110_Multi_Field_Search/00_Intro.asciidoc b/110_Multi_Field_Search/00_Intro.asciidoc index eced1d324..a0ea2ea0c 100644 --- a/110_Multi_Field_Search/00_Intro.asciidoc +++ b/110_Multi_Field_Search/00_Intro.asciidoc @@ -3,6 +3,6 @@ 查询很少是简单一句话的 `match` 匹配查询。((("multifield search")))通常我们需要用相同或不同的字符串查询一个或多个字段,也就是说,需要对多个查询语句以及它们相关度评分进行合理的合并。 -有时候或许我们正查找作者 Leo Tolstoy 写的一本名为 _War and Peace_(战争与和平)的书。或许我们正用 "minimum should match" (最少应该匹配)的方式在文档中对标题或页面内容进行搜索,或许我们正在搜索所有名字为 John Smith 的用户。 +有时候或许我们正查找作者 Leo Tolstoy 写的一本名为 _War and Peace_(战争与和平)的书。或许我们正用 “minimum should match” (最少应该匹配)的方式在文档中对标题或页面内容进行搜索,或许我们正在搜索所有名字为 John Smith 的用户。 在本章,我们会介绍构造多语句搜索的工具及在特定场景下应该采用的解决方案。