<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-14480</id>
	<title>Nabble - Solr - User</title>
	<updated>2009-12-01T20:08:52Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/Solr---User-f14480.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Solr---User-f14480.html" />
	<subtitle type="html">The Solr User mailing list is for discussion and questions about using Solr.</subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26603266</id>
	<title>Re: Response writer configs</title>
	<published>2009-12-01T20:08:52Z</published>
	<updated>2009-12-01T20:08:52Z</updated>
	<author>
		<name>Erik Hatcher-4</name>
	</author>
	<content type="html">&lt;br&gt;On Dec 1, 2009, at 9:04 PM, Ross wrote:
&lt;br&gt;&amp;gt; I'm starting to play with Solr. This might be a silly question and not
&lt;br&gt;&amp;gt; particularly important but I'm curious.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I setup the example site using the tutorial. It works very well. I was
&lt;br&gt;&amp;gt; looking around the config files and notice that in my solrconfig.xml
&lt;br&gt;&amp;gt; that the queryResponseWriter area is commented out but they all still
&lt;br&gt;&amp;gt; work. wt=php etc returns the php format. How is it working if they're
&lt;br&gt;&amp;gt; not defined? Are they defined elsewhere?
&lt;br&gt;&lt;br&gt;Good question. &amp;nbsp;Solr defines (in SolrCore) a default set of response &amp;nbsp;
&lt;br&gt;writers.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;static{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;HashMap&amp;lt;String, QueryResponseWriter&amp;gt; m= new HashMap&amp;lt;String, &amp;nbsp;
&lt;br&gt;QueryResponseWriter&amp;gt;();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;m.put(&amp;quot;xml&amp;quot;, new XMLResponseWriter());
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;m.put(&amp;quot;standard&amp;quot;, m.get(&amp;quot;xml&amp;quot;));
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;m.put(&amp;quot;json&amp;quot;, new JSONResponseWriter());
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;m.put(&amp;quot;python&amp;quot;, new PythonResponseWriter());
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;m.put(&amp;quot;php&amp;quot;, new PHPResponseWriter());
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;m.put(&amp;quot;phps&amp;quot;, new PHPSerializedResponseWriter());
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;m.put(&amp;quot;ruby&amp;quot;, new RubyResponseWriter());
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;m.put(&amp;quot;raw&amp;quot;, new RawResponseWriter());
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;m.put(&amp;quot;javabin&amp;quot;, new BinaryResponseWriter());
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;DEFAULT_RESPONSE_WRITERS = Collections.unmodifiableMap(m);
&lt;br&gt;&amp;nbsp; &amp;nbsp;}
&lt;br&gt;&lt;br&gt;Note that these built in ones can be overridden, but not undefined, by &amp;nbsp;
&lt;br&gt;registering a response writer with the same name as a built in one.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Erik
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Response-writer-configs-tp26602399p26603266.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26602399</id>
	<title>Response writer configs</title>
	<published>2009-12-01T18:04:49Z</published>
	<updated>2009-12-01T18:04:49Z</updated>
	<author>
		<name>Ross Keatinge</name>
	</author>
	<content type="html">Hi all
&lt;br&gt;&lt;br&gt;I'm starting to play with Solr. This might be a silly question and not
&lt;br&gt;particularly important but I'm curious.
&lt;br&gt;&lt;br&gt;I setup the example site using the tutorial. It works very well. I was
&lt;br&gt;looking around the config files and notice that in my solrconfig.xml
&lt;br&gt;that the queryResponseWriter area is commented out but they all still
&lt;br&gt;work. wt=php etc returns the php format. How is it working if they're
&lt;br&gt;not defined? Are they defined elsewhere?
&lt;br&gt;&lt;br&gt;Thanks
&lt;br&gt;Ross
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Response-writer-configs-tp26602399p26602399.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26600956</id>
	<title>question about schemas</title>
	<published>2009-12-01T15:27:10Z</published>
	<updated>2009-12-01T15:27:10Z</updated>
	<author>
		<name>solr-user</name>
	</author>
	<content type="html">I just started using Solr, and I am trying to figure out how to setup my schema. I know that Solr doesn’t have JOINs, and so I am having some difficulty figuring out how would I setup a schema for the following fictional situation. &amp;nbsp;For example, let us say that :
&lt;br&gt;&lt;br&gt;-	I have a 10000+ customers, each having some specific info (StoreId , Name, Phone, Address, City, State, Zip, etc)
&lt;br&gt;-	Each customer has a subset of the 100+ products I am looking to track, each product having some specific info (ProductId, Name, Width, Height, Depth, Weight, Density, etc)
&lt;br&gt;-	I want to be able to search by the product info but have facets return the number of customers, rather than the number of products, that meet my criteria
&lt;br&gt;-	I want to display (and sort) customers based on my product search
&lt;br&gt;&lt;br&gt;In relational databases, I would simply create two tables (customer and product) and JOIN them. &amp;nbsp;I could then craft a sql query to count the number of distinct StoreId values in the result (something like facets).
&lt;br&gt;&lt;br&gt;In Solr, however, there are no joins. &amp;nbsp;As far as I can tell, my options are to:
&lt;br&gt;&lt;br&gt;-	create two Solr instances, one with customer info and one with product info; I would search the product Solr instance and identify the StoreId values return, and then use that info to search the customer Solr instance to get the customer info. &amp;nbsp;The problem with this is the second query could have ten thousand ANDs (one for each StoreId returned by the first query)
&lt;br&gt;-	create a single Solr instance that contains a denormalized version of the data where each doc would contain both the customer info and the product info for a given product. &amp;nbsp;The problem with this is that my facets would return the number of products, not the number of customers
&lt;br&gt;-	create a single Solr instance that contains a denormalized version of the data where each doc contains the customer info and info for ALL products that the &amp;nbsp;customer might have (likely done via dynamicfields). The problem with this is that my schema would be a bit messy and that my queries could have hundreds of ANDs and Ors (one AND for each product field, and one OR for each product); for example, q=((Width1:50 AND Density1:7) OR (Width2:50 AND Density2:7) OR …)
&lt;br&gt;&lt;br&gt;Does anyone have any advice on this? &amp;nbsp;Are there other schemas that might work? &amp;nbsp;Hopefully the example makes sense.
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/question-about-schemas-tp26600956p26600956.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26599625</id>
	<title>Re: Maximum number of fields allowed in a Solr document</title>
	<published>2009-12-01T13:47:45Z</published>
	<updated>2009-12-01T13:47:45Z</updated>
	<author>
		<name>Lance Norskog-2</name>
	</author>
	<content type="html">Lucene creates an array of one item per document for every field you
&lt;br&gt;sort on. If you sort on a thousand fields, Lucene will create 1000
&lt;br&gt;different arrays of 500K ints. I assume there is some sort of cache of
&lt;br&gt;these arrays. In Solr, it is also possible to sort using a function as
&lt;br&gt;the relevance value. This is rather slow, and caches no data between
&lt;br&gt;queries.
&lt;br&gt;&lt;br&gt;You may want to do sorting in your front-end applications, or get
&lt;br&gt;database ids from Solr and do sorting in the database query.
&lt;br&gt;&lt;br&gt;On Mon, Nov 30, 2009 at 7:14 AM, Alex Wang &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26599625&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;awang@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Thanks Otis for the reply. Yes this will be pretty memory intensive.
&lt;br&gt;&amp;gt; The size of the index is 5 cores with a maximum of 500K documents each
&lt;br&gt;&amp;gt; core. I did search the archives before but did not find any definite
&lt;br&gt;&amp;gt; answer. Thanks again!
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Alex
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Nov 27, 2009, at 11:09 PM, Otis Gospodnetic wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Hi Alex,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; There is no build-in limit.  The limit is going to be dictated by
&lt;br&gt;&amp;gt;&amp;gt; your hardware resources.  In particular, this sounds like a memory
&lt;br&gt;&amp;gt;&amp;gt; intensive app because of sorting on lots of different fields.  You
&lt;br&gt;&amp;gt;&amp;gt; didn't mention the size of your index, but that's a factor, too.
&lt;br&gt;&amp;gt;&amp;gt; Once in a while people on the list mention cases with lots and lots
&lt;br&gt;&amp;gt;&amp;gt; of fields, so I'd check ML archives.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Otis
&lt;br&gt;&amp;gt;&amp;gt; --
&lt;br&gt;&amp;gt;&amp;gt; Sematext is hiring -- &lt;a href=&quot;http://sematext.com/about/jobs.html?mls&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://sematext.com/about/jobs.html?mls&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; Lucene, Solr, Nutch, Katta, Hadoop, HBase, UIMA, NLP, NER, IR
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; ----- Original Message ----
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; From: Alex Wang &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26599625&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;awang@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; To: &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26599625&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;solr-user@...&lt;/a&gt;&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26599625&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;solr-user@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Sent: Thu, November 26, 2009 12:47:36 PM
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Subject: Maximum number of fields allowed in a Solr document
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; We are in the process of designing a Solr app where we might have
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; millions of documents and within each of the document, we might have
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; thousands of dynamic fields. These fields are small and only contain
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; an integer, which needs to be retrievable and sortable.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; My questions is:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 1. Is there a limit on the number of fields allowed per document?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 2. What is the performance impact for such design?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 3. Has anyone done this before and is it a wise thing to do?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Alex
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Lance Norskog
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26599625&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;goksron@...&lt;/a&gt;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Maximum-number-of-fields-allowed-in-a-Solr-document-tp26532890p26599625.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26599240</id>
	<title>Re: Creating Facets</title>
	<published>2009-12-01T13:21:01Z</published>
	<updated>2009-12-01T13:21:01Z</updated>
	<author>
		<name>Lance Norskog-2</name>
	</author>
	<content type="html">Also, facet values are pulled from the indexed terms rather than the
&lt;br&gt;stored source fields. This means that if you want to facet on a field,
&lt;br&gt;that field has to be declared 'indexed=&amp;quot;true&amp;quot;' in schema.xml.
&lt;br&gt;&lt;br&gt;On Thu, Nov 26, 2009 at 8:40 AM, dipti khullar &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26599240&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dipti.khullar@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Examples can be found out at:
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.lucidimagination.com/Community/Hear-from-the-Experts/Articles/Faceted-Search-Solr&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.lucidimagination.com/Community/Hear-from-the-Experts/Articles/Faceted-Search-Solr&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Simple configuration works with setting facet=true&amp;facet.field=xyz
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks
&lt;br&gt;&amp;gt; Dipti
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Wed, Nov 25, 2009 at 3:29 AM, Lance Norskog &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26599240&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;goksron@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; There is nothing special to configure. All facet processing happens
&lt;br&gt;&amp;gt;&amp;gt; during processing the query.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; On Tue, Nov 24, 2009 at 9:56 AM, Tommy Molto &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26599240&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tommymolto@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; People,
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; I look in the solr wiki and only found about the use of the fecets, not
&lt;br&gt;&amp;gt;&amp;gt; how
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; to configure it in the schema or solrconfig. Any tip how to do it?
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; Att,
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; --
&lt;br&gt;&amp;gt;&amp;gt; Lance Norskog
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26599240&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;goksron@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Lance Norskog
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26599240&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;goksron@...&lt;/a&gt;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Creating-Facets-tp26500576p26599240.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26598693</id>
	<title>NYC Search &amp; Discovery Meetup</title>
	<published>2009-12-01T12:39:08Z</published>
	<updated>2009-12-01T12:39:08Z</updated>
	<author>
		<name>Otis Gospodnetic</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;&lt;br&gt;For those living in or near NYC, you may be interested in joining (and/or presenting?) at the NYC Search &amp; Discovery Meetup.
&lt;br&gt;Topics are: search, machine learning, data mining, NLP, information gathering, information extraction, etc.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &lt;a href=&quot;http://www.meetup.com/NYC-Search-and-Discovery/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.meetup.com/NYC-Search-and-Discovery/&lt;/a&gt;&lt;br&gt;&lt;br&gt;Our previous/first meetup was about solr-python and parse.ly (a service that makes use of Solr and solr-python).
&lt;br&gt;&lt;br&gt;Tomorrow (December 2 2009) we have:
&lt;br&gt;&lt;br&gt;&amp;nbsp; Incorporating Probabilistic Retrieval Knowledge into TFIDF-based Search Engine
&lt;br&gt;&lt;br&gt;You can RSVP at:
&lt;br&gt;&amp;nbsp; &lt;a href=&quot;http://www.meetup.com/NYC-Search-and-Discovery/calendar/11745435/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.meetup.com/NYC-Search-and-Discovery/calendar/11745435/&lt;/a&gt;&lt;br&gt;&lt;br&gt;Otis
&lt;br&gt;--
&lt;br&gt;Sematext -- &lt;a href=&quot;http://sematext.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://sematext.com/&lt;/a&gt;&amp;nbsp;-- Solr - Lucene - Nutch
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/NYC-Search---Discovery-Meetup-tp26598693p26598693.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26598147</id>
	<title>Re: Where to put ExternalRequestHandler and Tika jars</title>
	<published>2009-12-01T11:59:05Z</published>
	<updated>2009-12-01T11:59:05Z</updated>
	<author>
		<name>Juan Pedro Danculovic</name>
	</author>
	<content type="html">Now it is working.. It was a libraries problem as you said...
&lt;br&gt;&lt;br&gt;thanks!
&lt;br&gt;&lt;br&gt;&lt;br&gt;On Mon, Nov 30, 2009 at 12:25 PM, javaxmlsoapdev &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26598147&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;vikasdp@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Yes. code I posted in first thread does work. And I am able to retrieve
&lt;br&gt;&amp;gt; data
&lt;br&gt;&amp;gt; from the document index. did you include all required jars in deployed solr
&lt;br&gt;&amp;gt; application's lib folder? what errors are you seeing?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Juan Pedro Danculovic wrote:
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; HI! does your example finally works? I index the data with solrj and I
&lt;br&gt;&amp;gt; &amp;gt; have
&lt;br&gt;&amp;gt; &amp;gt; the same problem and could not retrieve file data.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; On Wed, Nov 25, 2009 at 3:41 PM, javaxmlsoapdev &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26598147&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;vikasdp@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; grrrrrrrr. I had to include tika and related parsing jars into
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; tomcat/webapps/solr/WEB-INF/lib.. this was an embarrassing mistake.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; apologies for all the noise.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; --
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; View this message in context:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/Where-to-put-ExternalRequestHandler-and-Tika-jars-tp26515579p26518100.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/Where-to-put-ExternalRequestHandler-and-Tika-jars-tp26515579p26518100.html&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Sent from the Solr - User mailing list archive at Nabble.com.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; View this message in context:
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/Where-to-put-ExternalRequestHandler-and-Tika-jars-tp26515579p26576242.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/Where-to-put-ExternalRequestHandler-and-Tika-jars-tp26515579p26576242.html&lt;/a&gt;&lt;br&gt;&amp;gt; Sent from the Solr - User mailing list archive at Nabble.com.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Where-to-put-ExternalRequestHandler-and-Tika-jars-tp26515579p26598147.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26596943</id>
	<title>Re: latency in solr response  is observed  after index is updated</title>
	<published>2009-12-01T10:42:11Z</published>
	<updated>2009-12-01T10:42:11Z</updated>
	<author>
		<name>kaykay</name>
	</author>
	<content type="html">What would be the average doc size. &amp;nbsp;What is the autoCommit frequency 
&lt;br&gt;set in solrconfig.xml .
&lt;br&gt;&lt;br&gt;Another place to look at is the field cache size and the nature of 
&lt;br&gt;warmup queries run after a new searcher is created ( happens due to a 
&lt;br&gt;commit ).
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Bharath Venkatesh wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi Kalidoss,
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;I am not aware of using solr-config for committing the document . 
&lt;br&gt;&amp;gt; but I have mentioned below how we update and &amp;nbsp;commit documents:
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; curl &lt;a href=&quot;http://solr_url/update&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://solr_url/update&lt;/a&gt;&amp;nbsp;--data-binary @feeds.xml -H 
&lt;br&gt;&amp;gt; 'Content-type:text/xml; charset=utf-8'
&lt;br&gt;&amp;gt; curl &lt;a href=&quot;http://solr_url/update&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://solr_url/update&lt;/a&gt;&amp;nbsp;--data-binary '&amp;lt;commit/&amp;gt;' -H 
&lt;br&gt;&amp;gt; 'Content-type:text/xml; charset=utf-8'
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; where feeds.xml contains the document in xml format
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; we have master and slave replication for solr server.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; updates happens in master , snappuller and snapinstaller is run on 
&lt;br&gt;&amp;gt; slaves periodically
&lt;br&gt;&amp;gt; queries don't happen at master , only happens at slaves
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; is there any thing which can be said from above information ?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt; Bharath
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: kalidoss [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26596943&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;kalidoss.muthuramalingam@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; Sent: Tue 12/1/2009 2:38 PM
&lt;br&gt;&amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26596943&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;solr-user@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Subject: Re: latency in solr response &amp;nbsp;is observed &amp;nbsp;after index is updated
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; r u using solr-config for committing the document?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; bharath venkatesh wrote:
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; We are observing latency (some times huge latency upto 10-20 secs) 
&lt;br&gt;&amp;gt;&amp;gt; in solr response &amp;nbsp;after index is updated . whats the reason of this 
&lt;br&gt;&amp;gt;&amp;gt; latency and how can it be minimized ?
&lt;br&gt;&amp;gt;&amp;gt; Note: our index size is pretty large.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; any help would be appreciated as we largely affected by it
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Thanks in advance.
&lt;br&gt;&amp;gt;&amp;gt; Bharath
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; This message is intended only for the use of the addressee and may contain information that is privileged, confidential 
&lt;br&gt;&amp;gt; and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or the 
&lt;br&gt;&amp;gt; employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any 
&lt;br&gt;&amp;gt; dissemination, distribution or copying of this communication is strictly prohibited. If you have received this e-mail 
&lt;br&gt;&amp;gt; in error, please notify us immediately by return e-mail and delete this e-mail and all attachments from your system.
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/latency-in-solr-response--is-observed--after-index-is-updated-tp26588583p26596943.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26594022</id>
	<title>Re: getting total index size &amp; last update date/time from query</title>
	<published>2009-12-01T07:49:48Z</published>
	<updated>2009-12-01T07:49:48Z</updated>
	<author>
		<name>Erik Hatcher-4</name>
	</author>
	<content type="html">The drawback to stats.jsp is that the XML it just that. &amp;nbsp;It isn't in &amp;nbsp;
&lt;br&gt;standard response writer format, so you can only get XML, not JSON, &amp;nbsp;
&lt;br&gt;etc like you can with /admin/luke.
&lt;br&gt;&lt;br&gt;And as mentioned in my previous post, use numTerms=0 for /admin/luke &amp;nbsp;
&lt;br&gt;to speed it up.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Erik
&lt;br&gt;&lt;br&gt;&lt;br&gt;On Nov 21, 2009, at 12:00 AM, Lance Norskog wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; solr/admin/stats.jsp gives a much larger XML dump and also includes
&lt;br&gt;&amp;gt; these two data items.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Note that Luke can walk the entire index data structures, so if you
&lt;br&gt;&amp;gt; have a large index it's like playing with fire.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Thu, Nov 19, 2009 at 8:54 AM, Binkley, Peter
&lt;br&gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26594022&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Peter.Binkley@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt; The Luke request handler (normally available at &amp;lt;solr&amp;gt;/admin/luke) &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; will
&lt;br&gt;&amp;gt;&amp;gt; give you the document count (not size on the disk, though, if that's
&lt;br&gt;&amp;gt;&amp;gt; what you want) and last update and other info:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;lt;lst name=&amp;quot;index&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;int name=&amp;quot;numDocs&amp;quot;&amp;gt;14591&amp;lt;/int&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;int name=&amp;quot;maxDoc&amp;quot;&amp;gt;14598&amp;lt;/int&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;int name=&amp;quot;numTerms&amp;quot;&amp;gt;128730&amp;lt;/int&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;long name=&amp;quot;version&amp;quot;&amp;gt;1196962176380&amp;lt;/long&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;bool name=&amp;quot;optimized&amp;quot;&amp;gt;false&amp;lt;/bool&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;bool name=&amp;quot;current&amp;quot;&amp;gt;true&amp;lt;/bool&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;bool name=&amp;quot;hasDeletions&amp;quot;&amp;gt;true&amp;lt;/bool&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;str name=&amp;quot;directory&amp;quot;&amp;gt;.... s/solr/data/index&amp;lt;/str&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;date name=&amp;quot;lastModified&amp;quot;&amp;gt;2009-11-19T16:44:45Z&amp;lt;/date&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;lt;/lst&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; See &lt;a href=&quot;http://wiki.apache.org/solr/LukeRequestHandler&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://wiki.apache.org/solr/LukeRequestHandler&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Peter
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; From: Joel Nylund [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26594022&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jnylund@...&lt;/a&gt;]
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Sent: Thursday, November 19, 2009 8:31 AM
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26594022&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;solr-user@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Subject: getting total index size &amp; last update date/time from query
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Looking for total number of documents in my index and the
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; last updated date/time of the index.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Is there a way to get this through the standard query q=?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; if not, what is the best way to get this info from solr.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; thanks
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Joel
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -- 
&lt;br&gt;&amp;gt; Lance Norskog
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26594022&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;goksron@...&lt;/a&gt;
&lt;/div&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/getting-total-index-size---last-update-date-time-from-query-tp26428277p26594022.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26593998</id>
	<title>Re: getting total index size &amp; last update date/time from query</title>
	<published>2009-12-01T07:48:30Z</published>
	<updated>2009-12-01T07:48:30Z</updated>
	<author>
		<name>Erik Hatcher-4</name>
	</author>
	<content type="html">Use numTerms=0 - /admin/luke?numTerms=0 that'll speed it up tons.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Erik
&lt;br&gt;&lt;br&gt;&lt;br&gt;On Dec 1, 2009, at 10:46 AM, Joel Nylund wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi, Luke worked, but we are finding it really slow in our &amp;nbsp;
&lt;br&gt;&amp;gt; environment (8-10 seconds). Is there a way to just get document &amp;nbsp;
&lt;br&gt;&amp;gt; count &amp; last index time with a faster call, possibly passing &amp;nbsp;
&lt;br&gt;&amp;gt; something to luke?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; thanks
&lt;br&gt;&amp;gt; Joel
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Nov 19, 2009, at 11:54 AM, Binkley, Peter wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; The Luke request handler (normally available at &amp;lt;solr&amp;gt;/admin/luke) &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; will
&lt;br&gt;&amp;gt;&amp;gt; give you the document count (not size on the disk, though, if that's
&lt;br&gt;&amp;gt;&amp;gt; what you want) and last update and other info:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;lt;lst name=&amp;quot;index&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; 	&amp;lt;int name=&amp;quot;numDocs&amp;quot;&amp;gt;14591&amp;lt;/int&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; 	&amp;lt;int name=&amp;quot;maxDoc&amp;quot;&amp;gt;14598&amp;lt;/int&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; 	&amp;lt;int name=&amp;quot;numTerms&amp;quot;&amp;gt;128730&amp;lt;/int&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; 	&amp;lt;long name=&amp;quot;version&amp;quot;&amp;gt;1196962176380&amp;lt;/long&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; 	&amp;lt;bool name=&amp;quot;optimized&amp;quot;&amp;gt;false&amp;lt;/bool&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; 	&amp;lt;bool name=&amp;quot;current&amp;quot;&amp;gt;true&amp;lt;/bool&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; 	&amp;lt;bool name=&amp;quot;hasDeletions&amp;quot;&amp;gt;true&amp;lt;/bool&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; 	&amp;lt;str name=&amp;quot;directory&amp;quot;&amp;gt;.... s/solr/data/index&amp;lt;/str&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; 	&amp;lt;date name=&amp;quot;lastModified&amp;quot;&amp;gt;2009-11-19T16:44:45Z&amp;lt;/date&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;lt;/lst&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; See &lt;a href=&quot;http://wiki.apache.org/solr/LukeRequestHandler&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://wiki.apache.org/solr/LukeRequestHandler&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Peter
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; From: Joel Nylund [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26593998&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jnylund@...&lt;/a&gt;]
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Sent: Thursday, November 19, 2009 8:31 AM
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26593998&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;solr-user@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Subject: getting total index size &amp; last update date/time from query
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Looking for total number of documents in my index and the
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; last updated date/time of the index.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Is there a way to get this through the standard query q=?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; if not, what is the best way to get this info from solr.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; thanks
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Joel
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/getting-total-index-size---last-update-date-time-from-query-tp26428277p26593998.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26593969</id>
	<title>Re: getting total index size &amp; last update date/time from query</title>
	<published>2009-12-01T07:46:01Z</published>
	<updated>2009-12-01T07:46:01Z</updated>
	<author>
		<name>Joel Nylund</name>
	</author>
	<content type="html">Hi, Luke worked, but we are finding it really slow in our environment &amp;nbsp;
&lt;br&gt;(8-10 seconds). Is there a way to just get document count &amp; last index &amp;nbsp;
&lt;br&gt;time with a faster call, possibly passing something to luke?
&lt;br&gt;&lt;br&gt;thanks
&lt;br&gt;Joel
&lt;br&gt;&lt;br&gt;On Nov 19, 2009, at 11:54 AM, Binkley, Peter wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; The Luke request handler (normally available at &amp;lt;solr&amp;gt;/admin/luke) &amp;nbsp;
&lt;br&gt;&amp;gt; will
&lt;br&gt;&amp;gt; give you the document count (not size on the disk, though, if that's
&lt;br&gt;&amp;gt; what you want) and last update and other info:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;lst name=&amp;quot;index&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; 	&amp;lt;int name=&amp;quot;numDocs&amp;quot;&amp;gt;14591&amp;lt;/int&amp;gt;
&lt;br&gt;&amp;gt; 	&amp;lt;int name=&amp;quot;maxDoc&amp;quot;&amp;gt;14598&amp;lt;/int&amp;gt;
&lt;br&gt;&amp;gt; 	&amp;lt;int name=&amp;quot;numTerms&amp;quot;&amp;gt;128730&amp;lt;/int&amp;gt;
&lt;br&gt;&amp;gt; 	&amp;lt;long name=&amp;quot;version&amp;quot;&amp;gt;1196962176380&amp;lt;/long&amp;gt;
&lt;br&gt;&amp;gt; 	&amp;lt;bool name=&amp;quot;optimized&amp;quot;&amp;gt;false&amp;lt;/bool&amp;gt;
&lt;br&gt;&amp;gt; 	&amp;lt;bool name=&amp;quot;current&amp;quot;&amp;gt;true&amp;lt;/bool&amp;gt;
&lt;br&gt;&amp;gt; 	&amp;lt;bool name=&amp;quot;hasDeletions&amp;quot;&amp;gt;true&amp;lt;/bool&amp;gt;
&lt;br&gt;&amp;gt; 	&amp;lt;str name=&amp;quot;directory&amp;quot;&amp;gt;.... s/solr/data/index&amp;lt;/str&amp;gt;
&lt;br&gt;&amp;gt; 	&amp;lt;date name=&amp;quot;lastModified&amp;quot;&amp;gt;2009-11-19T16:44:45Z&amp;lt;/date&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;/lst&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; See &lt;a href=&quot;http://wiki.apache.org/solr/LukeRequestHandler&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://wiki.apache.org/solr/LukeRequestHandler&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Peter
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt;&amp;gt; From: Joel Nylund [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26593969&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jnylund@...&lt;/a&gt;]
&lt;br&gt;&amp;gt;&amp;gt; Sent: Thursday, November 19, 2009 8:31 AM
&lt;br&gt;&amp;gt;&amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26593969&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;solr-user@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; Subject: getting total index size &amp; last update date/time from query
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Looking for total number of documents in my index and the
&lt;br&gt;&amp;gt;&amp;gt; last updated date/time of the index.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Is there a way to get this through the standard query q=?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; if not, what is the best way to get this info from solr.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; thanks
&lt;br&gt;&amp;gt;&amp;gt; Joel
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/getting-total-index-size---last-update-date-time-from-query-tp26428277p26593969.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26592408</id>
	<title>Re: How to avoid hardcoding masterUrl in slave solrconfig.xml?</title>
	<published>2009-12-01T06:11:00Z</published>
	<updated>2009-12-01T06:11:00Z</updated>
	<author>
		<name>William Pierce-3</name>
	</author>
	<content type="html">Thanks, Noble....That did the trick!
&lt;br&gt;&lt;br&gt;- Bill
&lt;br&gt;&lt;br&gt;--------------------------------------------------
&lt;br&gt;From: &amp;quot;Noble Paul നോബിള്‍ &amp;nbsp;नोब्ळ्&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26592408&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;noble.paul@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Sent: Monday, November 30, 2009 10:20 PM
&lt;br&gt;To: &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26592408&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;solr-user@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Subject: Re: How to avoid hardcoding masterUrl in slave solrconfig.xml?
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; remove the &amp;lt;lst name=&amp;quot;slave&amp;quot;&amp;gt; section from your solrconfig. It should be 
&lt;br&gt;&amp;gt; fine
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Tue, Dec 1, 2009 at 6:59 AM, William Pierce &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26592408&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;evalsinca@...&lt;/a&gt;&amp;gt; 
&lt;br&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt; Hi, Joe:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I tried with the &amp;quot;fetchIndex&amp;quot; all lower-cased, and still the same result.
&lt;br&gt;&amp;gt;&amp;gt; What do you specify for masterUrl in the solrconfig.xml on the slave? 
&lt;br&gt;&amp;gt;&amp;gt; it
&lt;br&gt;&amp;gt;&amp;gt; seems to me that if I remove the element, &amp;nbsp;I get the exception I wrote
&lt;br&gt;&amp;gt;&amp;gt; about. &amp;nbsp; If I set &amp;nbsp;it to some dummy url, then I get an invalid url 
&lt;br&gt;&amp;gt;&amp;gt; message
&lt;br&gt;&amp;gt;&amp;gt; when I run the command=details on the slave replication handler.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; What I am doing does not look out of the ordinary. &amp;nbsp; I want to control 
&lt;br&gt;&amp;gt;&amp;gt; the
&lt;br&gt;&amp;gt;&amp;gt; masterurl and the time of replication by myself. &amp;nbsp;As such I want neither 
&lt;br&gt;&amp;gt;&amp;gt; the
&lt;br&gt;&amp;gt;&amp;gt; masterUrl nor the polling interval in the config file. &amp;nbsp;Can you share
&lt;br&gt;&amp;gt;&amp;gt; relevant snippets of your config file and the exact url your code is
&lt;br&gt;&amp;gt;&amp;gt; generating?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; - Bill
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; --------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt; From: &amp;quot;Joe Kessel&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26592408&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;isjustjoe@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Sent: Monday, November 30, 2009 3:45 PM
&lt;br&gt;&amp;gt;&amp;gt; To: &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26592408&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;solr-user@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Subject: RE: How to avoid hardcoding masterUrl in slave solrconfig.xml?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I do something very similar and it works for me. &amp;nbsp;I noticed on your URL
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; that you have a mixed case fetchIndex, which the request handler is 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; checking
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; for fetchindex, all lowercase. &amp;nbsp;If it is not that simple I can try to 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; see
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; the exact url my code is generating.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Hope it helps,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Joe
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26592408&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;evalsinca@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26592408&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;solr-user@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Subject: Re: How to avoid hardcoding masterUrl in slave solrconfig.xml?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Date: Mon, 30 Nov 2009 13:48:38 -0800
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Folks:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Sorry for this repost! It looks like this email went out twice....
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; - Bill
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; --------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; From: &amp;quot;William Pierce&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26592408&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;evalsinca@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Sent: Monday, November 30, 2009 1:47 PM
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; To: &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26592408&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;solr-user@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Subject: How to avoid hardcoding masterUrl in slave solrconfig.xml?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt; Folks:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt; I do not want to hardcode the masterUrl in the solrconfig.xml of my &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt; slave.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt; If the masterUrl tag is missing from the config file, I am getting an
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt; exception in solr saying that the masterUrl is required. So I set it 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt; to
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt; some dummy value, comment out the poll interval element, and issue a
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt; replication command manually like so:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://localhost:port/postings/replication?command=fetchIndex&amp;masterUrl=http://localhost:port/postingsmaster/replication&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://localhost:port/postings/replication?command=fetchIndex&amp;masterUrl=http://localhost:port/postingsmaster/replication&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt; Now no internal exception, solr responds with a status &amp;quot;OK&amp;quot; for the &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt; above
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt; request, the tomcat logs show no error but the index is not 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt; replicated.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt; When I issue the details command to the slave, I see that it ignored 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt; &amp;nbsp;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt; the
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt; masterUrl on the command line but instead complains that the master 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt; url
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt; &amp;gt; in
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt; the config file (which I had set to a dummy value) is not correct.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt; (Just fyi, I have tried sending in the masterUrl to the above command 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt; &amp;nbsp;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt; with
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt; url encoding and also without. in both cases, I got the same result.)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt; Soooo....how exactly do I avoid hardcoding the masterUrl in the 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt; config
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt; file? Any pointers/help will be greatly appreciated!
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt; - Bill
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; _________________________________________________________________
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Bing brings you maps, menus, and reviews organized in one place.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://www.bing.com/search?q=restaurants&amp;form=MFESRP&amp;publ=WLHMTAG&amp;crea=TEXT_MFESRP_Local_MapsMenu_Resturants_1x1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.bing.com/search?q=restaurants&amp;form=MFESRP&amp;publ=WLHMTAG&amp;crea=TEXT_MFESRP_Local_MapsMenu_Resturants_1x1&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -- 
&lt;br&gt;&amp;gt; -----------------------------------------------------
&lt;br&gt;&amp;gt; Noble Paul | Principal Engineer| AOL | &lt;a href=&quot;http://aol.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://aol.com&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-to-avoid-hardcoding-masterUrl-in-slave-solrconfig.xml--tp26582527p26592408.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26591635</id>
	<title>Re: Phrase Query Issue</title>
	<published>2009-12-01T05:20:58Z</published>
	<updated>2009-12-01T05:20:58Z</updated>
	<author>
		<name>Erick Erickson</name>
	</author>
	<content type="html">Well, I don't think this is done normally. I'm assuming here that
&lt;br&gt;you've simplified the example and your *real* requirements aren't
&lt;br&gt;quite what you're showing, because what you've described seems
&lt;br&gt;really confusing to a user.
&lt;br&gt;&lt;br&gt;That said, I don't think SOLR has a way to handle this out-of-the-box.
&lt;br&gt;What you're asking for is for the query to search different fields based
&lt;br&gt;on the *results* of the parsing. You have to deal with someone searching
&lt;br&gt;for &amp;quot;tests&amp;quot; OR &amp;quot;run&amp;quot;, which presumably should return anything
&lt;br&gt;with &amp;quot;test&amp;quot;, &amp;quot;tests&amp;quot;, &amp;quot;testing&amp;quot;, &amp;quot;run&amp;quot;. But should NOT return a doc
&lt;br&gt;with only &amp;quot;running&amp;quot; in the title. But to the parser, this starts out as
&lt;br&gt;title:(tests run)....
&lt;br&gt;&lt;br&gt;So, you really need to see the results of feeding any term through
&lt;br&gt;the stemmer. If it comes back the same as what you fed in, go
&lt;br&gt;against one field. If it comes back stemmed, go against a
&lt;br&gt;different field.
&lt;br&gt;&lt;br&gt;You'll probably have to create a custom parser that pre-processes
&lt;br&gt;each term and determines which field should be searched, search
&lt;br&gt;the SOLR list as creating custom parsers has been discussed
&lt;br&gt;before by people more knowledgeable than me...
&lt;br&gt;&lt;br&gt;If my assumption that there are parts of this problem that you've
&lt;br&gt;simplified is NOT correct, perhaps you could explain the use-case
&lt;br&gt;that leads to this requirement....
&lt;br&gt;&lt;br&gt;But if anyone has a better idea, now's the time to speak up &amp;lt;G&amp;gt;.
&lt;br&gt;&lt;br&gt;Best
&lt;br&gt;Erick
&lt;br&gt;&lt;br&gt;On Tue, Dec 1, 2009 at 12:13 AM, ravicv &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26591635&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ravichandrab4u@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks Erick But their any way to get phrase search and normal search
&lt;br&gt;&amp;gt; together.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; for Example if I search for &amp;quot;test&amp;quot; it should only give test result but not
&lt;br&gt;&amp;gt; tests..
&lt;br&gt;&amp;gt; And if we search for tests it should give all results matching with
&lt;br&gt;&amp;gt; tests(this should include stemmer results also)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Please clarify me how normally this scenario is implemented?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I am using field title with text type which contains
&lt;br&gt;&amp;gt; SnowballPorterFilterFactory filter.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; And another field title_exact with out SnowballPorterFilterFactory filter.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Both are copied using copy field.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;copyField source=&amp;quot;title&amp;quot; dest=&amp;quot;text&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;copyField source=&amp;quot;title_exact&amp;quot; dest=&amp;quot;text_exact&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt; But as text type is having a SnowballPorterFilterFactory filter it stores
&lt;br&gt;&amp;gt; tests as test.So always if I search for &amp;quot;test&amp;quot; tests also will come in my
&lt;br&gt;&amp;gt; search result.
&lt;br&gt;&amp;gt; Please tell me a way to avoid it.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks
&lt;br&gt;&amp;gt; Ravichandra
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; View this message in context:
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/Phrase-Query-Issue-tp22863529p26586788.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/Phrase-Query-Issue-tp22863529p26586788.html&lt;/a&gt;&lt;br&gt;&amp;gt; Sent from the Solr - User mailing list archive at Nabble.com.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Phrase-Query-Issue-tp22863529p26591635.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26589445</id>
	<title>RE: latency in solr response  is observed  after index is updated</title>
	<published>2009-12-01T02:13:30Z</published>
	<updated>2009-12-01T02:13:30Z</updated>
	<author>
		<name>bharath venkatesh-3</name>
	</author>
	<content type="html">Hi Kalidoss,
&lt;br&gt;&amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp;I am not aware of using solr-config for committing the document . 
&lt;br&gt;but I have mentioned below how we update and &amp;nbsp;commit documents:
&lt;br&gt;&amp;nbsp;
&lt;br&gt;curl &lt;a href=&quot;http://solr_url/update&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://solr_url/update&lt;/a&gt;&amp;nbsp;--data-binary @feeds.xml -H 
&lt;br&gt;'Content-type:text/xml; charset=utf-8'
&lt;br&gt;curl &lt;a href=&quot;http://solr_url/update&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://solr_url/update&lt;/a&gt;&amp;nbsp;--data-binary '&amp;lt;commit/&amp;gt;' -H 
&lt;br&gt;'Content-type:text/xml; charset=utf-8'
&lt;br&gt;&lt;br&gt;where feeds.xml contains the document in xml format
&lt;br&gt;&lt;br&gt;we have master and slave replication for solr server.
&lt;br&gt;&lt;br&gt;updates happens in master , snappuller and snapinstaller is run on 
&lt;br&gt;slaves periodically
&lt;br&gt;queries don't happen at master , only happens at slaves
&lt;br&gt;&lt;br&gt;is there any thing which can be said from above information ?
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Bharath
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-----Original Message-----
&lt;br&gt;From: kalidoss [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26589445&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;kalidoss.muthuramalingam@...&lt;/a&gt;]
&lt;br&gt;Sent: Tue 12/1/2009 2:38 PM
&lt;br&gt;To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26589445&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;solr-user@...&lt;/a&gt;
&lt;br&gt;Subject: Re: latency in solr response &amp;nbsp;is observed &amp;nbsp;after index is updated
&lt;br&gt;&amp;nbsp;
&lt;br&gt;r u using solr-config for committing the document?
&lt;br&gt;&lt;br&gt;bharath venkatesh wrote:
&lt;div class='shrinkable-quote'&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; We are observing latency (some times huge latency upto 10-20 secs) 
&lt;br&gt;&amp;gt; in solr response &amp;nbsp;after index is updated . whats the reason of this 
&lt;br&gt;&amp;gt; latency and how can it be minimized ?
&lt;br&gt;&amp;gt; Note: our index size is pretty large.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; any help would be appreciated as we largely affected by it
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks in advance.
&lt;br&gt;&amp;gt; Bharath
&lt;/div&gt;&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;This message is intended only for the use of the addressee and may contain information that is privileged, confidential 
&lt;br&gt;and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or the 
&lt;br&gt;employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any 
&lt;br&gt;dissemination, distribution or copying of this communication is strictly prohibited. If you have received this e-mail 
&lt;br&gt;in error, please notify us immediately by return e-mail and delete this e-mail and all attachments from your system.
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/latency-in-solr-response--is-observed--after-index-is-updated-tp26588583p26589445.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26589192</id>
	<title>Re: Retrieving large num of docs</title>
	<published>2009-12-01T01:47:56Z</published>
	<updated>2009-12-01T01:47:56Z</updated>
	<author>
		<name>Raghuveer Kancherla</name>
	</author>
	<content type="html">Hi Hoss/Andrew,
&lt;br&gt;I think I solved the problem of retrieving 300 docs per request for now. The
&lt;br&gt;problem was that I was storing 2 moderately large multivalued text fields
&lt;br&gt;though I was not retrieving them during search time. &amp;nbsp;I reindexed all my
&lt;br&gt;data without storing these fields. Now the response time (time for Solr to
&lt;br&gt;return the http response) is very close to the QTime Solr is showing in the
&lt;br&gt;logs.
&lt;br&gt;&lt;br&gt;Thanks for all the help,
&lt;br&gt;Raghu
&lt;br&gt;&lt;br&gt;&lt;br&gt;On Mon, Nov 30, 2009 at 11:37 AM, Raghuveer Kancherla &amp;lt;
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26589192&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;raghuveer.kancherla@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Thanks Hoss,
&lt;br&gt;&amp;gt; In my previous mail, I was measuring the system time difference between
&lt;br&gt;&amp;gt; sending a (http) request and receiving a response. This was being run on a
&lt;br&gt;&amp;gt; (different) client machine
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Like you suggested, I tried to time the response on the server itself as
&lt;br&gt;&amp;gt; follows:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; $ /usr/bin/time -p curl -sS -o solr.out &amp;quot;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://localhost:1212/solr/select/?rows=300&amp;q=%28ResumeAllText%3A%28%28%28%22java+j2ee%22+%28java+j2ee%29%29%29%5E4%29%5E1.0%29&amp;start=0&amp;wt=python&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://localhost:1212/solr/select/?rows=300&amp;q=%28ResumeAllText%3A%28%28%28%22java+j2ee%22+%28java+j2ee%29%29%29%5E4%29%5E1.0%29&amp;start=0&amp;wt=python&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;quot;
&lt;br&gt;&amp;gt; real 3.49
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; user 0.00
&lt;br&gt;&amp;gt; sys 0.00
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The query time in solr log shows me Qtime=600
&lt;br&gt;&amp;gt; size of solr.out is 843 kB.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; As you've mentioned, Solr shouldn't give these kind of numbers for 300
&lt;br&gt;&amp;gt; docs, and we're quite perplexed as to whats going on.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt; Raghu
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Mon, Nov 30, 2009 at 6:00 AM, Chris Hostetter &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26589192&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;hossman_lucene@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt; wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; : I am using Solr1.4 for searching through half a million documents. The
&lt;br&gt;&amp;gt;&amp;gt; : problem is, I want to retrieve nearly 200 documents for each search
&lt;br&gt;&amp;gt;&amp;gt; query.
&lt;br&gt;&amp;gt;&amp;gt; : The query time in Solr logs is showing 0.02 seconds and I am fairly
&lt;br&gt;&amp;gt;&amp;gt; happy
&lt;br&gt;&amp;gt;&amp;gt; : with that. However Solr is taking a long time (4 to 5 secs) to return
&lt;br&gt;&amp;gt;&amp;gt; the
&lt;br&gt;&amp;gt;&amp;gt; : results (I think it is because of the number of docs I am requesting). I
&lt;br&gt;&amp;gt;&amp;gt; : tried returning only the id's (unique key) without any other stored
&lt;br&gt;&amp;gt;&amp;gt; fields,
&lt;br&gt;&amp;gt;&amp;gt; : but it is not helping me improve the response times (time to return the
&lt;br&gt;&amp;gt;&amp;gt; id's
&lt;br&gt;&amp;gt;&amp;gt; : of matching documents).
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; What exactly does your request URL look like, and how exactly are you
&lt;br&gt;&amp;gt;&amp;gt; timing the total response time?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; 200 isn't a very big number for the rows param -- people who want to get
&lt;br&gt;&amp;gt;&amp;gt; 100K documents back in their response at a time may have problems, but 200
&lt;br&gt;&amp;gt;&amp;gt; is not that big.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; so like i said: how exactly are you timing things?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; My guess: it's more likely that network overhead or the performance of
&lt;br&gt;&amp;gt;&amp;gt; your client code (reading the data off the wire) is causing your timing
&lt;br&gt;&amp;gt;&amp;gt; code to seem slow, then it is that Solr is taking 5 seconds to write out
&lt;br&gt;&amp;gt;&amp;gt; those document IDs.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I suspect if you try hitting the same exact URL using curl via localhost,
&lt;br&gt;&amp;gt;&amp;gt; you'll see the total response time be a lot less then 5 seconds.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Here's an example of a query that asks solr to return *every* field from
&lt;br&gt;&amp;gt;&amp;gt; 500 documents, in the XML format. &amp;nbsp;And these are not small documents...
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; $ /usr/bin/time -p curl -sS -o /tmp/solr.out &amp;quot;
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://localhost:5051/solr/select/?q=doctype:product&amp;version=2.2&amp;start=0&amp;rows=500&amp;indent=on&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://localhost:5051/solr/select/?q=doctype:product&amp;version=2.2&amp;start=0&amp;rows=500&amp;indent=on&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; &amp;quot;
&lt;br&gt;&amp;gt;&amp;gt; real 0.07
&lt;br&gt;&amp;gt;&amp;gt; user 0.00
&lt;br&gt;&amp;gt;&amp;gt; sys 0.00
&lt;br&gt;&amp;gt;&amp;gt; [chrish@c18-ssa-so-dfll-qry1 ~]$ du -sh /tmp/solr.out
&lt;br&gt;&amp;gt;&amp;gt; 1.6M &amp;nbsp; &amp;nbsp;/tmp/solr.out
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; ...that's 1.6 MB of 500 Solr documents with all of their fields in
&lt;br&gt;&amp;gt;&amp;gt; verbose XML format (including indenting) fetched in 70ms.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; If it's taking 5 seconds for you to get just the ids of 200 docs, you've
&lt;br&gt;&amp;gt;&amp;gt; got a problem somewhere and i'm 99% certain it's not in Solr.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; what does a similar &amp;quot;time curl&amp;quot; command for your URL look like when you
&lt;br&gt;&amp;gt;&amp;gt; run it on your solr server?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; -Hoss
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Retrieving-large-num-of-docs-tp26532898p26589192.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26588678</id>
	<title>Re: latency in solr response  is observed  after index is updated</title>
	<published>2009-12-01T01:08:29Z</published>
	<updated>2009-12-01T01:08:29Z</updated>
	<author>
		<name>kalidoss</name>
	</author>
	<content type="html">r u using solr-config for committing the document?
&lt;br&gt;&lt;br&gt;bharath venkatesh wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; We are observing latency (some times huge latency upto 10-20 secs) 
&lt;br&gt;&amp;gt; in solr response &amp;nbsp;after index is updated . whats the reason of this 
&lt;br&gt;&amp;gt; latency and how can it be minimized ?
&lt;br&gt;&amp;gt; Note: our index size is pretty large.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; any help would be appreciated as we largely affected by it
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks in advance.
&lt;br&gt;&amp;gt; Bharath
&lt;br&gt;&amp;gt; This message is intended only for the use of the addressee and may 
&lt;br&gt;&amp;gt; contain information that is privileged, confidential and exempt from 
&lt;br&gt;&amp;gt; disclosure under applicable law. If the reader of this message is not 
&lt;br&gt;&amp;gt; the intended recipient, or the employee or agent responsible for 
&lt;br&gt;&amp;gt; delivering the message to the intended recipient, you are hereby 
&lt;br&gt;&amp;gt; notified that any dissemination, distribution or copying of this 
&lt;br&gt;&amp;gt; communication is strictly prohibited. If you have received this e-mail 
&lt;br&gt;&amp;gt; in error, please notify us immediately by return e-mail and delete 
&lt;br&gt;&amp;gt; this e-mail and all attachments from your system.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Get your world in your inbox!
&lt;br&gt;&lt;br&gt;Mail, widgets, documents, spreadsheets, organizer and much more with your Sifymail WIYI id!
&lt;br&gt;Log on to &lt;a href=&quot;http://www.sify.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.sify.com&lt;/a&gt;&lt;br&gt;&lt;br&gt;********** DISCLAIMER **********
&lt;br&gt;Information contained and transmitted by this E-MAIL is proprietary to 
&lt;br&gt;Sify Limited and is intended for use only by the individual or entity to 
&lt;br&gt;which it is addressed, and may contain information that is privileged, 
&lt;br&gt;confidential or exempt from disclosure under applicable law. If this is a 
&lt;br&gt;forwarded message, the content of this E-MAIL may not have been sent with 
&lt;br&gt;the authority of the Company. If you are not the intended recipient, an 
&lt;br&gt;agent of the intended recipient or a &amp;nbsp;person responsible for delivering the 
&lt;br&gt;information to the named recipient, &amp;nbsp;you are notified that any use, 
&lt;br&gt;distribution, transmission, printing, copying or dissemination of this 
&lt;br&gt;information in any way or in any manner is strictly prohibited. If you have 
&lt;br&gt;received this communication in error, please delete this mail &amp; notify us 
&lt;br&gt;immediately at &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26588678&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;admin@...&lt;/a&gt;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/latency-in-solr-response--is-observed--after-index-is-updated-tp26588583p26588678.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26588583</id>
	<title>latency in solr response  is observed  after index is updated</title>
	<published>2009-12-01T01:04:17Z</published>
	<updated>2009-12-01T01:04:17Z</updated>
	<author>
		<name>bharath venkatesh-3</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;We are observing latency (some times huge latency upto 10-20 secs) 
&lt;br&gt;in solr response &amp;nbsp;after index is updated . whats the reason of this 
&lt;br&gt;latency and how can it be minimized ? 
&lt;br&gt;&lt;br&gt;Note: our index size is pretty large.
&lt;br&gt;&lt;br&gt;any help would be appreciated as we largely affected by it
&lt;br&gt;&lt;br&gt;Thanks in advance.
&lt;br&gt;Bharath
&lt;br&gt;This message is intended only for the use of the addressee and may contain information that is privileged, confidential 
&lt;br&gt;and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or the 
&lt;br&gt;employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any 
&lt;br&gt;dissemination, distribution or copying of this communication is strictly prohibited. If you have received this e-mail 
&lt;br&gt;in error, please notify us immediately by return e-mail and delete this e-mail and all attachments from your system.
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/latency-in-solr-response--is-observed--after-index-is-updated-tp26588583p26588583.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26588363</id>
	<title>Re: 'Connection reset' in DataImportHandler Development Console</title>
	<published>2009-12-01T00:41:19Z</published>
	<updated>2009-12-01T00:41:19Z</updated>
	<author>
		<name>Noble Paul നോബിള്‍  नोब्ळ्-2</name>
	</author>
	<content type="html">The debug tool for DIH dires queries in sync mode. it waits fro the
&lt;br&gt;import to complete for the page to show up. If the process takes long
&lt;br&gt;you r likely to see the connection reset message.
&lt;br&gt;&lt;br&gt;For get about debug. what exactly do you want to do?
&lt;br&gt;&lt;br&gt;2009/8/17 Noble Paul നോബിള്‍ &amp;nbsp;नोब्ळ् &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26588363&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;noble.paul@...&lt;/a&gt;&amp;gt;:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; apparently I do not see any command full-import, delta-import being
&lt;br&gt;&amp;gt; fired. Is that true?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Mon, Aug 17, 2009 at 5:55 PM, Andrew Clegg&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26588363&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;andrew.clegg@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Hi folks,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I'm trying to use the Debug Now button in the development console to test
&lt;br&gt;&amp;gt;&amp;gt; the effects of some changes in my data import config (see attached).
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; However, each time I click it, the right-hand frame fails to load -- it just
&lt;br&gt;&amp;gt;&amp;gt; gets replaced with the standard 'connection reset' message from Firefox, as
&lt;br&gt;&amp;gt;&amp;gt; if the server's dropped the HTTP connection.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Everything else seems okay -- I can run queries in Solr Admin without any
&lt;br&gt;&amp;gt;&amp;gt; problems, and all the other buttons in the dev console work -- status,
&lt;br&gt;&amp;gt;&amp;gt; document count, reload config etc.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; There's nothing suspicious in Tomcat's catalina.out either. If I hit Reload
&lt;br&gt;&amp;gt;&amp;gt; Config, then Status, then Debug Now, I get this:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; 17-Aug-2009 13:12:12 org.apache.solr.handler.dataimport.DataImportHandler
&lt;br&gt;&amp;gt;&amp;gt; processConfiguration
&lt;br&gt;&amp;gt;&amp;gt; INFO: Processing configuration from solrconfig.xml: {config=dataconfig.xml}
&lt;br&gt;&amp;gt;&amp;gt; 17-Aug-2009 13:12:12 org.apache.solr.handler.dataimport.DataImporter
&lt;br&gt;&amp;gt;&amp;gt; loadDataConfig
&lt;br&gt;&amp;gt;&amp;gt; INFO: Data Configuration loaded successfully
&lt;br&gt;&amp;gt;&amp;gt; 17-Aug-2009 13:12:12 org.apache.solr.handler.dataimport.DataImporter
&lt;br&gt;&amp;gt;&amp;gt; verifyWithSchema
&lt;br&gt;&amp;gt;&amp;gt; INFO: id is a required field in SolrSchema . But not found in DataConfig
&lt;br&gt;&amp;gt;&amp;gt; 17-Aug-2009 13:12:12 org.apache.solr.handler.dataimport.DataImporter
&lt;br&gt;&amp;gt;&amp;gt; verifyWithSchema
&lt;br&gt;&amp;gt;&amp;gt; INFO: title is a required field in SolrSchema . But not found in DataConfig
&lt;br&gt;&amp;gt;&amp;gt; 17-Aug-2009 13:12:12 org.apache.solr.handler.dataimport.DataImporter
&lt;br&gt;&amp;gt;&amp;gt; verifyWithSchema
&lt;br&gt;&amp;gt;&amp;gt; INFO: doc_type is a required field in SolrSchema . But not found in
&lt;br&gt;&amp;gt;&amp;gt; DataConfig
&lt;br&gt;&amp;gt;&amp;gt; 17-Aug-2009 13:12:12 org.apache.solr.handler.dataimport.DataImporter
&lt;br&gt;&amp;gt;&amp;gt; verifyWithSchema
&lt;br&gt;&amp;gt;&amp;gt; INFO: id is a required field in SolrSchema . But not found in DataConfig
&lt;br&gt;&amp;gt;&amp;gt; 17-Aug-2009 13:12:12 org.apache.solr.handler.dataimport.DataImporter
&lt;br&gt;&amp;gt;&amp;gt; verifyWithSchema
&lt;br&gt;&amp;gt;&amp;gt; INFO: title is a required field in SolrSchema . But not found in DataConfig
&lt;br&gt;&amp;gt;&amp;gt; 17-Aug-2009 13:12:12 org.apache.solr.handler.dataimport.DataImporter
&lt;br&gt;&amp;gt;&amp;gt; verifyWithSchema
&lt;br&gt;&amp;gt;&amp;gt; INFO: doc_type is a required field in SolrSchema . But not found in
&lt;br&gt;&amp;gt;&amp;gt; DataConfig
&lt;br&gt;&amp;gt;&amp;gt; 17-Aug-2009 13:12:12 org.apache.solr.handler.dataimport.DataImporter
&lt;br&gt;&amp;gt;&amp;gt; verifyWithSchema
&lt;br&gt;&amp;gt;&amp;gt; INFO: id is a required field in SolrSchema . But not found in DataConfig
&lt;br&gt;&amp;gt;&amp;gt; 17-Aug-2009 13:12:12 org.apache.solr.handler.dataimport.DataImporter
&lt;br&gt;&amp;gt;&amp;gt; verifyWithSchema
&lt;br&gt;&amp;gt;&amp;gt; INFO: title is a required field in SolrSchema . But not found in DataConfig
&lt;br&gt;&amp;gt;&amp;gt; 17-Aug-2009 13:12:12 org.apache.solr.handler.dataimport.DataImporter
&lt;br&gt;&amp;gt;&amp;gt; verifyWithSchema
&lt;br&gt;&amp;gt;&amp;gt; INFO: doc_type is a required field in SolrSchema . But not found in
&lt;br&gt;&amp;gt;&amp;gt; DataConfig
&lt;br&gt;&amp;gt;&amp;gt; 17-Aug-2009 13:12:12 org.apache.solr.handler.dataimport.DataImporter
&lt;br&gt;&amp;gt;&amp;gt; verifyWithSchema
&lt;br&gt;&amp;gt;&amp;gt; INFO: id is a required field in SolrSchema . But not found in DataConfig
&lt;br&gt;&amp;gt;&amp;gt; 17-Aug-2009 13:12:12 org.apache.solr.handler.dataimport.DataImporter
&lt;br&gt;&amp;gt;&amp;gt; verifyWithSchema
&lt;br&gt;&amp;gt;&amp;gt; INFO: title is a required field in SolrSchema . But not found in DataConfig
&lt;br&gt;&amp;gt;&amp;gt; 17-Aug-2009 13:12:12 org.apache.solr.handler.dataimport.DataImporter
&lt;br&gt;&amp;gt;&amp;gt; verifyWithSchema
&lt;br&gt;&amp;gt;&amp;gt; INFO: doc_type is a required field in SolrSchema . But not found in
&lt;br&gt;&amp;gt;&amp;gt; DataConfig
&lt;br&gt;&amp;gt;&amp;gt; 17-Aug-2009 13:12:12 org.apache.solr.core.SolrCore execute
&lt;br&gt;&amp;gt;&amp;gt; INFO: [] webapp=/solr path=/select
&lt;br&gt;&amp;gt;&amp;gt; params={clean=false&amp;command=reload-config&amp;commit=true&amp;qt=/dataimport}
&lt;br&gt;&amp;gt;&amp;gt; status=0 QTime=5
&lt;br&gt;&amp;gt;&amp;gt; 17-Aug-2009 13:12:21 org.apache.solr.core.SolrCore execute
&lt;br&gt;&amp;gt;&amp;gt; INFO: [] webapp=/solr path=/select
&lt;br&gt;&amp;gt;&amp;gt; params={clean=false&amp;command=status&amp;commit=true&amp;qt=/dataimport} status=0
&lt;br&gt;&amp;gt;&amp;gt; QTime=0
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; (The warnings are because the doc_type field comes out of the JDBC result
&lt;br&gt;&amp;gt;&amp;gt; set automatically by column name -- this isn't a problem.)
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Also, there's no entry in the Tomcat access log for the debug request
&lt;br&gt;&amp;gt;&amp;gt; either, just the first two:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; [17/Aug/2009:13:12:12 +0100] HTTP/1.1 cookie:- request:-  GET /solr/select
&lt;br&gt;&amp;gt;&amp;gt; 200 ?clean=false&amp;commit=true&amp;qt=%2Fdataimport&amp;command=reload-config GET
&lt;br&gt;&amp;gt;&amp;gt; /solr/select?clean=false&amp;commit=t
&lt;br&gt;&amp;gt;&amp;gt; rue&amp;qt=%2Fdataimport&amp;command=reload-config HTTP/1.1
&lt;br&gt;&amp;gt;&amp;gt; [17/Aug/2009:13:12:21 +0100] HTTP/1.1 cookie:- request:-  GET /solr/select
&lt;br&gt;&amp;gt;&amp;gt; 200 ?clean=false&amp;commit=true&amp;qt=%2Fdataimport&amp;command=status GET
&lt;br&gt;&amp;gt;&amp;gt; /solr/select?clean=false&amp;commit=true&amp;qt=
&lt;br&gt;&amp;gt;&amp;gt; %2Fdataimport&amp;command=status HTTP/1.1
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; PS... Nightly build, 30th of July.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Andrew.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://www.nabble.com/file/p25005850/dataconfig.xml&quot; target=&quot;_top&quot;&gt;http://www.nabble.com/file/p25005850/dataconfig.xml&lt;/a&gt;&amp;nbsp;dataconfig.xml
&lt;br&gt;&amp;gt;&amp;gt; --
&lt;br&gt;&amp;gt;&amp;gt; View this message in context: &lt;a href=&quot;http://www.nabble.com/%27Connection-reset%27-in-DataImportHandler-Development-Console-tp25005850p25005850.html&quot; target=&quot;_top&quot;&gt;http://www.nabble.com/%27Connection-reset%27-in-DataImportHandler-Development-Console-tp25005850p25005850.html&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; Sent from the Solr - User mailing list archive at Nabble.com.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; -----------------------------------------------------
&lt;br&gt;&amp;gt; Noble Paul | Principal Engineer| AOL | &lt;a href=&quot;http://aol.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://aol.com&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;-----------------------------------------------------
&lt;br&gt;Noble Paul | Principal Engineer| AOL | &lt;a href=&quot;http://aol.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://aol.com&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/%27Connection-reset%27-in-DataImportHandler-Development-Console-tp25005850p26588363.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26588301</id>
	<title>Re: Thought that masterUrl in slave solrconfig.xml is optional...</title>
	<published>2009-12-01T00:35:26Z</published>
	<updated>2009-12-01T00:35:26Z</updated>
	<author>
		<name>Noble Paul നോബിള്‍  नोब्ळ्-2</name>
	</author>
	<content type="html">remove the slave section completely and startup will go thru fine
&lt;br&gt;&lt;br&gt;On Tue, Dec 1, 2009 at 2:47 AM, William Pierce &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26588301&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;evalsinca@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Folks:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Reading the wiki,  I saw the following statement:
&lt;br&gt;&amp;gt;  &amp;quot;Force a fetchindex on slave from master command : &lt;a href=&quot;http://slave_host:port/solr/replication?command=fetchindex&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://slave_host:port/solr/replication?command=fetchindex&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;  It is possible to pass on extra attribute 'masterUrl' or other attributes like 'compression' (or any other parameter which is specified in the &amp;lt;lst name=&amp;quot;slave&amp;quot;&amp;gt; tag) to do a one time replication from a master. This obviates the need for hardcoding the master in the slave. &amp;quot;
&lt;br&gt;&amp;gt; In my case, I cannot hardcode the masterurl in the config file.  I want a cron job to issue the replication commands for each of the slaves.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; So I issued the following command:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://localhost/postings/replication?command=fetchIndex&amp;masterUrl=http%3a%2f%2flocalhost%2fpostingsmaster&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://localhost/postings/replication?command=fetchIndex&amp;masterUrl=http%3a%2f%2flocalhost%2fpostingsmaster&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I got the following exception:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; HTTP Status 500 - Severe errors in solr configuration. Check your log files for more detailed information on what may be wrong. If you want solr to continue after configuration errors, change: &amp;lt;abortOnConfigurationError&amp;gt;false&amp;lt;/abortOnConfigurationError&amp;gt; in null -------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; org.apache.solr.common.SolrException: 'masterUrl' is required for a slave at org.apache.solr.handler.SnapPuller.&amp;lt;init&amp;gt;(SnapPuller.java:126) at
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ....other lines removed....
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Why is error message asking me to specify the masterUrl in the config file when the wiki states that this is optional?   Or, am I understanding this incorrectly?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; - Bill
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;-----------------------------------------------------
&lt;br&gt;Noble Paul | Principal Engineer| AOL | &lt;a href=&quot;http://aol.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://aol.com&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Thought-that-masterUrl-in-slave-solrconfig.xml-is-optional...-tp26582066p26588301.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26587216</id>
	<title>Re: How to avoid hardcoding masterUrl in slave solrconfig.xml?</title>
	<published>2009-11-30T22:20:20Z</published>
	<updated>2009-11-30T22:20:20Z</updated>
	<author>
		<name>Noble Paul നോബിള്‍  नोब्ळ्-2</name>
	</author>
	<content type="html">remove the &amp;lt;lst name=&amp;quot;slave&amp;quot;&amp;gt; section from your solrconfig. It should be fine
&lt;br&gt;&lt;br&gt;On Tue, Dec 1, 2009 at 6:59 AM, William Pierce &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26587216&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;evalsinca@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi, Joe:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I tried with the &amp;quot;fetchIndex&amp;quot; all lower-cased, and still the same result.
&lt;br&gt;&amp;gt; What do you specify for masterUrl in the solrconfig.xml on the slave?   it
&lt;br&gt;&amp;gt; seems to me that if I remove the element,  I get the exception I wrote
&lt;br&gt;&amp;gt; about.   If I set  it to some dummy url, then I get an invalid url message
&lt;br&gt;&amp;gt; when I run the command=details on the slave replication handler.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; What I am doing does not look out of the ordinary.   I want to control the
&lt;br&gt;&amp;gt; masterurl and the time of replication by myself.  As such I want neither the
&lt;br&gt;&amp;gt; masterUrl nor the polling interval in the config file.  Can you share
&lt;br&gt;&amp;gt; relevant snippets of your config file and the exact url your code is
&lt;br&gt;&amp;gt; generating?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; - Bill
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --------------------------------------------------
&lt;br&gt;&amp;gt; From: &amp;quot;Joe Kessel&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26587216&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;isjustjoe@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; Sent: Monday, November 30, 2009 3:45 PM
&lt;br&gt;&amp;gt; To: &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26587216&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;solr-user@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; Subject: RE: How to avoid hardcoding masterUrl in slave solrconfig.xml?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I do something very similar and it works for me.  I noticed on your URL
&lt;br&gt;&amp;gt;&amp;gt; that you have a mixed case fetchIndex, which the request handler is checking
&lt;br&gt;&amp;gt;&amp;gt; for fetchindex, all lowercase.  If it is not that simple I can try to see
&lt;br&gt;&amp;gt;&amp;gt; the exact url my code is generating.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Hope it helps,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Joe
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26587216&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;evalsinca@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26587216&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;solr-user@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Subject: Re: How to avoid hardcoding masterUrl in slave solrconfig.xml?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Date: Mon, 30 Nov 2009 13:48:38 -0800
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Folks:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Sorry for this repost! It looks like this email went out twice....
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; - Bill
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; --------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; From: &amp;quot;William Pierce&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26587216&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;evalsinca@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Sent: Monday, November 30, 2009 1:47 PM
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; To: &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26587216&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;solr-user@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Subject: How to avoid hardcoding masterUrl in slave solrconfig.xml?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt; Folks:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt; I do not want to hardcode the masterUrl in the solrconfig.xml of my &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt; slave.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt; If the masterUrl tag is missing from the config file, I am getting an
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt; exception in solr saying that the masterUrl is required. So I set it to
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt; some dummy value, comment out the poll interval element, and issue a
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt; replication command manually like so:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://localhost:port/postings/replication?command=fetchIndex&amp;masterUrl=http://localhost:port/postingsmaster/replication&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://localhost:port/postings/replication?command=fetchIndex&amp;masterUrl=http://localhost:port/postingsmaster/replication&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt; Now no internal exception, solr responds with a status &amp;quot;OK&amp;quot; for the &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt; above
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt; request, the tomcat logs show no error but the index is not replicated.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt; When I issue the details command to the slave, I see that it ignored &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt; the
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt; masterUrl on the command line but instead complains that the master url
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt; &amp;gt; in
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt; the config file (which I had set to a dummy value) is not correct.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt; (Just fyi, I have tried sending in the masterUrl to the above command &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt; with
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt; url encoding and also without. in both cases, I got the same result.)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt; Soooo....how exactly do I avoid hardcoding the masterUrl in the config
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt; file? Any pointers/help will be greatly appreciated!
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;gt; - Bill
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; _________________________________________________________________
&lt;br&gt;&amp;gt;&amp;gt; Bing brings you maps, menus, and reviews organized in one place.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://www.bing.com/search?q=restaurants&amp;form=MFESRP&amp;publ=WLHMTAG&amp;crea=TEXT_MFESRP_Local_MapsMenu_Resturants_1x1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.bing.com/search?q=restaurants&amp;form=MFESRP&amp;publ=WLHMTAG&amp;crea=TEXT_MFESRP_Local_MapsMenu_Resturants_1x1&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;-----------------------------------------------------
&lt;br&gt;Noble Paul | Principal Engineer| AOL | &lt;a href=&quot;http://aol.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://aol.com&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-to-avoid-hardcoding-masterUrl-in-slave-solrconfig.xml--tp26582527p26587216.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26587187</id>
	<title>Re: HTML Stripping slower in Solr 1.4?</title>
	<published>2009-11-30T22:17:46Z</published>
	<updated>2009-11-30T22:17:46Z</updated>
	<author>
		<name>Koji Sekiguchi-2</name>
	</author>
	<content type="html">Robin,
&lt;br&gt;&lt;br&gt;Thank you for reporting this. Performance degradation of HTML Stripper
&lt;br&gt;could be in 1.4. I opened a ticket in Lucene:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;https://issues.apache.org/jira/browse/LUCENE-2098&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/LUCENE-2098&lt;/a&gt;&lt;br&gt;&lt;br&gt;Koji
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&lt;a href=&quot;http://www.rondhuit.com/en/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.rondhuit.com/en/&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/HTML-Stripping-slower-in-Solr-1.4--tp26586210p26587187.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26586788</id>
	<title>Re: Phrase Query Issue</title>
	<published>2009-11-30T21:13:44Z</published>
	<updated>2009-11-30T21:13:44Z</updated>
	<author>
		<name>ravicv</name>
	</author>
	<content type="html">Thanks Erick But their any way to get phrase search and normal search together.
&lt;br&gt;&lt;br&gt;for Example if I search for &amp;quot;test&amp;quot; it should only give test result but not tests..
&lt;br&gt;And if we search for tests it should give all results matching with tests(this should include stemmer results also)
&lt;br&gt;&lt;br&gt;Please clarify me how normally this scenario is implemented?
&lt;br&gt;&lt;br&gt;I am using field title with text type which contains SnowballPorterFilterFactory filter.
&lt;br&gt;&lt;br&gt;And another field title_exact with out SnowballPorterFilterFactory filter.
&lt;br&gt;&lt;br&gt;Both are copied using copy field.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;copyField source=&amp;quot;title&amp;quot; dest=&amp;quot;text&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;copyField source=&amp;quot;title_exact&amp;quot; dest=&amp;quot;text_exact&amp;quot;/&amp;gt;
&lt;br&gt;But as text type is having a SnowballPorterFilterFactory filter it stores tests as test.So always if I search for &amp;quot;test&amp;quot; tests also will come in my search result.
&lt;br&gt;Please tell me a way to avoid it.
&lt;br&gt;&lt;br&gt;Thanks
&lt;br&gt;Ravichandra</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Phrase-Query-Issue-tp22863529p26586788.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26586210</id>
	<title>HTML Stripping slower in Solr 1.4?</title>
	<published>2009-11-30T20:18:39Z</published>
	<updated>2009-11-30T20:18:39Z</updated>
	<author>
		<name>Robin Wojciki</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;&lt;br&gt;Our schema in Sol 1.3 looked like:
&lt;br&gt;&lt;br&gt;&amp;lt;tokenizer class=&amp;quot;solr.HTMLStripStandardTokenizerFactory&amp;quot;/&amp;gt;
&lt;br&gt;&amp;lt;filter class=&amp;quot;solr.StandardFilterFactory&amp;quot;/&amp;gt;
&lt;br&gt;&lt;br&gt;It takes 30s to index 1500 docs. When we run the same in Sol 1.4 it take 70s.
&lt;br&gt;&lt;br&gt;I noticed that HTMLStripStandardTokenizerFactory was deprecated. So
&lt;br&gt;changed the schema to:
&lt;br&gt;&amp;lt;charFilter class=&amp;quot;solr.HTMLStripCharFilterFactory&amp;quot;/&amp;gt;
&lt;br&gt;&amp;lt;tokenizer class=&amp;quot;solr.StandardTokenizerFactory&amp;quot;/&amp;gt;
&lt;br&gt;&amp;lt;filter class=&amp;quot;solr.StandardFilterFactory&amp;quot;/&amp;gt;
&lt;br&gt;&lt;br&gt;It still takes 70s.
&lt;br&gt;&lt;br&gt;Instead, if I use the schema:
&lt;br&gt;&amp;lt;tokenizer class=&amp;quot;solr.StandardTokenizerFactory&amp;quot;/&amp;gt;
&lt;br&gt;&amp;lt;filter class=&amp;quot;solr.StandardFilterFactory&amp;quot;/&amp;gt;
&lt;br&gt;&lt;br&gt;It takes 30s in both 1.3 and 1.4.
&lt;br&gt;&lt;br&gt;I am not sure if HTMLStrip has become slower in 1.4 or HTML stripping
&lt;br&gt;impacts perf down stream in 1.4. Before I started writing a unit test
&lt;br&gt;with a TokenizerChain, I wanted to check if I am doing something
&lt;br&gt;fundamentally wrong.
&lt;br&gt;&lt;br&gt;Robin
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/HTML-Stripping-slower-in-Solr-1.4--tp26586210p26586210.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26585983</id>
	<title>Re: *:* Returning no results</title>
	<published>2009-11-30T20:15:29Z</published>
	<updated>2009-11-30T20:15:29Z</updated>
	<author>
		<name>Erik Hatcher-4</name>
	</author>
	<content type="html">Are you sure you're hitting the same core? &amp;nbsp;Did a commit? &amp;nbsp;Are you &amp;nbsp;
&lt;br&gt;possibly using the dismax query parser (where *:* is fairly &amp;nbsp;
&lt;br&gt;meaningless)?
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Erik
&lt;br&gt;&lt;br&gt;On Nov 30, 2009, at 3:54 PM, Giovanni Fernandez-Kincade wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt; I created a brand new core (on Solr 1.4), added a few documents and &amp;nbsp;
&lt;br&gt;&amp;gt; then searched for *:*, but got no results. Strangely enough, if I &amp;nbsp;
&lt;br&gt;&amp;gt; search for a specific document I know is in the index, like say &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;quot;versionId:3&amp;quot;, I get the expected result.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Any ideas on why that might be?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thank,
&lt;br&gt;&amp;gt; Gio.
&lt;/div&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/*%3A*-Returning-no-results-tp26581689p26585983.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26585282</id>
	<title>Re: nested solr queries</title>
	<published>2009-11-30T17:49:03Z</published>
	<updated>2009-11-30T17:49:03Z</updated>
	<author>
		<name>hossman</name>
	</author>
	<content type="html">&lt;br&gt;: thanks for your help so do you think I should execute solr queries twice ?
&lt;br&gt;: or is there any other workarounds
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://people.apache.org/~hossman/#xyproblem&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://people.apache.org/~hossman/#xyproblem&lt;/a&gt;&lt;br&gt;XY Problem
&lt;br&gt;&lt;br&gt;Your question appears to be an &amp;quot;XY Problem&amp;quot; ... that is: you are dealing
&lt;br&gt;with &amp;quot;X&amp;quot;, you are assuming &amp;quot;Y&amp;quot; will help you, and you are asking about &amp;quot;Y&amp;quot;
&lt;br&gt;without giving more details about the &amp;quot;X&amp;quot; so that we can understand the
&lt;br&gt;full issue. &amp;nbsp;Perhaps the best solution doesn't involve &amp;quot;Y&amp;quot; at all?
&lt;br&gt;See Also: &lt;a href=&quot;http://www.perlmonks.org/index.pl?node_id=542341&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.perlmonks.org/index.pl?node_id=542341&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-Hoss
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/nested-solr-queries-tp26571146p26585282.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26585171</id>
	<title>Re: Sorting Facets by First Occurrence</title>
	<published>2009-11-30T17:33:16Z</published>
	<updated>2009-11-30T17:33:16Z</updated>
	<author>
		<name>Cory G Watson</name>
	</author>
	<content type="html">&lt;br&gt;On Nov 30, 2009, at 5:15 PM, Chris Hostetter wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; All of Solr's existing faceting code is based on the DocSet which is an 
&lt;br&gt;&amp;gt; unordered set of all matching documents -- i suspect your existing 
&lt;br&gt;&amp;gt; application only reordered the facets based on their appearance in the 
&lt;br&gt;&amp;gt; first N docs (possibly just the first page, but maybe more) so doing 
&lt;br&gt;&amp;gt; something like that using the DocList would certainly be feasible. &amp;nbsp;if 
&lt;br&gt;&amp;gt; your number of facet constraints is low enough that they are all returned 
&lt;br&gt;&amp;gt; everytime then doing it in the client is probably the easiest -- but if 
&lt;br&gt;&amp;gt; you have to worry about facet.limit preventing something from being 
&lt;br&gt;&amp;gt; returned that might otherwise bubble to the top of your list when you 
&lt;br&gt;&amp;gt; reorder it then you'll need to customise the FacetComponent.
&lt;/div&gt;&lt;br&gt;&lt;br&gt;You are right, I left out a few important bits there. &amp;nbsp;Tried to be brief and succeeding in being vague? :)
&lt;br&gt;&lt;br&gt;Effectively I was ordering the facet based on the N documents in the current &amp;quot;page&amp;quot;. &amp;nbsp;My thought that his was a good feature for a facet now seems incorrect, as my needs are limited to the current page, not the whole set of results.
&lt;br&gt;&lt;br&gt;I'll probably elect to fetching data from the facets based on the page of documents I'm showing. &amp;nbsp;Thanks for the discussion, it helped! :)
&lt;br&gt;&lt;br&gt;Cory G Watson
&lt;br&gt;&lt;a href=&quot;http://www.onemogin.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.onemogin.com&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Sorting-Facets-by-First-Occurrence-tp26582389p26585171.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26585142</id>
	<title>Re: How to avoid hardcoding masterUrl in slave solrconfig.xml?</title>
	<published>2009-11-30T17:29:33Z</published>
	<updated>2009-11-30T17:29:33Z</updated>
	<author>
		<name>William Pierce-3</name>
	</author>
	<content type="html">Hi, Joe:
&lt;br&gt;&lt;br&gt;I tried with the &amp;quot;fetchIndex&amp;quot; all lower-cased, and still the same result. 
&lt;br&gt;What do you specify for masterUrl in the solrconfig.xml on the slave? &amp;nbsp; it 
&lt;br&gt;seems to me that if I remove the element, &amp;nbsp;I get the exception I wrote 
&lt;br&gt;about. &amp;nbsp; If I set &amp;nbsp;it to some dummy url, then I get an invalid url message 
&lt;br&gt;when I run the command=details on the slave replication handler.
&lt;br&gt;&lt;br&gt;What I am doing does not look out of the ordinary. &amp;nbsp; I want to control the 
&lt;br&gt;masterurl and the time of replication by myself. &amp;nbsp;As such I want neither the 
&lt;br&gt;masterUrl nor the polling interval in the config file. &amp;nbsp;Can you share 
&lt;br&gt;relevant snippets of your config file and the exact url your code is 
&lt;br&gt;generating?
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;&lt;br&gt;- Bill
&lt;br&gt;&lt;br&gt;--------------------------------------------------
&lt;br&gt;From: &amp;quot;Joe Kessel&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26585142&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;isjustjoe@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Sent: Monday, November 30, 2009 3:45 PM
&lt;br&gt;To: &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26585142&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;solr-user@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Subject: RE: How to avoid hardcoding masterUrl in slave solrconfig.xml?
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I do something very similar and it works for me. &amp;nbsp;I noticed on your URL 
&lt;br&gt;&amp;gt; that you have a mixed case fetchIndex, which the request handler is 
&lt;br&gt;&amp;gt; checking for fetchindex, all lowercase. &amp;nbsp;If it is not that simple I can 
&lt;br&gt;&amp;gt; try to see the exact url my code is generating.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Hope it helps,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Joe
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26585142&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;evalsinca@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26585142&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;solr-user@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; Subject: Re: How to avoid hardcoding masterUrl in slave solrconfig.xml?
&lt;br&gt;&amp;gt;&amp;gt; Date: Mon, 30 Nov 2009 13:48:38 -0800
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Folks:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Sorry for this repost! It looks like this email went out twice....
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; - Bill
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; --------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt; From: &amp;quot;William Pierce&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26585142&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;evalsinca@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Sent: Monday, November 30, 2009 1:47 PM
&lt;br&gt;&amp;gt;&amp;gt; To: &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26585142&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;solr-user@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Subject: How to avoid hardcoding masterUrl in slave solrconfig.xml?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; Folks:
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; I do not want to hardcode the masterUrl in the solrconfig.xml of my 
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; slave.
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; If the masterUrl tag is missing from the config file, I am getting an
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; exception in solr saying that the masterUrl is required. So I set it to
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; some dummy value, comment out the poll interval element, and issue a
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; replication command manually like so:
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://localhost:port/postings/replication?command=fetchIndex&amp;masterUrl=http://localhost:port/postingsmaster/replication&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://localhost:port/postings/replication?command=fetchIndex&amp;masterUrl=http://localhost:port/postingsmaster/replication&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; Now no internal exception, solr responds with a status &amp;quot;OK&amp;quot; for the 
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; above
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; request, the tomcat logs show no error but the index is not replicated.
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; When I issue the details command to the slave, I see that it ignored 
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; the
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; masterUrl on the command line but instead complains that the master url 
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; in
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; the config file (which I had set to a dummy value) is not correct.
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; (Just fyi, I have tried sending in the masterUrl to the above command 
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; with
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; url encoding and also without. in both cases, I got the same result.)
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; Soooo....how exactly do I avoid hardcoding the masterUrl in the config
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; file? Any pointers/help will be greatly appreciated!
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; - Bill
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; _________________________________________________________________
&lt;br&gt;&amp;gt; Bing brings you maps, menus, and reviews organized in one place.
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.bing.com/search?q=restaurants&amp;form=MFESRP&amp;publ=WLHMTAG&amp;crea=TEXT_MFESRP_Local_MapsMenu_Resturants_1x1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.bing.com/search?q=restaurants&amp;form=MFESRP&amp;publ=WLHMTAG&amp;crea=TEXT_MFESRP_Local_MapsMenu_Resturants_1x1&lt;/a&gt;&amp;nbsp;
&lt;/div&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-to-avoid-hardcoding-masterUrl-in-slave-solrconfig.xml--tp26582527p26585142.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26584296</id>
	<title>RE: How to avoid hardcoding masterUrl in slave solrconfig.xml?</title>
	<published>2009-11-30T15:45:59Z</published>
	<updated>2009-11-30T15:45:59Z</updated>
	<author>
		<name>Joe Kessel</name>
	</author>
	<content type="html">&lt;br&gt;I do something very similar and it works for me. &amp;nbsp;I noticed on your URL that you have a mixed case fetchIndex, which the request handler is checking for fetchindex, all lowercase. &amp;nbsp;If it is not that simple I can try to see the exact url my code is generating.
&lt;br&gt;&lt;br&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;Hope it helps,
&lt;br&gt;&lt;br&gt;Joe
&lt;br&gt;&amp;nbsp;
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; From: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26584296&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;evalsinca@...&lt;/a&gt;
&lt;br&gt;&amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26584296&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;solr-user@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Subject: Re: How to avoid hardcoding masterUrl in slave solrconfig.xml?
&lt;br&gt;&amp;gt; Date: Mon, 30 Nov 2009 13:48:38 -0800
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Folks:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Sorry for this repost! It looks like this email went out twice....
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; - Bill
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; --------------------------------------------------
&lt;br&gt;&amp;gt; From: &amp;quot;William Pierce&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26584296&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;evalsinca@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; Sent: Monday, November 30, 2009 1:47 PM
&lt;br&gt;&amp;gt; To: &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26584296&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;solr-user@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; Subject: How to avoid hardcoding masterUrl in slave solrconfig.xml?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; Folks:
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I do not want to hardcode the masterUrl in the solrconfig.xml of my slave. 
&lt;br&gt;&amp;gt; &amp;gt; If the masterUrl tag is missing from the config file, I am getting an 
&lt;br&gt;&amp;gt; &amp;gt; exception in solr saying that the masterUrl is required. So I set it to 
&lt;br&gt;&amp;gt; &amp;gt; some dummy value, comment out the poll interval element, and issue a 
&lt;br&gt;&amp;gt; &amp;gt; replication command manually like so:
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://localhost:port/postings/replication?command=fetchIndex&amp;masterUrl=http://localhost:port/postingsmaster/replication&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://localhost:port/postings/replication?command=fetchIndex&amp;masterUrl=http://localhost:port/postingsmaster/replication&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Now no internal exception, solr responds with a status &amp;quot;OK&amp;quot; for the above 
&lt;br&gt;&amp;gt; &amp;gt; request, the tomcat logs show no error but the index is not replicated. 
&lt;br&gt;&amp;gt; &amp;gt; When I issue the details command to the slave, I see that it ignored the 
&lt;br&gt;&amp;gt; &amp;gt; masterUrl on the command line but instead complains that the master url in 
&lt;br&gt;&amp;gt; &amp;gt; the config file (which I had set to a dummy value) is not correct.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; (Just fyi, I have tried sending in the masterUrl to the above command with 
&lt;br&gt;&amp;gt; &amp;gt; url encoding and also without. in both cases, I got the same result.)
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Soooo....how exactly do I avoid hardcoding the masterUrl in the config 
&lt;br&gt;&amp;gt; &amp;gt; file? Any pointers/help will be greatly appreciated!
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; - Bill 
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&amp;nbsp;		 	 &amp;nbsp; 		 &amp;nbsp;
&lt;br&gt;_________________________________________________________________
&lt;br&gt;Bing brings you maps, menus, and reviews organized in one place.
&lt;br&gt;&lt;a href=&quot;http://www.bing.com/search?q=restaurants&amp;form=MFESRP&amp;publ=WLHMTAG&amp;crea=TEXT_MFESRP_Local_MapsMenu_Resturants_1x1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.bing.com/search?q=restaurants&amp;form=MFESRP&amp;publ=WLHMTAG&amp;crea=TEXT_MFESRP_Local_MapsMenu_Resturants_1x1&lt;/a&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-to-avoid-hardcoding-masterUrl-in-slave-solrconfig.xml--tp26582527p26584296.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26583878</id>
	<title>Re: Sorting Facets by First Occurrence</title>
	<published>2009-11-30T15:15:42Z</published>
	<updated>2009-11-30T15:15:42Z</updated>
	<author>
		<name>hossman</name>
	</author>
	<content type="html">&lt;br&gt;: I'm working on replacing a custom, internal search implementation with
&lt;br&gt;: Solr. &amp;nbsp;I'm having great success, with one small exception.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ...
&lt;br&gt;: For example, if a search yielded 10 results, 1 - 10, and hit 1 is in
&lt;br&gt;: category 'Toys', hit 2 through 9 are in 'Sports' and the last is in
&lt;br&gt;: 'Household' then the facet would look like:
&lt;br&gt;&lt;br&gt;...and what if you had 100,000 results? &amp;nbsp;did it really look at every doc 
&lt;br&gt;that matched a query to decide the facet ordering, or did it stop at 10?
&lt;br&gt;&lt;br&gt;: So, the question I _really_ have is: how can I implement this feature?
&lt;br&gt;&lt;br&gt;It depends ... how was the previous version implemented?
&lt;br&gt;&lt;br&gt;(you mentioned it was a custom internal solution, so i assume you have 
&lt;br&gt;access to the code and can explain it to us in psuedo code ... that would 
&lt;br&gt;give people the best insight into what exactly it was doing to make a 
&lt;br&gt;Solr based comparison)
&lt;br&gt;&lt;br&gt;: &amp;nbsp;I could examine the results i'm returned and create my own facet
&lt;br&gt;: order from it, but I thought this might be useful for others. &amp;nbsp;I don't
&lt;br&gt;: know my way around Solr's source, so I though dropping a note to the
&lt;br&gt;: list would be faster than code spelunking with no light.
&lt;br&gt;&lt;br&gt;All of Solr's existing faceting code is based on the DocSet which is an 
&lt;br&gt;unordered set of all matching documents -- i suspect your existing 
&lt;br&gt;application only reordered the facets based on their appearance in the 
&lt;br&gt;first N docs (possibly just the first page, but maybe more) so doing 
&lt;br&gt;something like that using the DocList would certainly be feasible. &amp;nbsp;if 
&lt;br&gt;your number of facet constraints is low enough that they are all returned 
&lt;br&gt;everytime then doing it in the client is probably the easiest -- but if 
&lt;br&gt;you have to worry about facet.limit preventing something from being 
&lt;br&gt;returned that might otherwise bubble to the top of your list when you 
&lt;br&gt;reorder it then you'll need to customise the FacetComponent.
&lt;br&gt;&lt;br&gt;&lt;br&gt;-Hoss
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Sorting-Facets-by-First-Occurrence-tp26582389p26583878.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26583725</id>
	<title>RE: schema-based Index-time field boosting</title>
	<published>2009-11-30T15:04:54Z</published>
	<updated>2009-11-30T15:04:54Z</updated>
	<author>
		<name>hossman</name>
	</author>
	<content type="html">&lt;br&gt;: I am talking about field boosting rather than document boosting, ie. I
&lt;br&gt;: would like some fields (say eg. title) to be &amp;quot;louder&amp;quot; than others,
&lt;br&gt;: across ALL documents. &amp;nbsp;I believe you are at least partially talking
&lt;br&gt;: about document boosting, which clearly applies on a per-document basis.
&lt;br&gt;&lt;br&gt;index time boosts are all the same -- it doesn't matter if htey are field 
&lt;br&gt;boosts or document boosts -- a document boost is just a field boost for 
&lt;br&gt;every field in the document.
&lt;br&gt;&lt;br&gt;: If it helps, consider a schema version of the following, from
&lt;br&gt;: org.apache.solr.common.SolrInputDocument:
&lt;br&gt;: 
&lt;br&gt;: &amp;nbsp; /**
&lt;br&gt;: &amp;nbsp; &amp;nbsp;* Adds a field with the given name, value and boost. &amp;nbsp;If a field with
&lt;br&gt;: the name already exists, then it is updated to
&lt;br&gt;: &amp;nbsp; &amp;nbsp;* the new value and boost.
&lt;br&gt;: &amp;nbsp; &amp;nbsp;*
&lt;br&gt;: &amp;nbsp; &amp;nbsp;* @param name Name of the field to add
&lt;br&gt;: &amp;nbsp; &amp;nbsp;* @param value Value of the field
&lt;br&gt;: &amp;nbsp; &amp;nbsp;* @param boost Boost value for the field
&lt;br&gt;: &amp;nbsp; &amp;nbsp;*/
&lt;br&gt;: &amp;nbsp; public void addField(String name, Object value, float boost ) 
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ...
&lt;br&gt;&lt;br&gt;: Where a constant boost value is applied consistently to a given field.
&lt;br&gt;: That is what I was mistakenly hoping to achieve in the schema. &amp;nbsp;I still
&lt;br&gt;: think it would be a good idea BTW. &amp;nbsp;Regards,
&lt;br&gt;&lt;br&gt;But now we're right back to what i was trying to explain before: index 
&lt;br&gt;time boost values like these are only used as a multiplier in the 
&lt;br&gt;fieldNorm. &amp;nbsp;when included as part of the document data, you can specify a 
&lt;br&gt;fieldBoost for fieldX of docA that's greater then the boost for fieldX 
&lt;br&gt;of docB and that will make docA score higher then docB when fieldX 
&lt;br&gt;contains the same number of matches and is hte same length -- but if you 
&lt;br&gt;apply a constant boost of B to fieldX for every doc (which is what a 
&lt;br&gt;feature to hardcode boosts in schema.xml might give you) then the net 
&lt;br&gt;effect would be zero when scoring docA and docB, because the fieldNorm's 
&lt;br&gt;for fieldX in both docs would include the exact same multiplier.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-Hoss
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Index-time-field-boosting-not-working--tp26406369p26583725.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26583644</id>
	<title>Re: schema-based Index-time field boosting</title>
	<published>2009-11-30T14:58:41Z</published>
	<updated>2009-11-30T14:58:41Z</updated>
	<author>
		<name>hossman</name>
	</author>
	<content type="html">&lt;br&gt;: Coming in a bit late but I would like a variant that is not a No-OP.
&lt;br&gt;: Think of something like title:searchstring^10 OR catch_all:searchstring
&lt;br&gt;: Of course I can always add the boosting at query time but it would make
&lt;br&gt;: life easier if I could define a default boost in the schema so that my
&lt;br&gt;: query could just be title:searchstring OR catch_all:searchstring
&lt;br&gt;: but still get the boost for the title field.
&lt;br&gt;&lt;br&gt;That would be a query time boost -- not an index time boost. &amp;nbsp;An index 
&lt;br&gt;time boost is a very specific concept that refers to increaseing the 
&lt;br&gt;fieldNorm of a field in a specific document.
&lt;br&gt;&lt;br&gt;What you are describing would be a query time boost, in which solr knows 
&lt;br&gt;that certain query clauses should be worth more. &amp;nbsp;You can 
&lt;br&gt;already do esentailly this exact same thing using the dismax parser, but i 
&lt;br&gt;suppose it would also be possible to modify the LuceneQParser so that it 
&lt;br&gt;could take in configuration that would tell it to apply different default 
&lt;br&gt;query boosts to different fields.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-Hoss
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Index-time-field-boosting-not-working--tp26406369p26583644.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26583260</id>
	<title>Re: $DeleteDocbyQuery in solr 1.4 is not working</title>
	<published>2009-11-30T14:34:14Z</published>
	<updated>2009-11-30T14:34:14Z</updated>
	<author>
		<name>cpmoser</name>
	</author>
	<content type="html">Ok, I think I figured out what might be happening. &amp;nbsp;It appears that the DataImporter issues the commit command without the expungeDeletes option set to true (default in 1.4 for a commit command is for expungeDeletes to be set to false). &amp;nbsp;You can get around this by issuing the commit command manually:
&lt;br&gt;&lt;br&gt;&lt;i&gt;curl &amp;quot;&lt;a href=&quot;http://localhost:8983/solr/dataimport?command=delta-import&amp;commit=false&amp;optimize=false&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://localhost:8983/solr/dataimport?command=delta-import&amp;commit=false&amp;optimize=false&lt;/a&gt;&amp;quot;&lt;/i&gt;&lt;br&gt;&lt;i&gt;curl &amp;quot;&lt;a href=&quot;http://localhost:8983/solr/update&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://localhost:8983/solr/update&lt;/a&gt;&amp;quot; --data-binary '&amp;lt;commit expungeDeletes=&amp;quot;true&amp;quot; /&amp;gt;' -H &amp;quot;Content-type:text/xml; charset=utf-8&amp;quot;&lt;/i&gt;&lt;br&gt;&lt;br&gt;That fixed the issue for me, although ideally the DataImportHandler should run with the expungeDeletes option set to true, so that this could all happen in one command without having to wait for the DIH to finish before issuing the commit command. &amp;nbsp;
&lt;br&gt;&lt;br&gt;Is there a way to set the expungeDeletes option for the commit command of the DataImportHandler, so that delta imports with deletes can happen automatically?
&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Mark.El wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message&quot;&gt;Thanks I will look into it!
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/%24DeleteDocbyQuery-in-solr-1.4-is-not-working-tp26376265p26583260.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26582553</id>
	<title>Re: How to avoid hardcoding masterUrl in slave solrconfig.xml?</title>
	<published>2009-11-30T13:48:38Z</published>
	<updated>2009-11-30T13:48:38Z</updated>
	<author>
		<name>William Pierce-3</name>
	</author>
	<content type="html">Folks:
&lt;br&gt;&lt;br&gt;Sorry for this repost! &amp;nbsp;It looks like this email went out twice....
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;&lt;br&gt;- Bill
&lt;br&gt;&lt;br&gt;--------------------------------------------------
&lt;br&gt;From: &amp;quot;William Pierce&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26582553&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;evalsinca@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Sent: Monday, November 30, 2009 1:47 PM
&lt;br&gt;To: &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26582553&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;solr-user@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Subject: How to avoid hardcoding masterUrl in slave solrconfig.xml?
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Folks:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I do not want to hardcode the masterUrl in the solrconfig.xml of my slave. 
&lt;br&gt;&amp;gt; If the masterUrl tag is missing from the config file, I am getting an 
&lt;br&gt;&amp;gt; exception in solr saying that the masterUrl is required. &amp;nbsp;So I set it to 
&lt;br&gt;&amp;gt; some dummy value, &amp;nbsp;comment out the poll interval element, &amp;nbsp;and issue a 
&lt;br&gt;&amp;gt; replication command manually like so:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://localhost:port/postings/replication?command=fetchIndex&amp;masterUrl=http://localhost:port/postingsmaster/replication&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://localhost:port/postings/replication?command=fetchIndex&amp;masterUrl=http://localhost:port/postingsmaster/replication&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Now no internal exception, &amp;nbsp;solr responds with a status &amp;quot;OK&amp;quot; for the above 
&lt;br&gt;&amp;gt; request, &amp;nbsp;the tomcat logs show no error but the index is not replicated. 
&lt;br&gt;&amp;gt; When I issue the details command to the slave, &amp;nbsp;I see that it ignored the 
&lt;br&gt;&amp;gt; masterUrl on the command line but instead complains that the master url in 
&lt;br&gt;&amp;gt; the config file (which I had set to a dummy value) is not correct.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; (Just fyi, I have tried sending in the masterUrl to the above command with 
&lt;br&gt;&amp;gt; url encoding and also without. &amp;nbsp;in both cases, I got the same result.)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Soooo....how exactly do I avoid hardcoding the masterUrl in the config 
&lt;br&gt;&amp;gt; file? &amp;nbsp;Any pointers/help will be greatly appreciated!
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; - Bill 
&lt;/div&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-to-avoid-hardcoding-masterUrl-in-slave-solrconfig.xml--tp26582527p26582553.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26582527</id>
	<title>How to avoid hardcoding masterUrl in slave solrconfig.xml?</title>
	<published>2009-11-30T13:47:10Z</published>
	<updated>2009-11-30T13:47:10Z</updated>
	<author>
		<name>William Pierce-3</name>
	</author>
	<content type="html">Folks:
&lt;br&gt;&lt;br&gt;I do not want to hardcode the masterUrl in the solrconfig.xml of my slave. &amp;nbsp;If the masterUrl tag is missing from the config file, I am getting an exception in solr saying that the masterUrl is required. &amp;nbsp;So I set it to some dummy value, &amp;nbsp;comment out the poll interval element, &amp;nbsp;and issue a replication command manually like so:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://localhost:port/postings/replication?command=fetchIndex&amp;masterUrl=http://localhost:port/postingsmaster/replication&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://localhost:port/postings/replication?command=fetchIndex&amp;masterUrl=http://localhost:port/postingsmaster/replication&lt;/a&gt;&lt;br&gt;&lt;br&gt;Now no internal exception, &amp;nbsp;solr responds with a status &amp;quot;OK&amp;quot; for the above request, &amp;nbsp;the tomcat logs show no error but the index is not replicated. &amp;nbsp;When I issue the details command to the slave, &amp;nbsp;I see that it ignored the masterUrl on the command line but instead complains that the master url in the config file (which I had set to a dummy value) is not correct.
&lt;br&gt;&lt;br&gt;(Just fyi, I have tried sending in the masterUrl to the above command with url encoding and also without. &amp;nbsp;in both cases, I got the same result.)
&lt;br&gt;&lt;br&gt;Soooo....how exactly do I avoid hardcoding the masterUrl in the config file? &amp;nbsp;Any pointers/help will be greatly appreciated!
&lt;br&gt;&lt;br&gt;- Bill</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-to-avoid-hardcoding-masterUrl-in-slave-solrconfig.xml--tp26582527p26582527.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26582389</id>
	<title>Sorting Facets by First Occurrence</title>
	<published>2009-11-30T13:37:54Z</published>
	<updated>2009-11-30T13:37:54Z</updated>
	<author>
		<name>Cory G Watson</name>
	</author>
	<content type="html">I'm working on replacing a custom, internal search implementation with
&lt;br&gt;Solr. &amp;nbsp;I'm having great success, with one small exception.
&lt;br&gt;&lt;br&gt;When implementing our version of faceting, one of our facets had a
&lt;br&gt;peculiar sort order. &amp;nbsp;It was dictated by the order in which the field
&lt;br&gt;occurred in the results. &amp;nbsp;The first time a value occurred it was added
&lt;br&gt;to the list and regardless of the number of times it occurred, it
&lt;br&gt;always stayed at the top.
&lt;br&gt;&lt;br&gt;For example, if a search yielded 10 results, 1 - 10, and hit 1 is in
&lt;br&gt;category 'Toys', hit 2 through 9 are in 'Sports' and the last is in
&lt;br&gt;'Household' then the facet would look like:
&lt;br&gt;&lt;br&gt;facet.fields -&amp;gt; category -&amp;gt; [ Toys: 1, Sports: 8 Household: 1 ]
&lt;br&gt;&lt;br&gt;The facet.sort only gives me the option to sort highest count first or
&lt;br&gt;alphabetically.
&lt;br&gt;&lt;br&gt;So, the question I _really_ have is: how can I implement this feature?
&lt;br&gt;&amp;nbsp;I could examine the results i'm returned and create my own facet
&lt;br&gt;order from it, but I thought this might be useful for others. &amp;nbsp;I don't
&lt;br&gt;know my way around Solr's source, so I though dropping a note to the
&lt;br&gt;list would be faster than code spelunking with no light.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Cory 'G' Watson
&lt;br&gt;&lt;a href=&quot;http://www.onemogin.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.onemogin.com&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Sorting-Facets-by-First-Occurrence-tp26582389p26582389.html" />
</entry>

</feed>
