开发者

Lucene Boolean value search with boolean query

开发者 https://www.devze.com 2023-01-15 05:09 出处:网络
There is a field 开发者_Python百科say XYZ with value as either TRUE or FALSE. i am searching as following

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

精彩评论

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