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
1 answer

How to add a new field to the document in a custom Solr Filter

I am writing a custom filter in Solr to post a token to Apache Stanbol for enhancement and index the response to a different field in the same document. In my test code below I have got the Stanbol response and have added it as a new document to…
Dileepa Jayakody
  • 535
  • 1
  • 6
  • 19
0
votes
1 answer

solrj: Search for words with whitepaces

I want to search for eg:"project launch". I am replacing whitepace with "/ ". This works properly when I query directly from solr. But it doesnt work when called from solrj. Please help!
joe
  • 77
  • 2
  • 9
0
votes
1 answer

SolrJ: SolrQuery.setFields method for dynamic field

I have a SOLR schema with 50+ fields and 5 of them are dynamic fields. One of the dynamic fields is "skuForSize_*" and I need to retrieve this dynamic field along with other static fields. I am using setFields() method of SolrQuery class. It works…
sachinpkale
  • 989
  • 3
  • 14
  • 35
0
votes
1 answer

SolrJ Embedded Server Spring Config No longer working

I have this spring config that I used in my tests:
biliboc
  • 737
  • 1
  • 10
  • 25
0
votes
1 answer

Does additional Solr search handler has any impact on performance?

I am having three custom defined search handlers for Solr 4. It works fine, however I want to know whether it has any impact on RAM & CPU utilization and overall performance when considering an index size of 10 gb with replication setup. I do not…
Dharmik Bhandari
  • 1,702
  • 5
  • 29
  • 60
0
votes
1 answer

Restrict SOLR Search to First N Numbers

Duplicate question for SOLR-Limiting Seach results Is there any way where we can Override /customize SOLR search to return the fixed N number of results?. Any pointer on how to achieve this?. Thanks
vipin k.
  • 2,633
  • 5
  • 22
  • 27
0
votes
1 answer

Why do dynamic fields not act like normal fields (specifically when querying and displaying in Hue) in solr?

In both Hue and Solr dynamic fields cause issues. In Hue, data that is stored as a dynamic field refuses to appear in the default Solr search, which displays all available data from the imported collection. It also fails to search for this data…
S.Huston
  • 254
  • 6
  • 18
0
votes
1 answer

Solr returns same result after adding document with SolrJ

I am trying to get the results from a Solr query, doing a simple /select?q=id:xx The problem is that its not returning anything when i use solr directly, but when i use SolrJ, like: SolrQuery query = new…
cri_sys
  • 472
  • 1
  • 5
  • 17
0
votes
0 answers

Issue while reading solr indexed data

I have indexed pojos in solr successfully but while reading from solr my output is wrong. Maybe the way I am printing is not correct. Can anyone tell me how to solve this issue? My code is as follows: List foundDocuments =…
user2852305
  • 173
  • 3
  • 14
0
votes
2 answers

Indexing a Solr Document using SolrCrudRepository and SolrTemplate

I'm using SolrCrudRepository for all CRUD Operations. It should save and commit upon calling SolrCrudRepository's save() method but that is not what it's doing. I need to use SolrTemplate's commit() method to completely save (e.g save & commit)…
Jamie White
  • 1,560
  • 3
  • 22
  • 48
0
votes
2 answers

Solr clusterstate.json corrupted. Manual restore possible?

I am stuck with having null value for the range in clusterstate.json (attached below) "shard5":{ "range":null, "state":"active", "replicas":{"core_node1":{ "state":"active", …
TheGeekBETA
  • 33
  • 1
  • 7
0
votes
1 answer

problems with facet.sort parameter with solr

I'm trying to order facets from a single query with multiple facet queries. But facet.order and facet.mincount are not working. the query…
ramon_salla
  • 1,587
  • 1
  • 17
  • 35
0
votes
1 answer

Apache Solr indexing with RDBMS-like references

Can anyone let me know how to index a particular field in solr as foreign key? I will be indexing from a MySQL database. Indexing a field as a primary key was done by just specifying that field as a unique key in Schema.xml, but I want to index a…
user2852305
  • 173
  • 3
  • 14
0
votes
1 answer

List all document keys in a Solr index for the purpose of database synchronisation

I need to synchronize a Solr index with a database table. At any given time, the Solr index may need to have documents added or removed. The nature of the database prevents the Data Import Handler's Delta Import functionality from being able to…
Kevin
  • 4,070
  • 4
  • 45
  • 67
0
votes
1 answer

Solr doesnot accepts unparsed query

I have added some documents in my solr index using requestHandler and now I am trying to query them from the web UI, I am getting the correct result when my query parameter is in the fomat [id]:[search-item] but i want to search it without parsing…
shubham
  • 547
  • 2
  • 6
  • 20