对Solr来说是全新的。有人能告诉我这些说法是否正确吗?
&fq=(month:"11" OR month:"12") -> those month in 11 or 12
&fq=month:"11" & fq=month:"12" -> same as above
&fq=month:"11" & fq=-month:"12" -> those month in 11 but not in 12, effectively only 11
&fq=(month:"11" OR -month:"12") -> same as above
&fq=-month:"11" & fq=-month:"12" -> those month not in either 11 or 12
&fq=-(month:"11" OR month:"12") -> same as above
&fq=month:"11" & fq=-month:"11" -> returns 0 since they are mutual exclusive
&fq=(month:"11" OR -month:"11") -> same as above
&fq=(month:"11" OR -month:"11")
还会降低性能(通过将月份的结果“11”与-month:“11”的结果合并)或solr可以在执行实际查询之前对fqs进行一些分析并合并它们。
发布于 2020-03-13 03:26:20
您的所有其他语句都是正确的,但以下不正确。
&fq=month:" 11“& fq=month:" 12 " -> --所有单独的fq子句都作为和操作来处理,因此,这将不会返回任何结果,除非月份是一个具有11和12值的文档的多值字段。
https://stackoverflow.com/questions/60663231
复制相似问题