2012-02-13 58 views
0

好吧,当我想要做我的Lucene索引某些查询,我发现了一个问题:为什么这个lucene查询字符串是错误的?

+(title:a^4.0) +((+type:restaurant +city:CA) (-type:restaurant)) 

我只是想限制结果那个城市is not CAtype is restaurant

但是Lucene的给我一个结果就是:

+(+type:restaurant +city:CA) and ignore (-type:restaurant) 

你能告诉我什么是错的?

回答

相关问题