开发者

Lucene Boolean value search with boolean query

There is a field 开发者_Python百科say XYZ with value as either TRUE or FALSE. i am searching as following

+Contents:risk +XYZ:TRUE

is it legal to search like that? i tried but it showed me results with FALSE value too.

What was more amazing is that i searched by +XYZ:[TRUE TO TRUE] and it worked.

can some one tell me what exactly is my mistake?


it's perfectly fine to search like that. Did you ensure that your analyzers are correct?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜