#422: Date ranges can't cross year boundaries
------------------------+---------------------------------------------------
  Reporter:  jblayloc   |       Owner:                
      Type:  defect     |      Status:  infoneeded_new
  Priority:  major      |   Milestone:                
 Component:  WebSearch  |     Version:                
Resolution:             |    Keywords:  Syntax        
------------------------+---------------------------------------------------
Changes (by simko):

  * status:  new => infoneeded_new


Old description:

> Example:
> {{{
> year:2008-02->2008-06
> }}}
> works ok.
>
> However
> {{{
> year:2008-02->2009-02
> }}}
> yields the same results as
> {{{
> year:2008-02->2009
> }}}
>
> For the moment I suggest working around by splitting your date search in
> twain (range to end of year, range from beginning of next).  But this
> should be repaired.

New description:

 Example:
 {{{
 year:2008-02->2008-06
 }}}
 works ok.

 However
 {{{
 year:2ai
 }}}
 yields the same results as
 {{{
 year:2008-02->2009
 }}}

 For the moment I suggest working around by splitting your date search in
 twain (range to end of year, range from beginning of next).  But this
 should be repaired.

--

Comment:

 Note that the `year` index is composed of two MARC fields, `773__y`
 and `269__c`.  The publication year stored in the former is four
 digits only, so if you search for values of up to `2009-02`, you will
 get all `2009` publications matched via 773 (since `2009 < 2009-NN`).

 So I think that what you observe is a by-product of the fact that we
 store sometimes four digits sometimes more digits inside the same
 index.

 If you would like to search in 269 only, then please try queries like:

 {{{
    269__c:2008-02->2009-02
    269__c:2008-02->2009-06
 }}}

 where I think everything works as expected.

 If you would like to search in some other way, then please provide
 more details.

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

Reply via email to