Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get all the results from solr without 10 as limit

Tags:

solrnet

How to get all the rows returned from the solr instead of getting only 10 rows?

like image 309
Selwyn Avatar asked Jun 17 '11 11:06

Selwyn


People also ask

How can I recover data from solr?

You can index this data under the core named sample_Solr using the post command. Following is the Java program to add documents to Apache Solr index. Save this code in a file with named RetrievingData. java.

What is the difference between Q and FQ in solr?

Standard solr queries use the "q" parameter in a request. Filter queries use the "fq" parameter. The primary difference is that filtered queries do not affect relevance scores; the query functions purely as a filter (docset intersection, essentially).

How do you query in solr?

Trying a basic queryThe main query for a solr search is specified via the q parameter. Standard Solr query syntax is the default (registered as the “lucene” query parser). If this is new to you, please check out the Solr Tutorial. Adding debug=query to your request will allow you to see how Solr is parsing your query.

What is solr facet?

Faceting is the arrangement of search results into categories based on indexed terms. Searchers are presented with the indexed terms, along with numerical counts of how many matching documents were found were each term.


1 Answers

You can define how many rows you want (see Pagination in SolrNet), but you can't get all documents. Solr is not a database. It doesn't make much sense to get all documents in Solr, if you feel you need it you might be using the wrong tool for the job.

This is also explained in detail in the Solr FAQ.

like image 55
Mauricio Scheffer Avatar answered Sep 22 '22 18:09

Mauricio Scheffer