RE: creating date facets

2019-06-20 Thread Nightingale, Jonathan A (US)
ld for hour of the day -Original Message- From: Erick Erickson Sent: Wednesday, June 19, 2019 1:34 PM To: solr-user@lucene.apache.org Subject: Re: creating date facets *** WARNING *** EXTERNAL EMAIL -- This message originates from outside our organization. There are two approaches I m

Re: creating date facets

2019-06-20 Thread Joel Bernstein
You might find this useful. If makes creating time series aggregations a little easier. It uses JSON facets under the covers and is very fast. https://lucene.apache.org/solr/guide/7_6/stream-source-reference.html#timeseries Joel Bernstein http://joelsolr.blogspot.com/ On Wed, Jun 19, 2019 at 1:

Re: creating date facets

2019-06-19 Thread Erick Erickson
There are two approaches I might use, which is really up to you. - You can do a regex filter. So define your extra fields as you want, then use a regex charFilter (NOT filter, you want to transform the entire input) to peel out the separate parts. Then copyfield to each one, each with a differen

creating date facets

2019-06-19 Thread Nightingale, Jonathan A (US)
Hi all, I'm trying to have a date field automatically generate some facets of itself, like hour of the day and hour of the week as examples, when its stored. I was looking at this tutorial and it deemed to almost do what I wanted https://nathanfriend.io/2017/06/26/smart-date-searching-with-solr.

Re: Tips for 'staggered date facets', i.e. 'last 24 hours, last week, last month, last year' , ala google news?

2010-12-10 Thread Chris Hostetter
: As Solr's standard date faceting does not appear to meet this need, we will : need to use faceting on arbitrary queries, i.e. by passing multiple values : for facet.query correct, facet.date is really just a convincence feature over using facet.query when you want lots of consistently sized ra

Tips for 'staggered date facets', i.e. 'last 24 hours, last week, last month, last year' , ala google news?

2010-12-10 Thread Will Milspec
hi all, We wish to implement date faceting with a 'sliding date range', 'last 24 hours, last week, last month, last year' . Google New currently implements such faceting when you search for a topic. As Solr's standard date faceting does not appear to meet this need, we will need to use facetin

Re: date facets without intersections

2010-04-28 Thread Chris Hostetter
This thread spurred me on enough to follow through with the idea i posted in SOLR-397 a while back. I've attached a patch to that issue if you want to try it out... https://issues.apache.org/jira/browse/SOLR-397 It adds a "facet.date.include" param that supports the following options: all,

Re: date facets without intersections

2010-04-28 Thread Király Péter
Thanks, that's great! Péter - Original Message - From: "gwk" To: Sent: Wednesday, April 28, 2010 3:05 PM Subject: Re: date facets without intersections Hi, Several possible solutions are discussed in http://lucene.472066.n3.nabble.com/Date-Faceting-and-Double-Co

Re: date facets without intersections

2010-04-28 Thread Peter Sturge
ike that: > > publication date > 1000-1099 (2) > 1100-1199 (1) > 1200-1299 (14) > > It would involve, that > > > > 3 > 3 > 12 > .. > should be understand, that between 1000-01-01T00:00:00Z > and 1100-01-01T00:00:00Z minus 1 sec (or millisec) there

Re: date facets without intersections

2010-04-28 Thread gwk
Hi, Several possible solutions are discussed in http://lucene.472066.n3.nabble.com/Date-Faceting-and-Double-Counting-td502014.html Regards, gwk On 4/27/2010 10:02 PM, Király Péter wrote: Dear Solr users, I am interesting, whether it is possible to get date facets without intersecting

Re: date facets without intersections

2010-04-28 Thread Király Péter
hat 3 3 12 .. should be understand, that between 1000-01-01T00:00:00Z and 1100-01-01T00:00:00Z minus 1 sec (or millisec) there are 3 results. Grant, from your answer it is clear, that currently no way for the date facets to behave like this, but I guess, that it may be an alternative solution. Péter

Re: date facets without intersections

2010-04-28 Thread Grant Ingersoll
On Apr 27, 2010, at 4:02 PM, Király Péter wrote: > Dear Solr users, > > I am interesting, whether it is possible to get date facets without > intersecting > ranges. Now the documents which stands on boundaries of ranges are covered > by both ranges. An example: > >

date facets without intersections

2010-04-27 Thread Király Péter
Dear Solr users, I am interesting, whether it is possible to get date facets without intersecting ranges. Now the documents which stands on boundaries of ranges are covered by both ranges. An example: facet result (from Solr): 3 3 12 If we translate into queries, it means that the number of

Re: Date Facets

2010-02-24 Thread Liam O'Boyle
In response to myself, The problem occurs because the date ranges are inclusive. I can fix this by making facet.date.gap = +1MONTH-1SECOND, but is there a way to specify that the upper bound is exclusive, rather than inclusive? Liam On Wed, 2010-02-24 at 16:54 +1100, Liam O'Boyle wrote: > After

Re: Date Facets

2010-02-24 Thread gwk
Hi Liam, This happens because the range searches for date faceting are inclusive on both ends. So values on the exact edges of the intervals are counted twice. You can see some solutions at http://old.nabble.com/Date-Faceting-and-Double-Counting-td25227846.html Regards, gwk On 2/24/2010 6:

Date Facets

2010-02-23 Thread Liam O'Boyle
Afternoon, I have a strange problem occurring with my date faceting. I seem to have more results in my facets than in my actual result set. The query filters by date to show results for one year, i.e. ib_date:[2000-01-01T00:00:00Z TO 2000-12-31T23:59:59Z], then uses date faceting to break up the

Re: date facets doubt

2008-12-20 Thread Chris Hostetter
: 1.- I am trying to use date facets but I am facing a trouble. I want to use : the same field to do 2 facet classification. I want to show the count of the i'm afraid the date faceting code doesn't support that. the only ways i can think of to do it would be to make two seperate re

Re: date facets doubt

2008-12-18 Thread Marc Sturlese
has anyone experienced this problem? Can't find an explanation... Thanks in advance Marc Sturlese wrote: > > Hey there, > > 1.- I am trying to use date facets but I am facing a trouble. I want to > use the same field to do 2 facet classification. I want to show the count

date facets doubt

2008-12-17 Thread Marc Sturlese
Hey there, 1.- I am trying to use date facets but I am facing a trouble. I want to use the same field to do 2 facet classification. I want to show the count of the docs of the last week and the counts od the docs of the last month. What I am doing is: source_date NOW/DAY-1MONTH

Re: Constraining date facets

2007-08-23 Thread Chris Hostetter
: i am using faceting in a project and would like to do date faceting with : facet.date. That works fine, but as well returns dates which have no : resulting pages underneath, i.e. the facet count equals 0. Is it possible to : constrain this just to dates for which results exist similar to : facet

Constraining date facets

2007-08-22 Thread raikoe
facet.mincount for usual facets? I tried the latter but did not succeed. Thanks in advance Raiko -- View this message in context: http://www.nabble.com/Constraining-date-facets-tf4315743.html#a12288337 Sent from the Solr - User mailing list archive at Nabble.com.