You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fixed the bug where using the arguments apart from the q argument in the query would return different results. Enabled functionality for saving the polars dataframe as a CSV. Adjusted tests accordingly.
query=f"{self.base_url}query?q=("+' AND '.join([f'{k}:{v}'fork, vinkwargs.items() ifvandk!='wt'andk!='cursorMark'andk!='sort'andk!='n'])+f")&wt={kwargs['wt']}&cursorMark={kwargs['cursorMark']}&sort={kwargs['sort']}"
23
-
27
+
query=f"{self.__base_url}query?q=("+' AND '.join([f'{k}:"{v}"'fork, vinkwargs.items() ifvandk!='wt'andk!='cursorMark'andk!='sort'andk!='n'])+f")&wt={kwargs['wt']}&cursorMark={kwargs['cursorMark']}&sort={kwargs['sort']}"
assertindDocSearch._create_query(q='collection:test AND industry:tobacco', wt='json', cursorMark='*', sort='id%20asc') =='https://metadata.idl.ucsf.edu/solr/ltdl3/query?q=(collection:test AND industry:tobacco)&wt=json&cursorMark=*&sort=id%20asc'
62
+
assertindDocSearch._create_query(q='collection:"test" AND industry:"tobacco"', wt='json', cursorMark='*', sort='id%20asc') =='https://metadata.idl.ucsf.edu/solr/ltdl3/query?q=(collection:"test" AND industry:"tobacco")&wt=json&cursorMark=*&sort=id%20asc'
61
63
62
64
deftest_create_query_without_q(indDocSearch):
63
-
assertindDocSearch._create_query(q=False, collection='test', industry='tobacco', wt='json', cursorMark='*', sort='id%20asc') =='https://metadata.idl.ucsf.edu/solr/ltdl3/query?q=(collection:test AND industry:tobacco)&wt=json&cursorMark=*&sort=id%20asc'
65
+
assertindDocSearch._create_query(q=False, collection='test', industry='tobacco', wt='json', cursorMark='*', sort='id%20asc') =='https://metadata.idl.ucsf.edu/solr/ltdl3/query?q=(collection:"test" AND industry:"tobacco")&wt=json&cursorMark=*&sort=id%20asc'
0 commit comments