Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to add other parameters like debug or rows #471

Open
ghost opened this issue Nov 8, 2022 · 1 comment
Open

Ability to add other parameters like debug or rows #471

ghost opened this issue Nov 8, 2022 · 1 comment

Comments

@ghost
Copy link

ghost commented Nov 8, 2022

I want to add a parameter to return the count of documents (thinking maybe this is faster). This is exactly what is asked here:
https://stackoverflow.com/questions/5050746/solr-solrj-how-can-i-determine-the-total-number-of-documents-in-an-index

So in the answers we propose two solutions: debug or rows but for each, they provide a value like:

debug=query and rows=0. For what I've found in this library, is at least the solrClient#set but this one appears to take only one param, the key. I'm not sure if this would work.

Set a new parameter Since all possibilities provided by Solr are not available in the Query object, set() is there to fit this gap.

My question is how to set a key with a value ? since the signature does not allow that.

@ghost
Copy link
Author

ghost commented Nov 8, 2022

Furthermore now that I tested that, I'm having TypeError: query.set is not a function

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants