0
好吧,当我想要做我的Lucene索引某些查询,我发现了一个问题:为什么这个lucene查询字符串是错误的?
+(title:a^4.0) +((+type:restaurant +city:CA) (-type:restaurant))
我只是想限制结果那个城市is not CA
和type is restaurant
。
但是Lucene的给我一个结果就是:
+(+type:restaurant +city:CA) and ignore (-type:restaurant)
你能告诉我什么是错的?