views:

1401

answers:

2

I'm using RoR + acts_as_solr to query a Solr database.

I'm used to using "*" to select all, thanks to MySQL, but that command fires an exception in Solr. Are they other wildcards I can use? Suggestions? Thanks!

+1  A: 

You can't query for "all" in lucene. The typical way to do it is to add a field with the same value for all documents and query for that value.

jshen
thanks - good to know
happythenewsad
+10  A: 

In Solr you can get all documents by querying *:* (except for pagination, that's another topic)

Mauricio Scheffer