Skip to Content
1
Jul 18, 2019 at 08:33 AM

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

2516 Views

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!

Attachments