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

Exception connecting to Remote Solr Instance (407 error)

I have written the code mentioned below. HttpSolrServer solrServer = new HttpSolrServer("http://10.40.4.171/solr/prime-core"); List userList=null; SolrQuery q = new SolrQuery(); q.setQuery("*:*"); q.setStart(0); …
Shiv Kumar Ganesh
  • 3,799
  • 10
  • 46
  • 85
0
votes
2 answers

Negative Boost SolrJ bq

I am writing parameters into a bq query via a solrj implementation application. Some of my fields I want to negative boost (i.e. (id: -abc123)^3) as shown here but whenever I search I get logging errors: "org.apache.solr.search.SyntaxError: Cannot…
0
votes
1 answer

solrj error: array out of bounds

hi im trying to run this code and i can seem to figure out what is wrong..sorry im new to solrj import org.apache.solr.common.SolrDocument; import java.util.Map; import org.apache.solr.common.SolrDocumentList; import…
y.reyes
  • 117
  • 1
  • 2
  • 8
0
votes
2 answers

solrj connection in java

hi im working on several sample programs for solrj and im having trouble determining if i connected it correcttly or not..this is my code import org.apache.solr.client.solrj.SolrServer; import…
y.reyes
  • 117
  • 1
  • 2
  • 8
0
votes
1 answer

Queries equality in Solr / Lucene

The problem: Trying to recognize that 2 different queries are actually the same. For example: field1:[1 TO 3] OR field1:5 is actually the same query as: field1:5 OR field1:1 OR field1:3 OR field1:2 The idea: Is there any way to normalize a query…
Jean Logeart
  • 52,687
  • 11
  • 83
  • 118
0
votes
1 answer

SolrJ - I cannot update a values of concrete fields of all Solr docs

I have written really hardcoded solution for my problem but it should be ok. I need to edit some values of concrete fields for all docs in my index. I have 55500 docs in my index. I am trying to edit fields for every document and commit by 500 docs.…
Jan Bouchner
  • 875
  • 1
  • 14
  • 38
0
votes
1 answer

Keeping track of top 'N' queries in Solr

Is there any way we can keep track of the top 'N' queries in solr? If not, can someone give me any pointers on this? Thanks
dehsams123
  • 251
  • 2
  • 7
  • 18
0
votes
1 answer

Cannot make any query to Solr

I am trying to setup Solandra (Solr + Cassandra), and to use it using SolrJ library. I managed to setup everything and add some documents using SolrJ, but when I tried to make a query it failed. I tried to execute query through url but it failed…
Revolution88
  • 688
  • 5
  • 17
0
votes
1 answer

Is there any API to read SOLR config parameters?

I want to read one the parameters (maxBooleanClauses) specified in the solrconfig.xml at the client side. I tried to check if there is any API to do that, but didn't find any. Can someone please help?
sidgate
  • 14,650
  • 11
  • 68
  • 119
0
votes
1 answer

Solr read timed out in client environment

we've got following error when we are trying to index(add) single document to our Knowledge Base project. It works fine on our test environment but with any attempt to add index in client environment it throws Read timeout error. 2013-07-03…
user2536106
0
votes
1 answer

Solrj full-import not working

I configured solr server on my Glassfish and everything works well. The problem is when I try to make reindex call using Solrj in my Java application. I'm using delta import via full import but it works well outside Solrj so I suppose there isn't…
Miroslav
  • 444
  • 1
  • 7
  • 21
0
votes
1 answer

Strange Behavior using Solr

After 2 weeks of investigation, I still have the same problem using solr. My Document Collection : 3588 documents Materials : My Computer : Intel(R) Core(TM)2 Duo CPU 3GHz, RAM : 4Go , Operating System 64 bits : Windows 7 Professional. Virtual…
Corentin
  • 325
  • 5
  • 21
0
votes
1 answer

searching english and japanese with solr

We have a customer that needs support for both english and japanese, a document can be any of the two and we have no indication about the language for a document. ,so I know I can construct a schema with both english and japanese fields and index…
Shalom938
  • 909
  • 2
  • 10
  • 24
0
votes
3 answers

java code to search in solr and store it hashmap?

My java code searches value using solr.But it gives the output in xml or jason format.I want My output as a single value so that i can store it in haspmap.Can anyone show me an example?Thanks in adavance.
user2522497
  • 137
  • 2
  • 15
0
votes
2 answers

How to check that a document is really indexed?

Does someone know how to check if a document is well indexed after an update with Solr ? I've tried to read the response after calling the add() method of SolrServer as below but it doesn't seem to work : SolrInputDocument doc = new…
Corentin
  • 325
  • 5
  • 21
1 2 3
99
100