开发者

change precedence in a query, 'AND' or 'OR', without ()

开发者 https://www.devze.com 2023-02-13 02:28 出处:网络
I\'m doing a search query in the Lucene searchengine. since I\'m doing this with a railo 开发者_运维技巧setup I\'m having trouble with the parenthesis bug

I'm doing a search query in the Lucene searchengine. since I'm doing this with a railo 开发者_运维技巧setup I'm having trouble with the parenthesis bug

so I can't do a query like(which I need):

"exact term here"^10 OR "less exact term"^5 OR ("loose term1" AND "loose term2" AND "loose term3")

but only like:

"exact term here"^10 OR "less exact term"^5 OR "loose term1" AND "loose term2" AND "loose term3"

But this would behave like:

("exact term here"^10 OR "less exact term"^5 OR "loose term1") AND "loose term2" AND "loose term3"

Is there a way to get around this without any parenthesis

0

精彩评论

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