Dev snapshot 6.x-1.x-dev 2009-Jun-18 breaks facets

mkalkbrenner - June 18, 2009 - 13:46
Project:Apache Solr Search Integration
Version:6.x-1.x-dev
Component:solrconfig.xml
Category:bug report
Priority:critical
Assigned:Unassigned
Status:closed
Description

After updating form 2009-Jun-13 snapshot to 2009-Jun-18 I noticed a bug in content type facet block.
For one search I got 53 results, but 7 of these were assigned to a content type which is not really represented in the search result. If you click on this content type you get 0 results.
It went out that those 7 wrong assigned content types are missing at other content type's counts. For example an other one shows 24 hits, but if you click on this facet item you receive 27 results.

I did a lot of tests, rolled back to 2009-Jun-13 snapshot several times, rolled out 2009-Jun-18 again, deleted the index and reindexed many times, updated to latest solr nightly snapshot and finally found the change that caused this issue in solrconfig.xml:

<requestHandler name="partitioned" class="solr.SearchHandler" default="true">
    <lst name="defaults">
     
      <!-- Abort any searches longer than 4 seconds -->
      <int name="timeAllowed">4000</int>

If I remove that newly introduced parameter timeAllowed everything works fine again.

BTW I don't think that the 4 seconds limit cause the issue, because my complete search result page only needs one second to load. Maybe it's a bug in solr itself ...

#1

pwolanin - June 18, 2009 - 14:36

What build of Solr are you using?

I've been testing with:

Last Changed Rev: 779497
Last Changed Date: 2009-05-28 05:11:12 -0400

And have not noticed any problems from this.

#2

mkalkbrenner - June 18, 2009 - 14:45

I use snapshots from http://people.apache.org/builds/lucene/solr/nightly/

I ran solr-2009-03-11 when the issue occured and updated to solr-2009-06-18 during my tests.
I can reproduce the issue with both builds.

#3

pwolanin - June 18, 2009 - 14:53

I just rebuilt from the latest trunk of Solr, and so far still not seeing the issue.

Last Changed Rev: 785965
Last Changed Date: 2009-06-18 04:59:46 -0400

#4

pwolanin - June 18, 2009 - 15:02

just trying this with Java 1.5 as well as 1.6, still not seeing it.

#5

mkalkbrenner - June 18, 2009 - 15:06

I'm running

java version "1.6.0_13"
Java(TM) SE Runtime Environment (build 1.6.0_13-b03)
Java HotSpot(TM) Server VM (build 11.3-b02, mixed mode)

and tomcat 6.0.18 on ubuntu linux 9.04

#6

mkalkbrenner - June 18, 2009 - 15:15

See attached screenshots. The search result contains no "Kochrezept".

AttachmentSize
timeAllowed.png 9.07 KB
no_timeAllowed.png 8.05 KB

#7

mkalkbrenner - June 18, 2009 - 15:24

If I set the value for timeAllowed to -1 it works. (Values <= 0 mean no time restriction)
If I increase the value to 40000 or 1000000 I get the same issue: "Kochrezept (7)"

#8

pwolanin - June 18, 2009 - 17:15

tomcat6 seems to work fine for me

Server version: Apache Tomcat/6.0.16
Server number: 6.0.16.0
OS Name: Linux
OS Version: 2.6.18-xenU-ec2-v1.0
Architecture: amd64
JVM Version: 1.6.0_04-b12

So, obviously this could be some subtle java bug, I guess? Try switching the param from int to str and see if that changes anything.

#9

mkalkbrenner - June 18, 2009 - 19:15

Turning the parameter from int to str didn't change anything.

<str name="timeAllowed">4000</str>

-1 and everything works, any positive value brings up wrong content types.

#10

pwolanin - June 18, 2009 - 19:23

ok, thought that was unlikely to matter, but worth a try.

Is this only for the node type facet, or are all facets affected? I'm trying to find some way to be sure I'm not missing the bug when testing.

AttachmentSize
int-str-495258.patch 877 bytes

#11

mkalkbrenner - June 18, 2009 - 20:13

I checked again some taxonomy facets. Every facet has wrong counts with timeAllowed set to 4000.
If I remove timeAllowed again, everything works fine.

#12

mkalkbrenner - June 19, 2009 - 07:34

I'm running solr in a multicore setup, maybe that's a difference.
See http://wiki.apache.org/solr/CoreAdmin

#13

pwolanin - June 19, 2009 - 12:52

I am doing the same, so I don't think that's it.

#14

pwolanin - June 19, 2009 - 13:57

here's a patch to comment out those directives for now

AttachmentSize
comment-out-495258-14.patch 896 bytes

#15

pwolanin - June 19, 2009 - 18:57
Status:active» fixed

committed to 6.x

#16

System Message - July 3, 2009 - 19:00
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.