lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tommaso Teofili (JIRA)" <>
Subject [jira] [Commented] (SOLR-3704) Date range queries fail when highlighting
Date Fri, 03 Aug 2012 14:34:02 GMT


Tommaso Teofili commented on SOLR-3704:

Hi Konstantin,

can you please check if this also applies to Solr 4?
I can't reproduce it with the following test (I use the 'timestamp' field of type tdate, which
fieldType is your Creation_date set to?):
public class RangeQueryHighlightingTest extends SolrTestCaseJ4 {

  public static void beforeClass() throws Exception {
    initCore("solrconfig.xml", "schema.xml");

  public void testFailingRangeQueryWithHighlighting() throws Exception {
    assertU(adoc("tv_text", "basic fast vector highlighter test",
        "id", "1"));

    String q = "(timestamp:[2002-08-01T00:00:01.999Z TO 2013-08-13T23:59:59.999Z])";
    String hl = "true";
    String rows = "10";
    String start = "0";
    String hlFl = "timestamp";
    String hlRequireFieldMatch = "true";
    String hlSnippets = "1";

    assertQ(lrf.makeRequest("q", q, "hl", hl, "rows", rows, "start", start, "hl.fl", hlFl,
"hl.requireFieldMatch", hlRequireFieldMatch, "hl.snippets", hlSnippets));

> Date range queries fail when highlighting
> -----------------------------------------
>                 Key: SOLR-3704
>                 URL:
>             Project: Solr
>          Issue Type: Bug
>          Components: highlighter
>    Affects Versions: 3.6
>            Reporter: Konstantin Pentchev
> For the following valid date range query, an invalid date format exception is thrown
only when highlighting is enabled:
> q= (Creation_Date:[2002-08-01T00:00:01.999Z TO 2012-08-13T23:59:59.999Z])&hl=true&rows=10&start=0&hl.fl=Creation_Date&hl.requireFieldMatch=true&hl.snippets=1
> Response is: Invalid Date String:'1296176143000'

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message