Skip to Content

Got the exception "no field name specified in query and no default specified via 'df' param" while fetching products from newly created solr index.

I have created new solr index for new site and product catalog. After full indexing , indexing is successful with few errors in console: WARN [solr indexer thread] [DefaultCategorySource] Failed to load category [brands] from catalog version [fttx_stl_productCatalog:Online] ERROR [solr indexer thread] [DefaultCategorySource] Failed to find Category with code [brands] in catalog versions [fttx_stl_productCatalog:Online] ERROR [solr indexer thread] [solrIndexThreadLogger] cannot find attribute touchscreen ERROR [solr indexer thread] [solrIndexThreadLogger] cannot find attribute gps ERROR [solr indexer thread] [solrIndexThreadLogger] cannot find attribute camera ERROR [solr indexer thread] [solrIndexThreadLogger] cannot find attribute keyboard

But Products with other indexed properties are visible in solr UI.

While I try to fetch the product list using de.hybris.platform.commercefacades.search.solrfacetsearch.impl.DefaultSolrProductSearchFacade.categorySearch(String) method , it gives me below exception:

ERROR [hybrisHTTP38] [10.121.21.119] [SolrSearchRequestResponsePopulator] Exception while executing SOLR search de.hybris.platform.solrfacetsearch.search.FacetSearchException: Error from server at https://localhost:8983/solr: no field name specified in query and no default specified via 'df' param at de.hybris.platform.solrfacetsearch.search.impl.DefaultFacetSearchStrategy.search(DefaultFacetSearchStrategy.java:180) ~[solrfacetsearchserver.jar:?] at de.hybris.platform.solrfacetsearch.search.impl.DefaultFacetSearchService.search(DefaultFacetSearchService.java:89) ~[solrfacetsearchserver.jar:?] at de.hybris.platform.solrfacetsearch.search.impl.DefaultFacetSearchService.search(DefaultFacetSearchService.java:78) ~[solrfacetsearchserver.jar:?] at de.hybris.platform.commerceservices.search.solrfacetsearch.populators.SolrSearchRequestResponsePopulator.populate(SolrSearchRequestResponsePopulator.java:71) [classes/:?] at de.hybris.platform.commerceservices.search.solrfacetsearch.populators.SolrSearchRequestResponsePopulator.populate(SolrSearchRequestResponsePopulator.java:1) [classes/:?] at de.hybris.platform.converters.impl.AbstractPopulatingConverter.populate(AbstractPopulatingConverter.java:73) [classes/:?] at de.hybris.platform.converters.impl.AbstractConverter.convert(AbstractConverter.java:41) [classes/:?] at de.hybris.platform.commerceservices.search.solrfacetsearch.impl.DefaultSolrProductSearchService.doSearch(DefaultSolrProductSearchService.java:152) [classes/:?] at de.hybris.platform.commerceservices.search.solrfacetsearch.impl.DefaultSolrProductSearchService.categorySearch(DefaultSolrProductSearchService.java:129) [classes/:?] at de.hybris.platform.commerceservices.search.solrfacetsearch.impl.DefaultSolrProductSearchService.categorySearch(DefaultSolrProductSearchService.java:1) [classes/:?] at de.hybris.platform.commercefacades.search.solrfacetsearch.impl.DefaultSolrProductSearchFacade$4.execute(DefaultSolrProductSearchFacade.java:182) [classes/:?] at de.hybris.platform.commercefacades.search.solrfacetsearch.impl.DefaultSolrProductSearchFacade$4.execute(DefaultSolrProductSearchFacade.java:1) [classes/:?] at de.hybris.platform.commerceservices.threadcontext.impl.DefaultThreadContextService.executeInContext(DefaultThreadContextService.java:51) [classes/:?] at de.hybris.platform.commercefacades.search.solrfacetsearch.impl.DefaultSolrProductSearchFacade.categorySearch(DefaultSolrProductSearchFacade.java:175) [classes/:?] at com.stltelco.stltelcoaddon.controllers.pages.checkout.steps.FTTHPlanSelectionCheckoutStepController.getPlanSelectionData(FTTHPlanSelectionCheckoutStepController.java:79) [classes/:?]

I am attaching solr.impex (I have taken reference from telcoindex)

link text

Can anyone help me , where I am doing wrong OR any steps for creating new solr index.

Thanks!

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Oct 22, 2019 at 11:19 PM

    I solved this issue with adding df configuration to solrconfig.xml, like

    <requestHandler name="/query" class="solr.SearchHandler">
     <lst name="defaults">
      ....
      <str name="df">text</str>
     </lst>
    </requestHandler>
    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.