Questions tagged [pysolr]

A lightweight Python library for connecting to an Apache SOLR instance.

98 questions
3
votes
3 answers

How to make atomic updates to solr using pysolr?

I can't find a decent documentation on how to make updates to solr using pysolr.
shishir
  • 33
  • 1
  • 4
2
votes
0 answers

How to integrate the pysolr with tastypie?

I have created an application, in which i need to take the data from solr instead of database using tastypie, I want to use pysolr for interfacing solar, but i don't know how to integrate the pysolr with the tastypie. Anybody can help me??
Anoop
  • 1,415
  • 11
  • 20
2
votes
1 answer

How to add solr core in windows?

Downloaded (Apache solr 8.8.1) [https://archive.apache.org/dist/lucene/solr/8.1.1/] In path \solr-8.8.1\bin Opened command prompt, and executed following command solr start command prompt screen after starting solr core Accessed…
2
votes
1 answer

Pysolr add throws (HTTP 500): [Reason: Task queue processing has stalled

I am using Pysolr to add data to solr. I add 100 documents at once.But i am getting the below error. Solr responded with an error (HTTP 500): [Reason: Task queue processing has stalled for 20121 ms with 0 remaining elements to process.] is solr has…
siva sandeep
  • 557
  • 1
  • 5
  • 17
2
votes
0 answers

add replica or move replica on new node using Pysolr

I want to add replicas to new instances using PySolr/or via api calls. Scenario: For updating AMIs of EC2 instances on which Solr is running with 0 downtime, I have planned to add new instances(with new AMI) add replica on new instances and then…
Tannu Priya
  • 313
  • 2
  • 15
2
votes
1 answer

Path of ACM cert while connecting to Solr servers which run off https

I am trying to connect to solr servers which runs on AWS EC2 instances with custom authentication using: https://github.com/django-haystack/pysolr/tree/5c3a68447734e77be9e9648b184f8d600fd661c5 solr =…
Tannu Priya
  • 313
  • 2
  • 15
2
votes
0 answers

Is there a way to read every entry in a Solr database one at a time?

I am trying to update the entries in a Solr database using the pysolr add() and commit() methods. I have a massive database and I need to figure out a way to change every entry one at a time. I know I can just query the whole database and save it as…
2
votes
1 answer

Djando-haystack indexes lists instead of raw data with Solr

I am facing a strange issue with django-haystack + Solr: each field receives a list instead of the actual raw value. After indexing, here is an extract of my Solr index (pasted from Solr admin): { "id":"forum.category.4", …
user650108
  • 1,009
  • 1
  • 9
  • 18
2
votes
2 answers

How to search for an exact match in solr using pysolr function "solr.search"

I am using pysolr 3.1.0 to interface queries with the solr server. I am able to get the list of the search term entered. But I am not able to find an exact match. I am using the below command results = solr.search(packagename, rows=5000) Any…
2
votes
2 answers

Pysolr: I continually get json.decoder error when attempting a query

import pysolr solr = pysolr.Solr('http://replaced_url.abc:8983/solr/#/tran_timings_shard1_replica2/query', timeout=10) results = solr.search('SubmitterId:clientname') When pulling flat files I can go to the solr web interface…
GeorgeLPerkins
  • 1,126
  • 10
  • 24
2
votes
1 answer

PySolr connection error 404

I am using solrv5.0 and pysolr but I get the following traceback when I run a python script: File "site-packages/pysolr.py", line 322, in _send_request raise SolrError(error_message) pysolr.SolrError: [Reason: Error 404 Not Found For the script…
mathieu
  • 53
  • 7
2
votes
1 answer

Using solr/pysolr with flask sqlalchemy

I am trying to setup solr to use with postgres db which I use via flask sqlalchemy orm. I found the library pysolr for the purpose but it is not clear how to setup hooks within the sqlalchemy models to update solr index. Are there any…
vrtx54234
  • 2,196
  • 3
  • 30
  • 53
2
votes
1 answer

how add facet to pysolr query

I am new to solr,am using pysolr, I have a very basic question. How can I add a facet to the pysolr query? my solr query is: ip:8983/solr....q=...&facet=on&facet.field=xyz its working in browser as I wish. I want to know how can I implement it in…
Jisson
  • 3,566
  • 8
  • 38
  • 71
1
vote
2 answers

Solr text search not working with long queries

I'm not an expert in Solr and I'm trying it to check it's capabilities. I'm having this odd behaviour where I'm getting good results if my text search query is composed of max 3 words, and zero results if the query is bigger. What I did: Created a…
Miguel
  • 2,738
  • 3
  • 35
  • 51
1
vote
1 answer

Connecting to Solr using pysolr gives Errno 111: Connection refused

I have a Flask app that should connect to Solr using pysolr: import flask as f import pysolr app = f.Flask(__name__) solr = pysolr.Solr('http://localhost:8983/solr/') @app.route("/ping") def ping(): return solr.ping() But running it gives me…
theo
  • 149
  • 8