Recommended approach for date ranges with BoboBrowse

33 views
Skip to first unread message

Rob Cecil

unread,
Oct 15, 2012, 7:37:13 PM10/15/12
to bobo-...@googlegroups.com
Hello,

What is the recommended way that I should set up a field to support date range facets? The date ranges have to be dynamic to support semantically "today", "yesterday", "last week", etc. I have currently tried using regular Field instances in the document, and converting my source dates to the day format (yyyyMMdd), but I am getting an empty collection of range facets back after the query. This is the sixth facet I have added and have mapped successfully other fields/facets, including two numeric fields using NumericField to support integer range facets.

Thanks

John Wang

unread,
Oct 16, 2012, 12:24:40 AM10/16/12
to bobo-...@googlegroups.com
You would have a implement a dynamic facet handler for this, take a look at:


-John

--
You received this message because you are subscribed to the Google Groups "bobo-browse" group.
To view this discussion on the web visit https://groups.google.com/d/msg/bobo-browse/-/mFeIC2jq4TEJ.
To post to this group, send email to bobo-...@googlegroups.com.
To unsubscribe from this group, send email to bobo-browse...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bobo-browse?hl=en.

Rob Cecil

unread,
Oct 16, 2012, 10:03:25 AM10/16/12
to bobo-...@googlegroups.com
Great idea. Is there some unit test or other sample code that demonstrates how to set this up (usage)?

Thanks

Rob Cecil

unread,
Oct 16, 2012, 10:12:45 AM10/16/12
to bobo-...@googlegroups.com
John,

Also, why can't I just model the field like a regular numeric range, and use RangeFacetHandler? I'm already using two other fields that are built using the NumericField, and RangeFacetHandler.... Why can't I just model the data like 20121016, etc?


On Tuesday, October 16, 2012 12:24:41 AM UTC-4, John Wang wrote:
Reply all
Reply to author
Forward
0 new messages