开发者

Solr multiple search and group by date range

if have the problem to execute multiple Solr queries at ones with the same phrase but for different timeranges. Example:

search for "atom" at:
2011-04-01T10:20:22.0Z TO 2011-04-01T12:20:22.0Z
2011-03-08T10:20:22.0Z TO 2011-03-08T12:20:22.0Z
2011-02-05T10:20:22.0Z TO 2011-02-05T12:20:22.0Z

So i need a few messages from each 2 hour interval. First of all, i thought about facet search, but 开发者_StackOverflowi don't think, thats a way, is'n it?

2nd idea was to fire one solr request for every time range. But probably there is to much (network)overhead for that, because this example is only an simplified version.

Maybe anybody has an idea, how could i handle this? What solr functionality is the best way for this?

Thank you.


Use FieldCollapsing with the group by query option.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜