我需要多个SearchTerms的facet计数 .

目前我正在使用facet.range =“dateField”对每个搜索词进行两个单独的构面查询

例如

http://solrserver/select?q=1stsearchTerm&fq=on&facet parameters 

 http://solrserver/select?q=2ndsearchTerm&fq=on&facet parameters

Note :: SearchTerm field will be text_en_splitting

现在我找到了另一种通过标记和排除对多个搜索词进行构面查询的方法

例如

http://solrurl/select?start=0&rows=10&hl=off&
facet=on&
facet.range.start=2013-06-06T16%3a00%3a00Z&
facet.range.end=2013-06-07T16%3a00%3a01Z&
facet.range.gap=%2B1HOUR&
wt=xml&
sort=dateField+desc&
facet.range={!key=music+ex=movie}dateField&
fq={!tag=music}content:"music"&facet.range={!key=movie+ex=music}dateField&
fq={!tag=movie}content:"movie"&q=(col2:1+)&
fq=+dateField:[2013-06-05T16:00:00Z+TO+2013-06-07T16:00:00Z]+AND+(+Col1:"test"+)&
fl=col1,col2,col3

我已经测试了几个搜索词,它为每个搜索词提供与不同查询相同的结果 .

这是正确的方式(结果和性能)?

Update ::

我试着更多搜索 . 我将 music 替换为 (test or abc) . 它没有显示方面的结果 . 所以这种搜索术语可能会引起问题 .