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

modstore’s picture

Title: No results...? » No results...? default search of *:* ?

Edit: 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?

modstore’s picture

Not 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.

jordanmagnuson’s picture

I seem to be having the same issue... can anyone shed some light on this?

dpalmer’s picture

I 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.

khiminrm’s picture

#2 works for me too

lampson’s picture

#2 worked for me as well.

becw’s picture

In 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.

ygerasimov’s picture

Status: Active » Fixed

Module has been rewritten since and now everything should work properly.

Status: Fixed » Closed (fixed)

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