Questions tagged [solr4]

Solr4 is the first release of Solr to use Java 1.6 and to include the SolrCloud functionality in it.

Solr4 is the first release of to use Java 1.6 and to include the SolrCloud functionality in it.

For more version specific information see Major Changes from Solr 3 to Solr 4

887 questions
6
votes
2 answers

Files locked after indexing

I have the following workflow in my (web)application: download a pdf file from an archive index the file delete the file My problem is that after indexing the file, it remains locked and the delete-part throws an exception. Here is my code-snippet…
Francesco
  • 2,350
  • 11
  • 36
  • 59
6
votes
5 answers

SOLR - Grouping results with group.limit return wrong numFound

When I do a search with grouping result and perform group limit, I get that numFound is the same as I when I don’t use the limit. It looks like SOLR first performs search and calculates numFound and then limit the results. I can't use pagination and…
tasmaniski
  • 4,767
  • 3
  • 33
  • 65
6
votes
1 answer

Solr 4 - missing required field: uuid

I'm having issues generating a UUID using the dataImportHandler in Solr4. Im trying to import from an existing MySQL database. My schema.xml contains:
Kikimac
  • 179
  • 1
  • 3
  • 10
6
votes
1 answer

SOLR 4.2 - solr.LatLonType type vs solr.SpatialRecursivePrefixTreeFieldType

I am currently using SOLR 4.2 to index geospatial data (latitude and longitude data). I have configured my geospatial field as below.
Learner
  • 2,303
  • 9
  • 46
  • 81
6
votes
4 answers

Handling large number of ids in Solr

I need to perform an online search in Solr i.e user need to find list of user which are online with particular criteria. How I am handling this: we store the ids of user in a table and I send all online user id in Solr request like &fq=-id:(id1 id2…
chicharito
  • 1,047
  • 3
  • 12
  • 41
6
votes
2 answers

Faceting using SolrJ and Solr4

I've gone through the related questions on this site but haven't found a relevant solution. When querying my Solr4 index using an HTTP request of the form &facet=true&facet.field=country The response contains all the different countries along with…
Girish Rao
  • 2,609
  • 1
  • 20
  • 24
5
votes
1 answer

Solr: Query runtime faceting calculations on date fields and current date

Given the following schema fields: Is it…
antao
  • 767
  • 1
  • 9
  • 24
5
votes
1 answer

What determines whether InstanceDir has a full or relative path?

With Solr 4.x, http://localhost:8983/solr/admin/cores returns an XML description of loaded cores, which indicates the file path location of the instanceDir. ... collection1
Dan Solovay
  • 3,134
  • 3
  • 26
  • 55
5
votes
3 answers

SolrCloud with SSL and Basic Authentication

Is it possible to configure SolrCloud with SSL and Basic Authentication? I have configured 3 nodes of Solr in SolrCloud with SSL using this: https://cwiki.apache.org/confluence/display/solr/Enabling+SSL and I have added authentication and…
Piotr Tempes
  • 1,091
  • 1
  • 12
  • 26
5
votes
0 answers

Writing / Updating external field file for Solr via Solr API

Is there a way to write external file (containing external file field) for Solr via some API? I tried to find into Solr docs but unable to find anything that help!! Here is more details as requested. I am working on a project where I have few…
Krunal
  • 2,967
  • 8
  • 45
  • 101
5
votes
0 answers

SolrException: maxNumThreadStates must be >= 1 but was: 0

SolrException: maxNumThreadStates must be >= 1 but was: 0 I get following response while trying to create core. Can anyone help on how to deal with maxNumThreadStates?
Anupam
  • 869
  • 7
  • 13
5
votes
1 answer

How to update the data in solr

Trying to updating the solr document with below passed data [{"id":"6","status":{"set":"3"}}, {"id":"10","status":{"set":"3"}}] Throwing this error message : "msg": "Expected: OBJECT_START but got ARRAY_START at [16]", Please suggest a best way…
GautamD31
  • 28,552
  • 10
  • 64
  • 85
5
votes
2 answers

How to get sum of a column by grouping number of days in solr

My solr data as follows: { { "total_amount": 100, "created_at": "2015-07-08T18:30:00Z" }, { "total_amount": 200, "created_at": "2015-07-08T18:30:00Z" }, { "total_amount": 300, …
Mukesh Jeengar
  • 762
  • 9
  • 20
5
votes
1 answer

Liferay 6.2-ce-ga2 clustering issue

Liferay 6.2-ce-ga2 I'm trying to cluster two nodes, I'm using tomcat liferay bundle for both the nodes. I used the following blog post as a reference and many others…
johndoe
  • 4,387
  • 2
  • 25
  • 40
5
votes
1 answer

SolrJ and Auto Commit

I am adding documents to a Solr 4.3 core using SolrJ API , I noticed that I have the autocommit set to 15 seconds in the stock solrconfig that I am using as below. ${solr.autoCommit.maxTime:15000}
user1965449
  • 2,849
  • 6
  • 34
  • 51
1 2
3
59 60