Skip to content

Commit

Permalink
1. 新增issue链接,解释为什么设定BOOLEAN_REWRITE_TERM_COUNT_THRESHOLD 为16作为域值
Browse files Browse the repository at this point in the history
1. 新增issue链接,解释为什么设定BOOLEAN_REWRITE_TERM_COUNT_THRESHOLD 为16作为域值
  • Loading branch information
LuXugang committed Nov 13, 2020
1 parent 578cf8a commit e1456d4
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 24 deletions.
14 changes: 0 additions & 14 deletions LuceneDemo8.6.0/LuceneDemo8.6.0.iml
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,5 @@
<orderEntry type="library" name="Maven: org.apache.lucene:lucene-queries:8.6.0" level="project" />
<orderEntry type="library" name="Maven: org.apache.lucene:lucene-queryparser:8.6.0" level="project" />
<orderEntry type="library" name="Maven: org.apache.lucene:lucene-sandbox:8.6.0" level="project" />
<orderEntry type="library" name="Maven: org.apache.commons:commons-lang3:3.4" level="project" />
<orderEntry type="library" name="Maven: org.apache.lucene:lucene-analyzers-common:8.6.0" level="project" />
<orderEntry type="library" name="Maven: org.apache.lucene:lucene-core:8.6.0" level="project" />
<orderEntry type="library" name="Maven: org.apache.lucene:lucene-codecs:8.6.0" level="project" />
<orderEntry type="library" name="Maven: org.apache.lucene:lucene-memory:8.6.0" level="project" />
<orderEntry type="library" name="Maven: org.apache.lucene:lucene-grouping:8.6.0" level="project" />
<orderEntry type="library" name="Maven: org.apache.lucene:lucene-join:8.6.0" level="project" />
<orderEntry type="library" name="Maven: org.apache.lucene:lucene-facet:8.6.0" level="project" />
<orderEntry type="library" name="Maven: com.carrotsearch:hppc:0.8.1" level="project" />
<orderEntry type="library" name="Maven: org.apache.lucene:lucene-backward-codecs:8.6.0" level="project" />
<orderEntry type="library" name="Maven: org.apache.lucene:lucene-misc:8.6.0" level="project" />
<orderEntry type="library" name="Maven: org.apache.lucene:lucene-queries:8.6.0" level="project" />
<orderEntry type="library" name="Maven: org.apache.lucene:lucene-queryparser:8.6.0" level="project" />
<orderEntry type="library" name="Maven: org.apache.lucene:lucene-sandbox:8.6.0" level="project" />
</component>
</module>
2 changes: 1 addition & 1 deletion LuceneDemo8.6.0/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<dependency>
<groupId>org.apache.lucene</groupId>
<artifactId>lucene-core</artifactId>
<!-- <version>8.5.2</version>-->
<!-- <version>5.1.0</version>-->
<version>8.6.0</version>
<!-- <version>7.7.2</version>-->
</dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public void doIndexAndSearch() throws Exception {
type.setIndexOptions(IndexOptions.DOCS_AND_FREQS_AND_POSITIONS_AND_OFFSETS);
Document doc ;
int count = 0;
while (count++ < 140000){
while (count++ < 100){
// 文档0
doc = new Document();
doc.add(new Field("content", "abc", type));
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@

<img src="http://www.amazingkoala.com.cn/uploads/lucene/Search/索引文件的读取/索引文件的读取(九)/14.png">

&emsp;&emsp;收集满足查询条件的term后,如果term的数量超过某个阈值,处理方式也是不同的,在源码中,通过BOOLEAN_REWRITE_TERM_COUNT_THRESHOLD定义阈值,默认值为16
&emsp;&emsp;收集满足查询条件的term后,如果term的数量超过某个阈值,处理方式也是不同的,在源码中,通过BOOLEAN_REWRITE_TERM_COUNT_THRESHOLD定义阈值,默认值为[16](https://issues.apache.org/jira/browse/LUCENE-6458)

#### 未达到阈值

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@

<img src="索引文件的读取(九)-image/14.png">

&emsp;&emsp;收集满足查询条件的term后,如果term的数量超过某个阈值,处理方式也是不同的,在源码中,通过BOOLEAN_REWRITE_TERM_COUNT_THRESHOLD定义阈值,默认值为16
&emsp;&emsp;收集满足查询条件的term后,如果term的数量超过某个阈值,处理方式也是不同的,在源码中,通过BOOLEAN_REWRITE_TERM_COUNT_THRESHOLD定义阈值,默认值为[16](https://issues.apache.org/jira/browse/LUCENE-6458)

#### 未达到阈值

Expand Down

0 comments on commit e1456d4

Please sign in to comment.