Skip to Content
author's profile photo Former Member
Former Member

solr indexing null pointer exception

Am doing full solrindexing in backoffice for my store, am getting this response alt text

link text

May I know what's wrong in my solr.impex file...plz help..Thanks in Advance

P.S: plz find below the attached solr file Console shows this

10001-nulexc.png (20.2 kB)
10000-solr.zip (3.8 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Dec 05, 2017 at 02:29 AM

    It seems no related factSearchConfigure exist. you would need check in backoffice ->system->search and navigation to see what you have and what are missing.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 05, 2017 at 11:35 AM

    Hi sanchez.. I thank u for ur reply..I shall brief u the clear scenario

     $prefix=hybris
     $productCatalog=$prefixProductCatalog
     $catalogVersions=catalogVersions(catalog(id),version);
     $serverConfigName=$prefixSolrServerConfig
     $indexConfigName=$prefixSolrIndexConfig
     $searchConfigName=$prefixPageSize
     $facetSearchConfigName=$prefixIndex
     $facetSearchConfigDescription=hybris Solr Index
     $searchIndexNamePrefix=$prefix
     $solrIndexedType=$prefixProductType
     $indexBaseSite=$prefix
     $indexLanguages=en,de
     $indexCurrencies=EUR,GBP,USD
     $priceRangeGBP=$prefixPriceRangeGBP
     $priceRangeEUR=$prefixPriceRangeEUR
     
     #
     # Setup the Solr server, indexer, and search configs
     #
     
     # Create the solr server configuration
     INSERT_UPDATE SolrServerConfig;name[unique=true];mode(code);embeddedMaster
     ;$serverConfigName;standalone;false;
      
     INSERT_UPDATE SolrEndpointUrl;solrServerConfig(name)[unique=true];url[unique=true];master[unique=true,default=false]
     ;$serverConfigName;http://localhost:8983/solr;true
     # Create the solr indexer configuration
     INSERT_UPDATE SolrIndexConfig;name[unique=true];batchSize;numberOfThreads;indexMode(code);
     ;$indexConfigName;100;1;TWO_PHASE;
     # Create the faceted search configuration
     INSERT_UPDATE SolrSearchConfig;description[unique=true];pageSize
     ;$searchConfigName;20
     
     #
     # Setup the indexed types, their properties, and the update queries
     #
     
     # Declare the indexed type Product
     INSERT_UPDATE SolrIndexedType;identifier[unique=true];type(code);variant;sorts(&sortRefID)
                                  ;$solrIndexedType       ;Product   ;false  ;sortRef1,sortRef2,sortRef3,sortRef4,sortRef5,sortRef6
     INSERT_UPDATE SolrFacetSearchConfig;name[unique=true];description;indexNamePrefix;languages(isocode);currencies(isocode);solrServerConfig(name);solrSearchConfig(description);solrIndexConfig(name);solrIndexedTypes(identifier);enabledLanguageFallbackMechanism;$catalogVersions
                                        ;$facetSearchConfigName;$facetSearchConfigDescription;$searchIndexNamePrefix;$indexLanguages;$indexCurrencies;$serverConfigName;$searchConfigName;$indexConfigName;$solrIndexedType;true;$productCatalog:Online,$productCatalog:Staged
     UPDATE BaseSite;uid[unique=true];solrFacetSearchConfiguration(name)
                    ;$indexBaseSite  ;$facetSearchConfigName
     
    
    

    The error here is mainly bcoz facetsearchconfig and my backoffice looks like this
    alt text

    Hoping the info is suffice and looking forward for ur response


    10011-back.png (50.6 kB)
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 05, 2017 at 11:52 AM

    My guess is the problem is more with your Solr indexer job configuration. You need to make sure that job has the correct facet search configuration name. This is usually set up during initialization by DefaultSetupSolrIndexerService.

    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.