#431: WebSearch: fix test case searching by date 1976-04-01 and t dog
------------------------+----------------------
  Reporter:  simko      |      Owner:  valkyrie
      Type:  defect     |     Status:  assigned
  Priority:  major      |  Milestone:  v1.0
 Component:  WebSearch  |    Version:
Resolution:             |   Keywords:
------------------------+----------------------
Changes (by simko):

 * status:  in_merge => assigned


Comment:

 Here are some comments to Joe's observations:

 1) Note that when an INSPIRE installation contains 1994-04 in the year
 value, or 1994-04-14 in the year value, in both these cases the two
 values will get indexed also as 1994-04 (among others), thanks to the
 special date-related tokenizer.  So in order to find out all papers
 from April 1994, it is fully sufficient to search for `year:1994-04`.
 One does not have to play with logic like `date > 1994-04 AND ...`
 at all.

 2) Dunno how SPIRES behaved so far, but the current approach means
 that one cannot search for papers that were published on the first day
 of a certain month.  This seems unnecessarily restrictive to me.  I'd
 say we should interpret YYYY-MM as a search for any day of the month,
 and YYYY-MM-DD as a search for the given day of the month, and things
 will behave just fine this way.

 So I still consider this first-day-means-full-month behaviour more as
 a bug than as a feature.  If we want this for some reason, then this
 behaviour should be configurable, and we should also be stripping
 trailing `-01` day from search strings even when dateutil is not
 installed, for consistency reasons.  (It is really simple to do.)

 But I would argue that we should not take YYYY-MM-01 for YYYY-MM in
 the first place, unless it is really needed for some SPIRES legacy
 reasons or something...

-- 
Ticket URL: <http://invenio-software.org/ticket/431#comment:4>
Invenio <http://invenio-software.org>

Reply via email to