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

Searching Solr with solrcrudrepository (spring data)

I'm querying solr through solrcrudrepository. I have defined a method inside the repository named: findByUsernameContainsOrNameContains(String username, String name). The method should compare the search term with usernames and names and if…
Jamie White
  • 1,560
  • 3
  • 22
  • 48
0
votes
1 answer

Multiple facet.field fields in Solrj SolrQuery.add(SolrParams params) method overwrite each other

When I use SolrQuery's add(SolrParams params) method to add two "facet.fields" the last one overwrites the first, because the SolrQuery.add() method internally delegates to a put() method of a LinkedHashMap and a LinkedHashMap has unique keys. How…
Julius
  • 2,784
  • 6
  • 32
  • 54
0
votes
1 answer

How to duplicate a fields value to a new field in solr

I currently have documents in Solr with the following tag FirstName:Some name LastName:Some name I would like to add to all the documents another tag Full Name that will concat FirstName + " " + Last Name Is there some way to do this (I do not want…
Shimon Benattar
  • 173
  • 1
  • 3
  • 9
0
votes
1 answer

How to write parameterized queries in solr?

I'm new to SOLR and wonder if there is such a concept as query with parameters, like we have in sql select * from my_table where my_field = ? Is it possible to use similar concept in SOLR, like String query = "my_field:?"; Otherwise how query…
0
votes
1 answer

Offer facets with zero count for certain category with min count set to one using Solr

I have integrated Solr 4 for e-commerce application. And offers a facet filters like flipkart on category pages. Filters works fine, however, the facets has min count set to 1, so facets with zero count are not returned by Solr. Now, I want to…
Krunal
  • 2,967
  • 8
  • 45
  • 101
0
votes
2 answers

Adding filter queries (FS) to a soler query using solrj

I am trying to query solr using solrj and I can't seem to find the way to and a fq argument to my code here is the http request I am trying to…
Shimon Benattar
  • 173
  • 1
  • 3
  • 9
0
votes
1 answer

How to periodically remove data from Apache Solr?

I am using Apache Solr 4.3.1 as a repository for storing and indexing the data . Now, One of the field is related to the data of posting of data. I want to update the repository by deleting those entries which are older than 30 days and keeping only…
abhijeet
  • 849
  • 2
  • 19
  • 54
0
votes
1 answer

Want to deploy Solr 4.0.0 on JBoss 6.0.1

I am new for Solr installation on JBoss. Can anyone help me to deploy Solr 4.0.0 on JBoss 6.0.1? Thanks in advance!!
Nishith Shah
  • 81
  • 1
  • 2
  • 8
0
votes
1 answer

Using permissions determined by document creator in solr

I have an application where document creators determine what access permission (s) to give. The permissions are of the form: EVERYONE => 1 MY_FRIENDS => 2 ME_ONLY => 3 Example: User 1 creates doc1 and sets permission to EVERYONE User 2 created…
Mugoma J. Okomba
  • 3,185
  • 1
  • 26
  • 37
0
votes
1 answer

solrj very strange error with query result

hello i have got strange error while using solr query result. now i am add simple txt file with one word 'anna', restart solr server and next try search that document. But i haven't got any result ? but if i add another document with content 'anna'…
Łukasz Woźniczka
  • 1,625
  • 3
  • 28
  • 51
0
votes
1 answer

solr: QueryResponse customization

I inserted many tables into solr. Now im searching for words across all fields[Globally]. Also im searching for words within sentence, ex: PROJECT_DESC:My project has some big phrases. Now field name is PROJECT_DESC & its value is My project has…
Nandish
  • 125
  • 2
  • 11
0
votes
1 answer

Is there any library for solrj to create query in easy way

I am looking for some userful tool to create query, something like querydsl (http://www.querydsl.com/) as alternative to criteria query for jpa. Query dsl have got module for lucene api, but not for solr. Is there any library or tools , which allow…
Łukasz Woźniczka
  • 1,625
  • 3
  • 28
  • 51
0
votes
1 answer

solr filter how i can create filter with and

I am using http solr server and solrj both version 4.3.1. Now i have got problem with operator AND in my filter query so for example this is my query log : path=/select…
Łukasz Woźniczka
  • 1,625
  • 3
  • 28
  • 51
0
votes
2 answers

solr 4.4 multiple datasource connection

in my db-data-config.xml i have configured two datasource, each with his parameter name, for example:
carminePat
  • 159
  • 2
  • 5
  • 13
0
votes
2 answers

How to approach Solr schema for the first time

I am trying to understand what is the best way to design my Solr Schema. and if there is a possibility to do it in a less complex way using solrJ. I am currently working with solr's example server so i can understand how solr works. if i understood…
Roy
  • 221
  • 3
  • 8
1 2 3
99
100