ukwa / shine

Prototype SOLR-powered web archive exploration UI.
https://github.com/ukwa/shine/wiki
Apache License 2.0
43 stars 7 forks source link

Advanced Search - Exception Error using Crawl Date filter #34

Open peterwebster opened 10 years ago

peterwebster commented 10 years ago

Following feedback from user group, I tested the date search, and got an Exception Error from this:

http://www.webarchive.org.uk/shine/search/advanced?query=heritage&tab=concordance&dateStart=1999-01-01&dateEnd=2006-01-01&sort=content_type_norm&order=asc

kinmanli commented 10 years ago

Execution exception[[SolrServerException: java.text.ParseException: Unparseable date: "1999-01-01"]]

kinmanli commented 10 years ago

@peterwebster Did they enter the date into the fields or use the datepicker as the fomrat is 'dd/mm/yyyy'

I'll put some validation in for the "input format"

kinmanli commented 10 years ago

@peterwebster How did the user enter this date format? As I try to type in the format 01-01-1999 it gives me a screen validation.

2014-09-17 15-14-54_advanced search

peterwebster commented 10 years ago

I typed the dates in as below, and got the same error:

image

kinmanli commented 10 years ago

I entered "miss abigail" "01/01/1999" - "01/01/2001" and got the result below. Have you tried clearing your cache?

2014-09-29 11-16-56_advanced search

peterwebster commented 10 years ago

Just tried this on another machine, and had the same issue

I also tried a different search (with different dates) and got this error, which suggests it isn't the cache.

image

kinmanli commented 10 years ago

@peterwebster I'm hitting the same server and it's working with the same search criteria.

Edit I just replicated it on Chrome

Chrome's date in log for 01/01/2000 - 01/01/2008:

fq=crawl_date%3A%5B0006-06-23T00%3A00%3A00Z+TO+0006-07-01T00%3A00%3A00Z%5D

Firefox and IE

fq=crawl_date%3A%5B2000-01-01T00%3A00%3A00Z+TO+2008-01-01T00%3A00%3A00Z%5D
kinmanli commented 10 years ago

No more "Unparseable date: "2000-01-01

This was due to Chrome's usage of JQuery's datepicker.

http://192.168.45.220/shine/search/advanced?query=%22miss+abigail%22&action=search&dateStart=2000-01-01&dateEnd=2008-01-01&sort=content_type_norm&order=asc

kinmanli commented 9 years ago

Chrome - when selecting a date it does not stick it in the field