0

Good day,

First i am quite unfamiliar with solr.

I am using solr 6.6.6, python 3.7 and pysolr (the latest version).

I have a many documents with the following format:

pysolr.add({
  'first_name': 'Jane',
  'last_name': 'Doe',
  'contact': {
    'phone_number': '0678901122',
    'address': 'near the fire place'
  }
})

I read some documentation on yonik.com, medium and lucidwork to understand how to make a query to solr.

I have already tried the following :

pysolr.search('contact.phone_number:06')

Obviously, this was bad and gave me the error : [Reason: undefined field contact.zip_code]

In the above exemple, i would like to understand how to retrieve a value from sub-element contact.

Emile
  • 345
  • 2
  • 11
  • You can attach the links of yonik.com and medium where you gathered information. That will help others to follow and solve your issue. – shaik moeed May 27 '19 at 15:39
  • Start by retrieving the documents that have been indexed by querying for `*:*` in the Solr web interface. I'm not familiar with how pysolr indexes child documents, if at all. – MatsLindh May 27 '19 at 18:46

0 Answers0