How to install and configure Solr 6 on Ubuntu 16.04

By: www.howtoforge.com What is Apache Solr? Apache Solr is an open source enterprise-class search platform written in Java which enables you to create custom search engines that index databases, files, and websites. It has back end support for Apache Lucene. It can e.g. be used to search in multiple websites and can show recommendations for the searched content.Continue reading “How to install and configure Solr 6 on Ubuntu 16.04”

Defining text field types in schema.xml

By: Karthik Shiraly Overview Solr’s world view consists of documents, where each document consists of searchable fields. The rules for searching each field are defined using field type definitions. A field type definition describes the analyzers, tokenizers and filters which control searching behaviour for all fields of that type.   When a document is added/updated, its fieldsContinue reading “Defining text field types in schema.xml”

SQL Server in Solr using Data Import Handler

By: maxivak MS SQL Server connector Download Microsoft JDBC Driver 4.0 for SQL Server from: http://www.microsoft.com/en-us/download/details.aspx?displaylang=en&id=11774 copy file ‘sqljdbc4.jar’ to ‘contrib/dataimporthandler/lib’ solrconfig.xml copy solrconfig.xml from an existing collection. Find my version of solrconfig.xml below in this gist. edit solrconfig.xml by adding: <lib dir=”../../contrib/dataimporthandler/lib” regex=”.*\.jar” /> <lib dir=”../../dist/” regex=”solr-dataimporthandler-.*\.jar” /> Make sure that ‘dist’ folder contains twoContinue reading “SQL Server in Solr using Data Import Handler”

How To Install Solr 5.2.1 on Ubuntu 14.04

By: Koen Vlaswinkel Written in collaboration with Solr Introduction Solr is a search engine platform based on Apache Lucene. It is written in Java and uses the Lucene library to implement indexing. It can be accessed using a variety of REST APIs, including XML and JSON. This is the feature list from their website: Advanced Full-TextContinue reading “How To Install Solr 5.2.1 on Ubuntu 14.04”

Facet dynamic fields with apache solr

By: Nicholas Piasecki I was in a similar situation when working on an e-commerce platform. Each item had static fields (Price,Name, Category) that easily mapped to SOLR’s schema.xml, but each item could also have a dynamic amount of variations. For example, a t-shirt in the store could have Color (Black, White, Red, etc.) and Size(Small, Medium, etc.) attributes, whereas a candle in the sameContinue reading “Facet dynamic fields with apache solr”

Mapping Object Attribute in SolrNet

By: mausch Solr fields defined in your schema.xml must be mapped to properties in a .NET class. There are currently three built-in ways to map fields: Attributes (default) With this method you decorate the properties you want to map with the SolrField and SolrUniqueKey attributes. The attribute parameter indicates the corresponding Solr field name. Example: public class Product { [SolrUniqueKey(“id”)]Continue reading “Mapping Object Attribute in SolrNet”

A First Exploration Of SolrCloud

Post by: NGData SolrCloud has recently been in the news and was merged into Solr trunk, so it was high time to have a fresh look at it.The SolrCloud wiki page gives various examples but left a few things unclear for me. The examples only show Solr instances which host one core/shard, and it doesn’t go deep on the relationContinue reading “A First Exploration Of SolrCloud”

Install Apache Solr and Tomcat under Windows

Installing and getting Solr up and running is straight forward, as long as you follow these simple steps. I ran into problems myself trying to get Solr starting up under Tomcat, even after reading several posts explaining how to, which is why I wrote this post, explaining all the necessary steps. Feel free to makeContinue reading “Install Apache Solr and Tomcat under Windows”

Using Solr for Search with .NET(C#)

By Kaushikhalvadiya, 19 Oct 2012 Introduction Solr is an advanced search coming from Apache’s Lucene project. Thanks to SolrNet, a .NET library for Solr, it is quite convenient to use Solr for search in ASP.NET. Install Apache Tomcat and Solr First of all, make sure you get the latest version of Apache Tomcat and Solr. (I installed Tomcat 7 andContinue reading “Using Solr for Search with .NET(C#)”