Questions tagged [pysolr]

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

98 questions
0
votes
2 answers

PySolr seaching with multiple values against same field , 'OR' condition in solr

My PySolr codes is below filter_queries = [] facet_fields = [] for key, value in request.GET._iterlists(): if(key != 'Rows' and key != 'Sort' and key != 'Facet' and key != 'FacetFields' ): …
Dimag Kharab
  • 4,439
  • 1
  • 24
  • 45
0
votes
1 answer

Moving documents from SOLR to elasticsearch

I'm working on moving all documents in SOLR to elasticsearch using Python code with Pysolr. With pysolr i'm able to access only 499 documents, it there a way to access the entire set of documents.
pjesudhas
  • 399
  • 4
  • 13
0
votes
2 answers

Authenticating connection in PySolr

This is the first time I am using Python and Solr. I have my Solr instance set up within tomcat on GCE. I am trying to connect to it from my Python code using PySolr. However, I am not sure how to send authentication parameters via PySolr. This is…
Hari_1123
  • 1
  • 1
  • 1
0
votes
1 answer

Solr fle layout with dynamic fields

Im a newbie to SOLR and trying to understand dynamic fields, Assume I have the following schema, If document-1, contains id = 1, author = "Tom" , title = "Python", text = "Book", first_name_string = "Tom"and last_name_string = "Dan" and If…
user1050619
  • 19,822
  • 85
  • 237
  • 413
0
votes
2 answers

django / haystack / solr simple config - partial field matching issue

I have a simple config of haystack/solr on my django app: from the models.py of this app: class device(models.Model): ... hostname = models.CharField(max_length=45, help_text="The hostname for this device") ... from the search_sites.py…
jduncan
  • 677
  • 2
  • 12
  • 22
0
votes
1 answer

how to use facet in pysolr

I have successful built a python search app with pysolr. So far I have used two fields: id and title. now i want to push two different versions of titles; the original and the title after removing the stopwords. any ideas? the following code…
user706838
  • 5,132
  • 14
  • 54
  • 78
0
votes
1 answer

Solr: Best way to query for documents added this current week?

Alright guys. So I want my query in such a way as that it will hit this same filter cache, What I really dont want to do is to calcuate the start of the week in my code and structure the query based on that. Is there a way to get solr to be…
phonegapnoob
  • 87
  • 1
  • 5
-1
votes
1 answer

Retrieve and Rank Python: What kind of "Answer Data" to pass to rank method?

I'm accessing the Retreive-And-Rank service using Python. So far I've uploaded my configuration and documents and have trained my ranker on the relevance file. All that is left, I presume, is to pass some query results (from Solr?) into the "rank"…
1 2 3 4 5 6
7