Questions tagged [solrj]

Solrj is a java client to access solr. It offers a java interface to add, update, and query the solr index. SolrJ hides a lot of the details of connecting to Solr and allows your application to interact with Solr with simple high-level methods.

Solrj is also the name of the Java client used to access the Solr server. It offers a Java interface to add, update, and query the Solr index. This way you get everything in a neat little package, and can avoid parsing and working with XML directly.The SolrJ API is included with Solr, so you do not have to download or install anything else. However, in order to build and run applications that use SolrJ, you have to add some libraries to the classpath.

Solr is a standalone enterprise search server with a REST-like API. You put documents in it (called "indexing") via XML, JSON or binary over HTTP. You query it via HTTP GET and receive XML, JSON, or binary results.

Solr is the popular, blazing fast open source enterprise search platform from the Apache Lucene project. Its major features include powerful full-text search, hit highlighting, faceted search, dynamic clustering, database integration, rich document (e.g., Word, PDF) handling, and geospatial search. Solr is highly scalable, providing distributed search and index replication, and it powers the search and navigation features of many of the world's largest internet sites.

Solr is written in Java and runs as a standalone full-text search server within a servlet container such as Tomcat. Solr uses the Lucene Java search library at its core for full-text indexing and search, and has REST-like HTTP/XML and JSON APIs that make it easy to use from virtually any programming language. Solr's powerful external configuration allows it to be tailored to almost any type of application without Java coding, and it has an extensive plugin architecture when more advanced customization is required.

Related Tags:

1614 questions
0
votes
0 answers

Encoding periods in URLs - XSLT

I have been working with a SolrJ-based Java client that builds/sends queries to an external Solr instance and processes their responses back to a web application. I have an XSLT named response.xslt where all necessary mappings between the local Solr…
panza
  • 1,341
  • 7
  • 38
  • 68
0
votes
0 answers

Solr 4.6 Suggester does not correct spelling

I am beginner in Solr. I am using Solr 4.6 and Spring 3.x Following is my Suggester Config in solrconfig.xml suggest
Ankur Raiyani
  • 1,509
  • 5
  • 21
  • 49
0
votes
2 answers

Spring Solr Spell Checker Component to match closet word

I am new to Solr. I am using spring 3.x and Solr 4.6 Below is my Schema.xml
Ankur Raiyani
  • 1,509
  • 5
  • 21
  • 49
0
votes
1 answer

Solr Search and QueryParser

I have a mangeto installation with apache-solr (in linux environment) When I am searching with a keyword, it shows unrelated products. Later И figure out that solr is adding a query text and search with that also. Here is the example: Below is a…
0
votes
1 answer

How do we set compression on ConcurrentUpdateSolrServer?

I am planning to use ConcurrentUpdateSolrServer to index documents in batches. I did not find any API to set GZIP compression on client-server communication. Can someone please help? Thanks in advance.
sidgate
  • 14,650
  • 11
  • 68
  • 119
0
votes
2 answers

Adding a huge number of files into Solr

Iam trying to index documents to solrj. iam using Solr4.5 and i have huge files to be indexed . what are the ways to index each files in order to avoid performance bottleneck.
user3161879
  • 103
  • 1
  • 17
0
votes
1 answer

Solrj getBeans() not returning any results

Problem happening while fetching the beans from solrResponse object. Though results are getting returned from database and coming in response also. When,I try to run resp.getBeans(UserObj.class); It returns zero result When I'm running the query…
Pankaj
  • 592
  • 7
  • 19
0
votes
0 answers

Solrj with HTTPS Security

My Solr Server is SSL protected. Hence when I hit a query from Solrj I get following error javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated or unauthorized access. So, I have used this link -…
joe
  • 77
  • 2
  • 9
0
votes
2 answers

program termination in solrj

i am trying to index documents with solrj, this is my code, import org.apache.solr.client.solrj.SolrServerException; import org.apache.solr.client.solrj.impl.*; import org.apache.solr.common.SolrInputDocument; import java.io.IOException; public…
user2737359
  • 61
  • 1
  • 9
0
votes
1 answer

Solr - Indexing data after transforming database data

I have around 30 million unique IDs stored in a database. In addition, I have some logic defined on my local machine which uses these unique IDs to generate a description for these IDs. Using Solr, I want to index the description and store the IDs…
user1771840
  • 35
  • 1
  • 7
0
votes
0 answers

Unable to create indexes using solrj4.0 and solr4.0

I added SOLR to my existing webapp. When I query the SOLR data from the browser it is returning zero records (this is expected since there is nothing there). But when I try to add documents using HttpSolrServer no indexes are created and no…
SBB
  • 17
  • 1
  • 8
0
votes
1 answer

Compatibility :Liferay 6.1.2 ce ga3 and solr 4.6

Can any one tell me liferay 6.1.2 ce ga3 on tomcat 7 and solr 4.6 on tomcat 7 are compatible? Used the solr web portlet avaible from liferay market. I am working on this from last 3 days and i am still getting version issues,executing query…
mahesh
  • 909
  • 2
  • 18
  • 37
0
votes
1 answer

How to ditch single match results in solr query?

I'm a newbie to solr. Here is my problem: When I search 天天爱消除,my tokenizer will split it to: 天天 & 爱 & 消除. I use disMax mode, and the query goes like…
Lynn
  • 665
  • 8
  • 25
0
votes
1 answer

Crawl Anywhere+Solr+ Tomcat: not able to access the crawler administration

Question Update: Thank you Okke Klein for your update. I am trying to implement crawl anywhere for crawling the doc file folder. I followed the instruction specified in http://www.crawl-anywhere.com/installation-v300/ Installed tomcat and Apache web…
mahesh
  • 909
  • 2
  • 18
  • 37
0
votes
2 answers

Find shortest indexing time in solr

Description (for reference): I want to index an entire drive of files : ~2TB I'm getting the list of files (Using commons io library). Once I have the list of files, I go through each file and extract readable data from that using Apache Tika Once…
Rahul Shardha
  • 399
  • 7
  • 16