[ https://issues.apache.org/jira/browse/SOLR-3704?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13428123#comment-13428123
]
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?):
{code}
public class RangeQueryHighlightingTest extends SolrTestCaseJ4 {
@BeforeClass
public static void beforeClass() throws Exception {
initCore("solrconfig.xml", "schema.xml");
}
@Test
public void testFailingRangeQueryWithHighlighting() throws Exception {
assertU(adoc("tv_text", "basic fast vector highlighter test",
"id", "1"));
assertU(commit());
assertU(optimize());
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));
}
}
{code}
> Date range queries fail when highlighting
> -----------------------------------------
>
> Key: SOLR-3704
> URL: https://issues.apache.org/jira/browse/SOLR-3704
> 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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
|