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
9
votes
3 answers

Solr 4.4: StopFilterFactory and enablePositionIncrements

While attempting to upgrade from Solr 4.3.0 to Solr 4.4.0 I ran into this exception: java.lang.IllegalArgumentException: enablePositionIncrements=false is not supported anymore as of Lucene 4.4 as it can create broken token streams which led me to…
condit
  • 10,852
  • 2
  • 41
  • 60
8
votes
1 answer

SOLR: solrQuery.addDateRangeFacet(): Can't add gap %2B1DAY to value for field:

I am trying to query data (using solr) and get Counts for a Day granularity. I am having a problem with the below piece of code: solrQuery.addDateRangeFacet("startTimeISO", date1.toDate(), date2.toDate(), "%2B1DAY"); …
Roger
  • 2,823
  • 3
  • 25
  • 32
7
votes
1 answer

Solr with normalized document structure

I have a Solr document like this, where all the fields are mapped as a single document. 7 PersonName Address Line 1, Address Line 2, City
Krunal
  • 2,967
  • 8
  • 45
  • 101
7
votes
1 answer

SolrCloud vs Standalone Solr

I am trying to upgrade standard 4.x Solr install to Solr cloud 5.x.I did some performance testing between two and found massive differences. On the same server, at different times, I've ran the below: Solr cloud 5.2.1 & 5.3, 2 shards, 2 replicas, 3…
Javadroider
  • 2,280
  • 1
  • 22
  • 45
7
votes
0 answers

Solr cloud performance degradation with billions of documents

I am trying to use SolrCloud to index a very large number of simple documents and have run into some performance and scalability limitations and was wondering what can be done about it. Hardware wise, I have a 32-node Hadoop cluster that I use to…
pashgol pashgolian
  • 193
  • 1
  • 2
  • 10
7
votes
2 answers

Use function query for boosting score in Solr

I working on a Solr 4 for optimizing my solr results rank based on popularity rank stored in Index. Now when someone searches, apart from relevancy rank, I want to influence relevancy rank using popularity rank. The simplest formula could be: new…
Krutal Modi
  • 477
  • 9
  • 25
7
votes
1 answer

Solr single index vs Solr multi core

I need some assitance on deciding creating a single index in a single Solr instance vs creating multiple cores in a single Solr instance, each core servicing an index. My understanding is, a single index in solr is usually implemented to index one…
S.O.L.I.D
  • 73
  • 3
7
votes
1 answer

How to search with date using apache solr

i want to search data from solr like below this is my two tables: So how can i do this date search using solr.... Edit Iam using SolrPhpClient for this. This is fields from my schema.xml:
Kichu
  • 3,284
  • 15
  • 69
  • 135
7
votes
1 answer

What is precisionStep in very simple terms?

I tried understanding precisionStep at several places but cannot fully understand its concept. So, please explain what it is about, in very simple words.
Rajat Gupta
  • 25,853
  • 63
  • 179
  • 294
7
votes
1 answer

Not able to post to solr server using python and requests

This is the code I am trying to implement:- import requests import tornado.ioloop import tornado.web import tornado.autoreload import json class MainHandler(tornado.web.RequestHandler): def get(self): payload = [{"id" :…
Divyanshu Das
  • 3,698
  • 4
  • 23
  • 27
7
votes
4 answers

How can I do indexing .html files in SOLR

The files I want to do indexing is stored on the server(I don't need to crawl). /path/to/files/ the sample HTML file is
6
votes
0 answers

Dynamic Field with SplitBy in db-config.xml not working Properly in Solr

I'm Working with Solr 7.4.0 and using DIH Method For Indexing the Data. Query in data-config.xml.
rakesh girase
  • 140
  • 1
  • 8
6
votes
3 answers

How to parse "2015-01-01T00:00:00Z" in Django Template?

In my Django html template, I get my SOLR facet_date result using haystack in the format "2015-01-01T00:00:00Z". How can I parse it in format "01/01/2015" in my template? My template is {{ facets.dates.created.start }} What "|date:" option should…
MC X
  • 337
  • 4
  • 16
6
votes
1 answer

How do I get sum of a field in solr 4.8

This is my response data: "response": { "numFound": 2, "start": 0, "docs": [ { "total_amount": 10, "id": "2" }, { "total_amount": 10, "id": "1" } ] } I want to get sum of total_amount. I tried…
Mukesh Jeengar
  • 762
  • 9
  • 20
6
votes
3 answers

Solr search dash in part number

I'm having some difficulties with either how to construct the Solr query, or how to setup the schema to get searches in our web store to work better. First some configuration (Solr 4.2.1)
Chris
  • 1,118
  • 8
  • 24
1
2
3
59 60