KonaKart Community Forum

Installation / Configuration => Programming of KonaKart => Topic started by: bharatkasodariya on July 13, 2013, 07:58:28 am

Title: Sorting and pagination doesn't work with enabled Solr Search Engine
Post by: bharatkasodariya on July 13, 2013, 07:58:28 am
First of all, Thanks Team Konakart for such a nice system.

I am facing one issue in sorting and pagination when Solr is enabled . I just tried to run app with Solr Search Engine.For that, I enabled Solr Search Engine from the admin and added product in solr search engine. When I try to sort the product with Solr enabled config, getting the below exception.
java.lang.NullPointerException
        at com.konakart.al.CategoryMgr.getCatMenuList(Unknown Source)
        at com.konakart.al.CategoryMgr.getCatMenuList(Unknown Source)
        at com.konakart.al.ProductMgr.manageCurrentCategories(Unknown Source)
        at com.konakart.al.ProductMgr.fetchProducts(Unknown Source)
        at com.konakart.al.ProductMgr.orderCurrentProds(Unknown Source)
        at com.konakart.actions.SortProductAction.execute(SortProductAction.java
:73)
It works ok when Solr is disabled.
Title: Re: Sorting and pagination doesn't work with enabled Solr Search Engine
Post by: bharatkasodariya on July 15, 2013, 01:48:12 pm
is there anything wrong in data?
Title: Re: Sorting and pagination doesn't work with enabled Solr Search Engine
Post by: ryan on August 05, 2013, 10:41:18 am
Our online demo http://www.konakart.com/konakart/Welcome.action (http://www.konakart.com/konakart/Welcome.action) uses Solr. Can you reproduce your problem there ?
Title: Re: Sorting and pagination doesn't work with enabled Solr Search Engine
Post by: bharatkasodariya on August 08, 2013, 09:13:54 am
Thanks for your response.
Currently I am running customize system on my local env. I have just enabled Solr to see. Its creating product object in solr also.  Trying to find why I am getting above exception on console when I do pagination click . It seems like that exception stops pagination. Do I need to make any other change for Solr?
Title: Re: Sorting and pagination doesn't work with enabled Solr Search Engine
Post by: ryan on August 08, 2013, 09:20:39 am
All you need to do is to enable Solr in the configuration section of the Admin App and then load up the products in the tools section.
Title: Re: Sorting and pagination doesn't work with enabled Solr Search Engine
Post by: bharatkasodariya on August 21, 2013, 12:56:34 pm
Thanks,
I tried with fresh db and few sample data. figured out something. Pagination/Sorting throws above exception when product assigned to multiple category and one of the category is invisible.
Title: Re: Sorting and pagination doesn't work with enabled Solr Search Engine
Post by: bharatkasodariya on August 30, 2013, 10:34:55 am
any help?
Title: Re: Sorting and pagination doesn't work with enabled Solr Search Engine
Post by: ryan on August 30, 2013, 01:18:18 pm
I tried adding a product to two categories and made one invisible but couldn't reproduce the problem.
Title: Re: Sorting and pagination doesn't work with enabled Solr Search Engine
Post by: bharatkasodariya on September 05, 2013, 07:27:33 am
can you share db script