Monthly Archives: October 2013

Success integrating AJAX Solr with Solr 4.5

In regards to my post on Stackoverflow, my resolution to this problem was to update search.js and check the window.location object:


//Old code - from reuters.js example
Manager.store.addByValue('q', '*:*');    

//Custom query by end-user for my search.js file
var userQuery = window.location.search.replace( "?query=", "" );
Manager.store.addByValue('q', userQuery);

Success with indexing Nutch 1.7 to Solr 4.5

In regards to my post on Stackoverflow, I pointed my crawl and index to the location of my collection. In this case:


$ bin/nutch crawl urls -solr http://localhost:8983/solr/rockies -depth 1 -topN 5
$ bin/nutch solrindex http://localhost:8983/solr/rockies crawl/crawldb -linkdb crawl/linkdb crawl/segments/*

Additionally, I updated the -depth to 1 (specifies how deep to go after the link is defined. In this case 1 link from main page) and -topN to 5 (how many documents will be retrieved from each level).

Frustrations integrating AJAX Solr with Solr 4.5

I’m setting up Solr Search for my company’s domain and have stumbled onto roadblock after roadblock. Now that I’m at another obstacle my Google skills are again depleted. This project is almost three weeks in. Restorting to the Stackoverflow Gods again!

Here is the link in detail, AJAX Solr returning the default wildcard *:* and not what I query

Leverage browser cache with .htaccess

A quick win for web performance. Modify your root directory’s .htaccess file to leverage browser cache. I’ve applied this solution several times and you receive instant results when testing on Google PageSpeed. This example illustrates this solution in seconds – in this case 2592000 (30 days).


<ifModule mod_expires.c>
	ExpiresActive On
	ExpiresDefault "access plus 2592000 seconds"
	ExpiresByType image/x-icon "access plus 2592000 seconds"
	ExpiresByType image/jpeg "access plus 2592000 seconds"
	ExpiresByType image/png "access plus 2592000 seconds"
	ExpiresByType image/gif "access plus 2592000 seconds"
	ExpiresByType application/x-shockwave-flash "access plus 2592000 seconds"
	ExpiresByType text/css "access plus 2592000 seconds"
	ExpiresByType text/javascript "access plus 2592000 seconds"
	ExpiresByType application/javascript "access plus 2592000 seconds"
	ExpiresByType application/x-javascript "access plus 2592000 seconds"
	ExpiresByType text/html "access plus 2592000 seconds"
	ExpiresByType application/xhtml+xml "access plus 2592000 seconds"
</ifModule>

Thanks to, Samuel Santos

Frustrations with indexing Nutch 1.7 to Solr 4.5

I’m setting up Solr Search for my company’s domain and have stumbled onto roadblock after roadblock. Now that I’m at another obstacle my Google skills are pretty much depleted. This project is almost two weeks in with an aggressive timeline. I’ve had to resort to the Stackoverflow Gods for the first time…hopefully it works.

Here’s the link in detail, Exception in thread “main” java.io.IOException: Job failed! on Nutch 1.7