[MarkLogic Dev General] mixing buckets and computed-buckets in search:search?

Geert Josten geert.josten at dayon.nl
Thu Mar 15 15:51:28 PDT 2012


Just poking a bit in
/Modules/MarkLogic/appservices/search/search-impl.xqy. Are you sure it
isn't allowed? It looks as if the code should be able to handle mixtures.

If not, then you could take a look at the resolve-anchor function in
there.. ;-)

Kind regards,
Geert

> -----Oorspronkelijk bericht-----
> Van: general-bounces at developer.marklogic.com [mailto:general-
> bounces at developer.marklogic.com] Namens Jakob Fix
> Verzonden: donderdag 15 maart 2012 23:28
> Aan: MarkLogic Developer Discussion
> Onderwerp: Re: [MarkLogic Dev General] mixing buckets and
computed-buckets
> in search:search?
>
> I just wondered if it were possible. It makes sense to me to handle
> "nearer" dates relatively to the current date while providing absolute
> values for those further in the past. But I'm just playing around, and
> if Geert says that one can dynamically calculate these, then I can
> look into this. Even though it would be nice to be able to mix :)
>
> cheers,
> Jakob.
>
>
>
> On Thu, Mar 15, 2012 at 23:17, Colleen Whitney
> <Colleen.Whitney at marklogic.com> wrote:
> > How often do you find yourself wanting to do that?  Is this a fairly
common
> case?
> >
> > ________________________________________
> > From: general-bounces at developer.marklogic.com [general-
> bounces at developer.marklogic.com] On Behalf Of Geert Josten
> [geert.josten at dayon.nl]
> > Sent: Thursday, March 15, 2012 3:18 PM
> > To: MarkLogic Developer Discussion
> > Subject: Re: [MarkLogic Dev General] mixing buckets and
computed-buckets
> in     search:search?
> >
> > Hi Jakob,
> >
> > You could calculate the relatively anchored computed-bucket
dynamically
> > yourself, at each call I mean. That should be doable. But I agree
mixing
> > them would be easier. ;-)
> >
> > Kind regards,
> > Geert
> >
> >> -----Oorspronkelijk bericht-----
> >> Van: general-bounces at developer.marklogic.com [mailto:general-
> >> bounces at developer.marklogic.com] Namens Jakob Fix
> >> Verzonden: donderdag 15 maart 2012 21:57
> >> Aan: General Mark Logic Developer Discussion
> >> Onderwerp: [MarkLogic Dev General] mixing buckets and
computed-buckets
> > in
> >> search:search?
> >>
> >> Hi,
> >>
> >> I'd like to create hybrid facets, based partially on computed buckets
> >> (yesterday, last week, last month, ...) and then also by decades
> >> (1980s, 1970s ...).
> >>
> >> It doesn't seem possible to put both types of buckets in the same
> >> constraint range, so how could this be done anyway?
> >>
> >> thanks,
> >> Jakob.
> >> _______________________________________________
> >> General mailing list
> >> General at developer.marklogic.com
> >> http://developer.marklogic.com/mailman/listinfo/general
> > _______________________________________________
> > General mailing list
> > General at developer.marklogic.com
> > http://developer.marklogic.com/mailman/listinfo/general
> > _______________________________________________
> > General mailing list
> > General at developer.marklogic.com
> > http://developer.marklogic.com/mailman/listinfo/general
> _______________________________________________
> General mailing list
> General at developer.marklogic.com
> http://developer.marklogic.com/mailman/listinfo/general


More information about the General mailing list