Joel,
follow below solrconfig.xml.

<requestHandler name="/select" class="solr.SearchHandler">

    <lst name="defaults">
      <str name="echoParams">explicit</str>
      <int name="rows">10</int>
      <int name="timeAllowed">180000</int>

      <int name="facet.mincount">1</int>
      <int name="f.ano_publicacao.facet.mincount">0</int>
      <int name="facet.limit">15000</int>
      <int name="facet.sort">1</int>
      <str name="q.op">AND</str>

      <str name="defType">edismax</str>
      <str name="df">text</str>
    </lst>

    <arr name="last-components">
      <str>spellcheck</str>
    </arr>  </requestHandler>


I understood that if I remove the line <str name="defType">edismax</str> it
will fallback to default Lucene query parser, which is now required for
fetch to work. Did i understand correctly?

Are there any other points to check? I will test it here, but first I will
clone my environment. I will post the results after my tests

Many thanks.

Em ter., 28 de jun. de 2022 às 23:42, Joel Bernstein <[email protected]>
escreveu:

> There were changes in the behavior of Solr's local param syntax which
> affected the fetch expression. Check to see if there is a default defType
> set in the solrconfig for the /select handler. For fetch to work the
> qparser in. the /select handler needs to be the lucene qparser which is the
> default if not overridden in the solrconfig. See this ticket for details:
> https://issues.apache.org/jira/browse/SOLR-11501.
>
>
> Joel Bernstein
> http://joelsolr.blogspot.com/
>
>
> On Tue, Jun 28, 2022 at 7:59 PM Kojo <[email protected]> wrote:
>
> > I am upgrading from Solr 6.6 to 9.0
> >
> > I have some SE working fine on 6.6, where I fetch some fields to enrich
> the
> > gatherNodes fucntion result-set.
> >
> > Bellow is a much more simple example, where I am trying to fetch some
> > fields:
> >
> > fetch(my_collection,
> > search(my_collection, qt="/export", q=*:*, fl="numero_processo",
> > sort="numero_processo asc", fq=(any_fq_exact:"any" AND
> > django_ct:"django_ct"), )
> > ,fl="fomento_status_facet, data_inicio_ano ",
> > on="numero_processo=numero_processo",)
> >
> >
> > It was supposed to fetch the fields fl="fomento_status_facet,
> > data_inicio_ano", but the result-set does't carry this fields:
> >
> > {
> >   "result-set": {
> >     "docs": [
> >       {
> >         "numero_processo": "05/51689-2"
> >       },
> >       {
> >         "numero_processo": "13/07276-1"
> >       },
> >       {
> >         "numero_processo": "13/07296-2"
> >       },
> >       {
> >
> >
> > Any hint?
> >
> >
> > Thank you!
> >
>

Reply via email to