<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>window &#8211; Solr.pl</title>
	<atom:link href="https://solr.pl/en/tag/window-2/feed/" rel="self" type="application/rss+xml" />
	<link>https://solr.pl/en/</link>
	<description>All things to be found - Blog related to Apache Solr &#38; Lucene projects - https://solr.apache.org</description>
	<lastBuildDate>Wed, 11 Nov 2020 08:06:53 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9</generator>
	<item>
		<title>Optimization &#8211; query result window size</title>
		<link>https://solr.pl/en/2011/01/10/optimization-query-result-window-size/</link>
					<comments>https://solr.pl/en/2011/01/10/optimization-query-result-window-size/#respond</comments>
		
		<dc:creator><![CDATA[Rafał Kuć]]></dc:creator>
		<pubDate>Mon, 10 Jan 2011 08:06:02 +0000</pubDate>
				<category><![CDATA[Solr]]></category>
		<category><![CDATA[cache]]></category>
		<category><![CDATA[query]]></category>
		<category><![CDATA[queryResultCache]]></category>
		<category><![CDATA[queryResultWindowCache]]></category>
		<category><![CDATA[result]]></category>
		<category><![CDATA[size]]></category>
		<category><![CDATA[window]]></category>
		<guid isPermaLink="false">http://sematext.solr.pl/?p=188</guid>

					<description><![CDATA[Hereby I would like to start a small series of articles describing the elements of the optimization of Solr instances. At first glance I decided to describe the parameter that specifies the data fetch window size &#8211; the query result]]></description>
										<content:encoded><![CDATA[<p>Hereby I would like to start a small series of articles describing the elements of the optimization of Solr instances. At first glance I decided to describe the parameter that specifies the data fetch window size &#8211; the query result window size. Hopefully, this article will explain how to use this parameter, how to modify and adapt it to your needs.</p>
<p><span id="more-188"></span></p>
<h3>The begining</h3>
<p>To start talking about this configuration parameter, we must first say how Solr fetches results from the index. When  passing the <em>rows </em>parameter to Solr, with the value of 20 for example,  we tell Solr that we want the result list to contain the maximum of 20  documents. However,  the number of results, which was taken from the index varies and is  determined precisely by the <em>queryResultWindowSize </em>parameter. This  parameter, defined in the <em>solrconfig.xml </em>file, determines how many  results will be retrieved from the index and stored in <em>queryResultCache</em>.</p>
<h3>But what can I use <em>queryResultWindowSize</em> for ?</h3>
<p>The <em>queryResultWindowSize </em>parameter specifies the size of so called results  window, which is simply the number of documents that will be fetched  from the index when retrieving search results.&nbsp; For example, setting <em>queryResultWinwdowSize </em>to 100 and send the following query:
</p>
<pre class="brush:xml">q=car&amp;rows=30&amp;start=10</pre>
<p>will  result in a maximum of 30 documents in the search result list, however  Solr will fetch 100 documents from the index (starting at index 0 and  ending at index 100) and then try Solr will place them in  <em>queryResultCache</em>. The next query, which will differ only in the parameters <em>start </em>and <em>rows </em>can be retrieved from <em>queryResultCache</em>.</p>
<h3>Configuration</h3>
<p>To set the <em>queryResultWindowSize </em>to the value of 100, you must add the following entry to the <em>solrconfig.xml </em>file:
</p>
<pre class="brush:xml">&lt;queryResultWindowSize&gt;100&lt;/queryResultWindowSize&gt;</pre>
<h3>What to remember ?</h3>
<p>Of course, setting only the <em>queryResultsWindowSize </em>is not everything. You should still provide adequate space in <em>queryResultCache </em>for Solr to be able to store the necessary information. However <em>queryResultCache </em>configuration is a topic for another article.</p>
<h3>But why use it ?</h3>
<p>The  answer to that question is quite simple &#8211; if your application and your  users often use the paging it is reasonable to consider changing the  default value of the <em>queryResultWindowSize</em>. In  most cases, where the implementation was based on paging, changing the  value of this parameter caused a severe increase in performance when switching  between query pages of the results.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://solr.pl/en/2011/01/10/optimization-query-result-window-size/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
