Date Histogram Facet with custom bucketing


#1

Hi All,

I need a facet that does exactly what Date Histogram Facet does, but I need
a different (complicated) "monthly" bucketing.

Rather than the start/end of every month, I need a monthly period that
begins/ends on "the friday before the 2nd wednesday" of every month....

Its been a little while since I last used Elastic - any pointers on how to
go about this?

Many thanks.

-N

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/05136160-bc0f-419f-9e34-d4ba4a319b76%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


#2

Bump?

On Monday, 3 February 2014 16:33:02 UTC, mooky wrote:

Hi All,

I need a facet that does exactly what Date Histogram Facet does, but I
need a different (complicated) "monthly" bucketing.

Rather than the start/end of every month, I need a monthly period that
begins/ends on "the friday before the 2nd wednesday" of every month....

Its been a little while since I last used Elastic - any pointers on how to
go about this?

Many thanks.

-N

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/73130c0f-f347-42cb-9910-28309e092874%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


(Alexander Reelsen) #3

Hey,

you can use the range facet, as it also supports dates and provide your own
custom date ranges there maybe?
See
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-facets-range-facet.html

--Alex

On Tue, Feb 11, 2014 at 2:36 PM, mooky nick.minutello@gmail.com wrote:

Bump?

On Monday, 3 February 2014 16:33:02 UTC, mooky wrote:

Hi All,

I need a facet that does exactly what Date Histogram Facet does, but I
need a different (complicated) "monthly" bucketing.

Rather than the start/end of every month, I need a monthly period that
begins/ends on "the friday before the 2nd wednesday" of every month....

Its been a little while since I last used Elastic - any pointers on how
to go about this?

Many thanks.

-N

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/73130c0f-f347-42cb-9910-28309e092874%40googlegroups.com
.

For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAGCwEM_9aJde-UNavtd0mOnynTnBge%3D8hsVTA_peOwSWkgoZQw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


#4

Thanks. It turns out that I have to create custom date ranges anyway - as
the buckets are not uniform.

On Tuesday, 11 February 2014 13:52:41 UTC, Alexander Reelsen wrote:

Hey,

you can use the range facet, as it also supports dates and provide your
own custom date ranges there maybe?
See
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-facets-range-facet.html

--Alex

On Tue, Feb 11, 2014 at 2:36 PM, mooky <nick.mi...@gmail.com <javascript:>

wrote:

Bump?

On Monday, 3 February 2014 16:33:02 UTC, mooky wrote:

Hi All,

I need a facet that does exactly what Date Histogram Facet does, but I
need a different (complicated) "monthly" bucketing.

Rather than the start/end of every month, I need a monthly period that
begins/ends on "the friday before the 2nd wednesday" of every month....

Its been a little while since I last used Elastic - any pointers on how
to go about this?

Many thanks.

-N

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearc...@googlegroups.com <javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/73130c0f-f347-42cb-9910-28309e092874%40googlegroups.com
.

For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/a8be4bc9-18bd-490c-b408-874023e42456%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


(system) #5