You can check SolrQuery setParam method, as
query.seParam("fl","id");

On Fri, Apr 15, 2022, 4:25 PM Neha Gupta <[email protected]> wrote:

> Dear Solr Community,
>
> This is regarding SOLRJ.
>
> I want to query SOLR from java application using SOLRJ and i want to
> send multiple (in the range of 1-13) fields in the query parameter.
> The only method i know is to create a string with these multiple fields
> and pass it as a string in method query.setQuery("multiple fields
> concatenated via AND OR")
>
> Is there any better way of doing this as creating a string with all
> these multiple fields(1-13) can be cumbersome.
>
>
> Thanks and Regards
>
> Neha Gupta
>
>

Reply via email to