考虑以下 Solr 查询:
text:linux -img_src:jpg -img_src:jpeg -img_src:youtube
Solr 仍在返回img_src
字段中包含否定项的结果:
<doc>
<str name="img_src">
http://lh3.ggpht.com/-zek96i2kouM/R9HZD2U-d9I/AAAAAAAAC7Q/Zf_QHmiL10w/Stress.jpg
</str>
</doc>
<doc>
<str name="img_src">
http://lh3.ggpht.com/-zek96i2kouM/R9HZD2U-d9I/AAAAAAAAC7Q/Zf_QHmiL10w/Stress.jpg
</str>
</doc>
<doc>
<str name="img_src">
http://farm9.staticflickr.com/8436/7787223734_5962d16624.jpg
</str>
</doc>
<doc>
<str name="img_src">
http://farm8.staticflickr.com/7246/7787084482_8ee833cc45.jpg
</str>
</doc>
显然我做错了什么。那可能是什么?谢谢。