Resolution: Not A Problem
Affects Version/s: 4.0
Fix Version/s: None
java version "1.7.0_45"
Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)
Linux 3.2.0-23-generic #36-Ubuntu SMP Tue Apr 10 20:39:51 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
Solr is returning wrong highlights when I have a date range query with wild card in the end range. For example my query q is
In the above query activatedate, expiredate are date fields. Their definition in schema file is as follows
In the query result I am getting wrong highlighting information. Only highlighting result is show below
It should highlight only story word but it is highlighting lot other words also. What I noticed that this happens only if I have a wildcard * in the end range. If I change the above query and set a fixed date in the end range instead of * then solr return correct highlights. Modified query is shown below -
I guess its a bug in SOLR. If I use filter query fq instead of normal query q then highlighting result is OK for both queries.
If I use a specific date instead of * still it returns wrong highlights. This time it highlights numbers also. Say I am searching for the word math then it also highlights number with math. As for example if title of my article is Mathematics 1234 then it highlights 1234 also with math.