Subscribe via RSS Feed

Apache Solr

Installation and running Apache Nutch and Apache Solr for crawling and indexing Web Content

May 14, 2013 1 Comment
Installation and running Apache Nutch and Apache Solr for crawling and indexing Web Content

In our work, we needed to use open source web crawler for unstructured data gathering. Here we have used A> Apache Nutch for web crawling and B> Apache Solr for unstructured web data indexing Steps, that we have used to set up the complete environment are – 1> Downloaded Apache Solr (3.X) 2> Downloaded Apache […]

Continue Reading »

Apache Solr Installation and Confiuguration

February 15, 2013 1 Comment
Apache Solr Installation and Confiuguration

Apache Solr is a serach engine build on top of Apache Lucene as a product and it has a full functional web server based search engine in it. We can use this as Search Engine for our requirement in Applications. Apache Solr is a open-source search server which can be hosted in Web. Solr give […]

Continue Reading »

Apache Solr Server integration with Solr4j – Adding Documents with Multivalued Field

February 1, 2013 0 Comments
Apache Solr Server integration with Solr4j – Adding Documents with Multivalued Field

When we want to integrate Apache Solr Server within Java Application, we need to use Solr4j Api. For Adding the Solr Documents programmatically, We will code step by step – Adding the Solr Server in Code – public static String url = “http://localhost:8983/solr”; … CommonsHttpSolrServer server = new CommonsHttpSolrServer(url); … Adding Single Document to Solr […]

Continue Reading »

Searching in Apache Solr with Solr4j

January 29, 2013 0 Comments
Searching in Apache Solr with Solr4j

We will describe a function for searching in Apache Solr – public static Map searchIndexSolr(String searchString) throws Exception { //Instantiate the Apache Solr Server SolrServer solr = new CommonsHttpSolrServer(“http://localhost:8983/solr”); ModifiableSolrParams params = new ModifiableSolrParams(); //Setting the Search Parameter params.set(“q”, searchString); //Response from Solr Server QueryResponse response = solr.query(params); //Convert response to Solr Documents SolrDocumentList docs […]

Continue Reading »