Featured
-
How Regression Testing Detects Integral Errors In Business Processes
Humans are forever changing and evolving and so to
by kristina.rigina -
Get Display Banner Advertising Opportunity on FindNerd Platform
“Do you have a product or service that nee
by manoj.rawat -
Android O Released with Top 7 New Features for App Developers
Android was founded by Andy Rubin, Rich Miner, Nic
by sudhanshu.tripathi -
Top 5 Features That Make Laravel the Best PHP Framework for Development
Laravel is a free open source Web Framework of PHP
by abhishek.tiwari.458 -
Objective C or Swift - Which Technology to Learn for iOS Development?
Swift programming language is completely based on
by siddharth.sindhi
Tags
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...
Solr schema unique key id
Solr schema.xml have a default unique key which is "id". This field has "string" type hence can not be used for sorting.
We can not change its type as it is required as "string" because if you have enabled the QueryElevationComponent in solrconf...
Solr integration in CakePHP with solarium client
Hi,
Before using Solr in CakePHP, we need to decide which Solr client we are going to use. After doing lots of search I finalized Solarium which is up to date and easy to use.
For Installing Solr, I used following link:
http://www.shayande...
Delete all documents form solr
Hello all,
If you want to Delete all documents from solr, follow any one of the step given below.
There are 2 ways to do this.
1. http://localhost:8983/solr/update?stream.body=<delete><query>*:*</query></delete>&a...
Fetching data from Solr using Solarium
We seldom need to fetch result from solr based on limit and order by clause similar to sql queries , the same thing can be achieved using the below given code packet with solarium :
// create a client instance
$client = new Solarium\Client($...
Why use NoSQL over Relational Database - Chapter 1
What is NoSQL?
NoSQL is not a relational database it has been developed keeping in mind few of the drawbacks of relational database. It was developed for the purpose of data stored about users, objects and the frequency in which the data is ac...