src/solr_grid_tuning/query_runner.py
def run_query(self, query: SolrQuery, return_field="id") -> List[str]:
        """Run a single query and return the list of document ids
        """

        print(f"Running request: {str(query)}")
        response = self.solr_client.query(query)
        if response["docs"] is not None and len(response["docs"]) > 0:
            return [doc[return_field] for doc in response["docs"]]
        else:
            return []
Run a single query and return the list of document ids
        
Run a single query and return the list of document ids
Run a single query and return the list of document ids
def run_query(self, query: SolrQuery, return_field="id") -> List[str]:
        print(f"Running request: {str(query)}")
        response = self.solr_client.query(query)
        if response["docs"] is not None and len(response["docs"]) > 0:
            return [doc[return_field] for doc in response["docs"]]
        else:
            return []
def run_query ( self , query : SolrQuery , return_field = "id" ) -> List [ str ] : print ( f"Running request: {str(query)}" ) response = self . solr_client . query ( query ) if response [ "docs" ] is not None and len ( response [ "docs" ] ) > 0 : return [ doc [ return_field ] for doc in response [ "docs" ] ] else : return [ ]
Run a single query and return the list of document ids
Run a single query and return the list of document ids
"""Run a single query and return the list of document ids
        """
self
query
SolrQuery
return_field