Closed (fixed)
Project:
Apache Solr Views
Version:
7.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
19 Oct 2011 at 00:31 UTC
Updated:
13 Jun 2012 at 09:51 UTC
I have created a view of type Apache Solr Node, and have added just one field - Title.
I have two servers I am trying this on, and the first one, displays no results, even though there is around 25,000 items in the index, and the second server with more items in index, shows just one result.
I have no filters or anything set, is there something I am missing?
Comments
Comment #1
modstore commentedEdit: seems the reason may be that a default search of *:* is being performed. How can this be changed so that if no facets have been selected, it will display all results?
Comment #2
modstore commentedNot sure what the correct solution to this is, but I ended up having to change line 63 of apachesolr_views_query.inc from '*:*' to ''. Not sure what the reason for the colon and asterisks is, but works for me now without anything there.
Comment #3
jordanmagnuson commentedI seem to be having the same issue... can anyone shed some light on this?
Comment #4
dpalmer commentedI am also experiencing this issue.
Removing *:* does get the results to show up for me, but then I get a bunch of error messages for the bootstrap.inc file.
I dpmed $this right before line 63, and it seems like the $this->params['q'] is null, which is why it is adding that to the search. Even when I put in query filters in the URL, it still didnt work.
Comment #5
khiminrm commented#2 works for me too
Comment #6
lampson commented#2 worked for me as well.
Comment #7
becw commentedIn general,
*:*is how you query Apache Solr to return everything (though users should not ever need to type this). It sounds like it's being added in the wrong place, though--perhaps later code escapes the search parameters.Comment #8
ygerasimov commentedModule has been rewritten since and now everything should work properly.