Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

Apache Zookeeper installation in Ubuntu for Standalone mode

Hi there, This blog is to help you for Apache Zookeeper installation on your local Ubuntu machine. Apache Zookeeper is used to develop and maintain an open-source server which provides highly reliable distributed coordination.  ...

Setting limit for the no. of words per record in solr while fetching

Fetching records in solr: Once you have finished with indexing in solr, now you can perform search on your records with the help of queries. Go to the url: http://localhost:8983/solr/#/collection/query  There is box with q,&...

Deleting documents in solr collection

Deleting documents: Suppose, you have collection with the name of demo and you have indexed your file in the server in this collection but you want to delete all the documents or some of them, then it is possible by two ways: Deletion by So...

Indexing in Solr Server

Indexing: Solr gives you a quick response and results because of indexing. What does this mean? It means that it searches index instead of the text to retrieve the results for you. In book , you search for the index in the index page of the...

Solr update using solrTemplate for incremental value

In previous blog Solr Atomic update with incremental popularity, we have updated the solr incremental field using SolrDocument.    Now we will update it through solrTemplate. Here is the sample code: PartialUpdate update =...

Schema configuration in solr

Schema Configuration:   For performing indexing you have to create indexes first in the schema.xml file. This is the file which you have to configure to perform any further operations. It the contains the fields which need...

Creating Collections in Solr

Solr: Apache Solr is a search platform which is developed in Java and can be used for various purposes such as: Using it as a search engine, Can keep your data and use it for querying various things, etc.         &n...

Fetching String of specified length in solr

For fetching a string for a specific value and length, here are 2 ways to do that. First using @Query and another using solr Criteria. In the below code it first searches for the string match and then suing filters we have defined the length o...

Adding multipli core in spring with custom solr repository

Repository take solrtemplate to execute solr operations. Since we have multiple cores so we need to create multiple template and multiple repositories for each core. Following example explains it with 2 solr core Repository and custom imp...

Solr Atomic update with incremental popularity

In solr we can create a field which can update as the related doc is searched by user. For that we need to add a field in schema.xml as: <field name="popularity" type="long" indexed="true" stored="true"/> In the below code we hav...

Error loading class 'org.apache.solr.handler.dataimport.DataImportHandler'

After starting solr if you get the following error, that means you need to make some changes in solrconfig.xml(of the core in which error occurred).   Open the xml and correct the path for solr-dataimporthandler-.*\.jar as <l...

Java heap size on Solr

I was working on a huge data, around 10gb, which I needed to import on solr. So I split the data in 1gb files, then I imported the data in solr using the post method. I ended up getting error: SEVERE: java.lang.OutOfMemoryError: Java heap s...
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: