A lightweight Python library for connecting to an Apache SOLR instance.
Questions tagged [pysolr]
98 questions
1
vote
0 answers
Pysolr - Indexing on multiple fields
So, reading about an issue on the official documentation, I figured that we can have multivalued field as :
solr.add([
{
"id": "doc_1",
"title": "A test document",
"link": ["baidu.com", "google.com"]
}
Now, I would…

Dreams
- 5,854
- 9
- 48
- 71
1
vote
1 answer
How do I make PySolr drop a connection?
I'm working on time series charts for 300+ clients.
It is beneficial to us to pull each client separately as the combined data is huge and in some cases clients data is resampled or manipulated in a slightly different fashion.
My problem is that the…

GeorgeLPerkins
- 1,126
- 10
- 24
1
vote
1 answer
Django Haystack. And, or in search queryset
Using: Haystack and Sorl.
I need to make a search queryset to search products by filter.
Firstly, I need to filter only products based on my site (Django site framework). So I do:
sqs = sqs.filter(site=site.pk)
It returns such search…

Q-bart
- 1,503
- 4
- 22
- 41
1
vote
1 answer
Index 400 billion documents in solr 6.3
I have to index about 400 billion documents to solr 6.3. I am using pysolr to parse my csv data before indexing. How I can speedup my indexing. In order to index a document to solr, it used add method that has following syntax bydefault
add(self,…

Hafiz Muhammad Shafiq
- 8,168
- 12
- 63
- 121
1
vote
1 answer
Highlight every match with Solr 6, Python 3 and pysolr
I have this Solr index that contains a large numer of quite long text files, indexed with the text_sv schema. I want to print out every single snippet for each indexed document. However, I only retrieve a few ones, even though I have tried to…

chrisk
- 487
- 1
- 4
- 10
1
vote
1 answer
Locate schema.xml in Solr
I have installed django-haystack and pysolr. I don't get any errors so I think I've installed it correctly. I have called build_solr_schema and I now have a xml output. I am going to insert this xml output in schema.xml but I can't locate it.
I'm…

Jamgreen
- 10,329
- 29
- 113
- 224
1
vote
0 answers
Unable to add a row to Solr
Im trying to add a row to the Solr Index but it does not get added.
I get a response but not sure what to infer from the response.
What information the response provides here? How do I get the exception?
>>> c =…

user1050619
- 19,822
- 85
- 237
- 413
1
vote
1 answer
display highlighting with pysolr
I have a solr doc that looks like this:
...
Four (possibly five) female…
user2697528
1
vote
0 answers
How to convert Solr bf based query to bq based syntax?
Current working query:
qf = field1^30 field2^30 field3^10
bf = sum(num1,num2) // num1 & num2 are integer fields in each document
The bf additive boost gets applied to all fields, I would want to exclude field3 from this,
how can this qf & bf syntax…

DhruvPathak
- 42,059
- 16
- 116
- 175
1
vote
1 answer
PySolr rss dataimport
I am using PySolr to run my search. I want to index an rss feed and was wondering if this is possible using PySolr and if so how do you do it.
I have found instructions on how to do this in Solr at…

John
- 21,047
- 43
- 114
- 155
1
vote
1 answer
Haystack UnicodeDecodeError
I'm using haystack and solr on Django. I get UnicodeDecodeError and I think the reason is the unicode data in the database are either converted to str or decoded to utf-8 which makes a later UnicodeDecodeError when sending via httplib or printing to…

pjsofts
- 170
- 4
- 18
1
vote
1 answer
Django Haystack Solr manage.py rebuild_index TypeError: cannot serialize 1.0 (type float)
I try not to ask for help and figure it out on my own but this is extremely tough and I cannot figure out how to fix it. I am using Python 2.7 and Django 1.4. I am using Tomcat 7.0 and Solr as my backend for Haystack v2 beta. I have Pysolr v 3…

Tommy DANGerous
- 162
- 7
1
vote
1 answer
Writing Django Test for Django Haystack which uses Solr as backend
I am using Django 1.4, Django-Haystack 2.0 and Solr (pysolr 2.0.15). I have to write test cases in Django for Haystack. I have written indexes for the models and defined some functions like index_queryset. So, now I am in a fix on how to write test…

Sandip Agarwal
- 1,890
- 5
- 28
- 42
1
vote
3 answers
delete documents from solr index - index is not touched
I'm trying to understand why my Solr index is not even touched when I delete my whole index!
So far I've tried a query directly to solr:
curl 'http://localhost:8080/solr/update?stream.body=*:* &commit=true'
I've also…

marius_5
- 501
- 5
- 12
0
votes
0 answers
solr string field getting no results
I have indexed some data using the string field for name and the entries look like so on my index:
{
"custom_id":"234323244323242",
"full_id":"ju7328732",
"weblink":"https://planet.org/323232",
"name":"idexlab",
…

JohnJ
- 6,736
- 13
- 49
- 82