读书人

Lucene06-查询

发布时间: 2012-11-05 09:35:12 作者: rapoo

Lucene06---查询

?

?

对应的查询字符串:content:iteye

总共有【2】条匹配的结果

name -->HelloLucene01.txt

content -->Hello, my name is wang xudong, I in iteye blog address is xdwangiflytek.iteye.com.

?

path -->F:\Workspaces\workspaceSE\BlogDemo\luceneDatasource\HelloLucene01.txt

size -->84

name -->HelloLucene04.txt

content -->iteye too other.iteye too other.iteye too other.iteye too other.iteye too other.

iteye too other.iteye too other.iteye too other.iteye too other.iteye too other.

iteye too other.iteye too other.iteye too other.iteye too other.iteye too other.

iteye too other.iteye too other.iteye too other.iteye too other.iteye too other.

iteye too other.iteye too other.iteye too other.iteye too other.iteye too other.

iteye too other.iteye too other.iteye too other.iteye too other.iteye too other.

iteye too other.iteye too other.iteye too other.iteye too other.iteye too other.

iteye too other.iteye too other.iteye too other.iteye too other.iteye too other.

iteye too other.iteye too other.iteye too other.iteye too other.iteye too other.

?

path -->F:\Workspaces\workspaceSE\BlogDemo\luceneDatasource\HelloLucene04.txt

size -->738

总共有【1】条匹配的结果

name -->HelloLucene04.txt

content -->iteye too other.iteye too other.iteye too other.iteye too other.iteye too other.

iteye too other.iteye too other.iteye too other.iteye too other.iteye too other.

iteye too other.iteye too other.iteye too other.iteye too other.iteye too other.

iteye too other.iteye too other.iteye too other.iteye too other.iteye too other.

iteye too other.iteye too other.iteye too other.iteye too other.iteye too other.

iteye too other.iteye too other.iteye too other.iteye too other.iteye too other.

iteye too other.iteye too other.iteye too other.iteye too other.iteye too other.

iteye too other.iteye too other.iteye too other.iteye too other.iteye too other.

iteye too other.iteye too other.iteye too other.iteye too other.iteye too other.

?

path -->F:\Workspaces\workspaceSE\BlogDemo\luceneDatasource\HelloLucene04.txt

size -->738

总共有【2】条匹配的结果

name -->HelloLucene01.txt

content -->Hello, my name is wang xudong, I in iteye blog address is xdwangiflytek.iteye.com.

?

path -->F:\Workspaces\workspaceSE\BlogDemo\luceneDatasource\HelloLucene01.txt

size -->84

name -->HelloLucene04.txt

content -->iteye too other.iteye too other.iteye too other.iteye too other.iteye too other.

iteye too other.iteye too other.iteye too other.iteye too other.iteye too other.

iteye too other.iteye too other.iteye too other.iteye too other.iteye too other.

iteye too other.iteye too other.iteye too other.iteye too other.iteye too other.

iteye too other.iteye too other.iteye too other.iteye too other.iteye too other.

iteye too other.iteye too other.iteye too other.iteye too other.iteye too other.

iteye too other.iteye too other.iteye too other.iteye too other.iteye too other.

iteye too other.iteye too other.iteye too other.iteye too other.iteye too other.

iteye too other.iteye too other.iteye too other.iteye too other.iteye too other.

?

path -->F:\Workspaces\workspaceSE\BlogDemo\luceneDatasource\HelloLucene04.txt

size -->738

总共有【1】条匹配的结果

name -->HelloLucene01.txt

content -->Hello, my name is wang xudong, I in iteye blog address is xdwangiflytek.iteye.com.

?

path -->F:\Workspaces\workspaceSE\BlogDemo\luceneDatasource\HelloLucene01.txt

size -->84

总共有【1】条匹配的结果

name -->HelloLucene01.txt

content -->Hello, my name is wang xudong, I in iteye blog address is xdwangiflytek.iteye.com.

?

path -->F:\Workspaces\workspaceSE\BlogDemo\luceneDatasource\HelloLucene01.txt

Occur.MUST、Occur.MUST_NOT、Occur.SHOULD;

?

1、MUST和MUST,取得两个查询子句的交集;

2、MUST和MUST_NOT,包含MUST并且查询结果中不包含MUST_NOT的检索结果;

3、SHOULD和SHOULD,表示“或”关系,最终检索结果为所有检索子句的并集;

?

使用时注意:

?????? 1、MUST和SHOULD:此时SHOULD无意义,结果为MUST子句的检索结果;

?????? 2、MUST_NOT和MUST_NOT,无意义,检索无结果;

?????? 3、MUST_NOT和SHOULD,此时SHOULD相当于MUST,结果同MUST和MUST_NOT;

?????? 4、单独使用SHOULD,结果相当于MUST;

?????? 5、单独使用MUST_NOT,无意义,检索无结果;

?

?

?

?

?

?

?

?

?

?

?

?

?

?

?

?

?

?

?

?

?

?

?

?

?

读书人网 >软件架构设计

热点推荐