Lucene index update maintenance?

For general questions and discussions specific to the AbleCommerce GOLD ASP.Net shopping cart software.
Post Reply
User avatar
NC Software
AbleCommerce Partner
AbleCommerce Partner
Posts: 4620
Joined: Mon Sep 13, 2004 6:06 pm
Contact:

Lucene index update maintenance?

Post by NC Software » Sun Jul 17, 2016 3:02 am

I'm familiar with JIRA and their use of Lucene and as you know from using JIRA too it prompts you when to rebuild the index. At times it needs to be maintained. Does AbleCommerce auto-rebuild the index? Does it inform the Admin when it needs a rebuild? Is their guidance on when to rebuild it? I assume when catalog changes are made there are triggers to update it behind the scenes? What needs to be done and when by an Admin to maintain an optimal lucene index? I prefer SQL FTS as it is a server based index, it's a separate server, and it's not disk I/O and in my case has much more resources available but it seems the FTS index is not optimal or is using incorrect search methods such as not using CONTAINS logic?

Yes, I'm gearing up for GOLD so prepare for my usual barrage of questions/findings. :)

On that note:

Please update all nugets for your next round of updates, they are WAY out of date! I really want to be able to keep nuget updated for security and bug fixes but I tried even in your source solution and the dependencies are a mess and quite frankly I failed in an effort to see if I could even get them updated. Also update the .NET framework to 4.6.1 which is the latest.
Neal Culiner
NC Software, Inc.

User avatar
NC Software
AbleCommerce Partner
AbleCommerce Partner
Posts: 4620
Joined: Mon Sep 13, 2004 6:06 pm
Contact:

Re: Lucene index update maintenance?

Post by NC Software » Sun Jul 17, 2016 3:28 am

Tried my first deploy, it failed, missing logo.gif from bootstrap_responsive/images
Neal Culiner
NC Software, Inc.

User avatar
NC Software
AbleCommerce Partner
AbleCommerce Partner
Posts: 4620
Joined: Mon Sep 13, 2004 6:06 pm
Contact:

Re: Lucene index update maintenance?

Post by NC Software » Sun Jul 17, 2016 3:29 am

And more: Could not find file App_Themes\Bootstrap_Responsive\style.css
Neal Culiner
NC Software, Inc.

User avatar
NC Software
AbleCommerce Partner
AbleCommerce Partner
Posts: 4620
Joined: Mon Sep 13, 2004 6:06 pm
Contact:

Re: Lucene index update maintenance?

Post by NC Software » Sun Jul 17, 2016 3:41 am

After finally getting the deploy to complete and setting permissions on the folders first run failed due to missing CommerceBuilder.WebAPI.xml file - this needs to be added to your web deploy functionality please if it's required.
Neal Culiner
NC Software, Inc.

User avatar
NC Software
AbleCommerce Partner
AbleCommerce Partner
Posts: 4620
Joined: Mon Sep 13, 2004 6:06 pm
Contact:

Re: Lucene index update maintenance?

Post by NC Software » Sun Jul 17, 2016 3:44 am

AbleCommercePublish.pubxml is missing from the project under PublishProfiles folder
Neal Culiner
NC Software, Inc.

User avatar
NC Software
AbleCommerce Partner
AbleCommerce Partner
Posts: 4620
Joined: Mon Sep 13, 2004 6:06 pm
Contact:

Re: Lucene index update maintenance?

Post by NC Software » Sun Jul 17, 2016 5:22 am

database.config didn't deploy

Next error: NHibernate.Caches.SysCache.dll missing - didn't deploy

How can I be sure all files are deploying from VS.NET 2015 to the server? I need a 100% intact solution in VS 2015 under version control that I can deploy to any server at any time and it is of 100% integrity that can run the site. It seems like you all have fallen way short in web deploy testing especially from WAP. In the end I am spending hours on this trying to get a site to deploy properly AND run at the R12 stage. It's extremely disappointing as my time costs me money and the reason we pay you money is to not have to spend this time. I really thought holding off this long would have yielded better results. The documentation seems lacking in several areas from system requirements (hello, SQL Server 2016 is now out) - what SQL Server collation requirements are needed? This needs to be specified. SQL Server compatibility modes for newer versions, i.e. can I use 2014 or do I need to set 2012 because that's the latest your documentation outlines?

So someone please tell me what files are required on the server to run AC GOLD R12? And why aren't the required files setup for web deploy?

What actions are required after deployment, i.e. rebuild the index? If you've been working on a dev machine actions are going to be required post deploy - what are they?

Please do not set us up to fail - set us up to succeed!
Neal Culiner
NC Software, Inc.

User avatar
NC Software
AbleCommerce Partner
AbleCommerce Partner
Posts: 4620
Joined: Mon Sep 13, 2004 6:06 pm
Contact:

Re: Lucene index update maintenance?

Post by NC Software » Sun Jul 17, 2016 5:41 am

Finally running but the purpose of web deploy is to be able to deploy your dev site to production and ensure all files are in place. So much was missing from trying to deploy this WAP solution that it nearly defeats the purpose of WAP as you may as well use the WAS and just FTP the entire thing up! Sad! Config files were missing, images missing, DLL's missing, so much missing it's just a matter of when the next error occurs. This should be an atomic scenario, dev, publish, run all maintained in version control as well.
Neal Culiner
NC Software, Inc.

User avatar
NC Software
AbleCommerce Partner
AbleCommerce Partner
Posts: 4620
Joined: Mon Sep 13, 2004 6:06 pm
Contact:

Re: Lucene index update maintenance?

Post by NC Software » Sun Jul 17, 2016 6:08 am

Okay, added the files/folders to my project so they should deploy better, off to the styling fun!
Neal Culiner
NC Software, Inc.

User avatar
NC Software
AbleCommerce Partner
AbleCommerce Partner
Posts: 4620
Joined: Mon Sep 13, 2004 6:06 pm
Contact:

Re: Lucene index update maintenance?

Post by NC Software » Sun Jul 17, 2016 10:26 am

Are we supposed to have a styles.css in the bootstrap responsive theme folder area? It showed as broken (missing) in VS 2015. Also the logo.gif as I reported in various themes years ago. Seems like you can't compile the .less file without the styles.css file that's missing.

I suggest AC do some Q/A testing for missing/broken files and also web deployment to ensure when someone downloads your product and deploys it that it actually deploys the required dependencies. Numerous were missing in my first efforts in R12 from config files to DLL's etc.
Neal Culiner
NC Software, Inc.

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Lucene index update maintenance?

Post by mazhar » Sun Jul 17, 2016 10:09 pm

Are we supposed to have a styles.css
Not really, we are using less to generate .css files. You will need to install "Web Essentials" extension in your Visual Studio. Every time you will update style.less it will automatically generate stylesheet. We are using minified version of generated style sheet called style.min.css.

User avatar
NC Software
AbleCommerce Partner
AbleCommerce Partner
Posts: 4620
Joined: Mon Sep 13, 2004 6:06 pm
Contact:

Re: Lucene index update maintenance?

Post by NC Software » Mon Jul 18, 2016 6:58 am

I tried making a change in styles.less and then save, got the error below and seems like it can't find LESS
Severity Code Description Project File Line Suppression State
Error FileError: 'less/responsive-utilities.less' wasn't found. Tried - \App_Themes\Bootstrap_Responsive\less\responsive-utilities.less,\App_Themes\Bootstrap_Responsive\less\responsive-utilities.less,less\responsive-utilities.less in \App_Themes\Bootstrap_Responsive\style.less AbleCommerce D:\Dev\acgold\Website\App_Themes\Bootstrap_Responsive\style.less 52
In some googling it seems I have to download and add this to the site somewhere? I reviewed various areas of the AC documentation and didn't find any information about downloads required or where to put it. Did I miss something? Is there a reason this is not in a comment at the top of the file you provide?

This again is a terrible "new user" experience with very poor documentation both in the help sites and in the solution. Your frequent users / developers here have let you down in my opinion. As of R12 this should be a polished file set coming from you, no hit or miss deploys, a checklist of files to be sure deploy if you intentionally left them out, broken file associations in the .csproj etc. etc.
Neal Culiner
NC Software, Inc.

User avatar
NC Software
AbleCommerce Partner
AbleCommerce Partner
Posts: 4620
Joined: Mon Sep 13, 2004 6:06 pm
Contact:

Re: Lucene index update maintenance?

Post by NC Software » Mon Jul 18, 2016 6:59 am

Please tell me exactly what I need to download and where to put the files to make this setup work as expected.
Neal Culiner
NC Software, Inc.

User avatar
NC Software
AbleCommerce Partner
AbleCommerce Partner
Posts: 4620
Joined: Mon Sep 13, 2004 6:06 pm
Contact:

Re: Lucene index update maintenance?

Post by NC Software » Mon Jul 18, 2016 7:10 am

Through googling I found to download the bootstrap source, copy the less folder to the theme folder for bootstrap responsive. I made a change to style.less and saved it and now the files generated properly.

This needs to be documented in the installation guide, merchant guide on theming, wiki and PDF, who knows where. I really suggest merge all these sources and completely rewrite the documentation in a much better system, Atlassian's wiki product Confluence. This is not helping your business I'm afraid...if I wasn't tied to AC as an authentication system for everything I use I would probably not switch to GOLD but so be it, back to work...
Neal Culiner
NC Software, Inc.

User avatar
Katie
AbleCommerce Admin
AbleCommerce Admin
Posts: 2651
Joined: Tue Dec 02, 2003 1:54 am
Contact:

Re: Lucene index update maintenance?

Post by Katie » Mon Jul 18, 2016 8:22 am

There are several options for editing the Bootstrap theme. We have a document within the Merchant Guide to assist:

http://help.ablecommerce.com/mergedProj ... _theme.htm
Thank you for choosing AbleCommerce!

http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support

User avatar
NC Software
AbleCommerce Partner
AbleCommerce Partner
Posts: 4620
Joined: Mon Sep 13, 2004 6:06 pm
Contact:

Re: Lucene index update maintenance?

Post by NC Software » Mon Jul 18, 2016 8:25 am

Thanks Katy, I skimmed that earlier, now I see it at the bottom:
In order to customize the Bootstrap Responsive stylesheet you will have to do the following:

Install Web Essentials plugin in for Visual Studio

Download Bootstrap source code "LESS" package and keep under the responsive theme folder.

Make changes to Style.less file.

Web Essentials will automatically update style.min.css file and you should be able to see updates.
Neal Culiner
NC Software, Inc.

User avatar
Katie
AbleCommerce Admin
AbleCommerce Admin
Posts: 2651
Joined: Tue Dec 02, 2003 1:54 am
Contact:

Re: Lucene index update maintenance?

Post by Katie » Mon Jul 18, 2016 8:48 am

Yes, it's the first option within the Editing section.

OPTION 1: EDIT THE THEME USING A 3RD-PARTY BOOTSTRAP EDITOR

I use Option 3 myself, because it allows me to keep the site upgraded without having to re-merge any custom styles.

OPTION 3: USING A CUSTOM STYLESHEET TO OVER-RIDE STYLE.LESS

In Gold R11, we added the custom.css file so you can skip steps 1 - 3 in that section.

But, whatever you prefer is always the best option!
Thank you for choosing AbleCommerce!

http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support

User avatar
NC Software
AbleCommerce Partner
AbleCommerce Partner
Posts: 4620
Joined: Mon Sep 13, 2004 6:06 pm
Contact:

Re: Lucene index update maintenance?

Post by NC Software » Mon Jul 18, 2016 8:50 am

I just needed to ensure any missing files were auto re-generated as several showed missing in the project. So this allowed the theme to rebuild I suppose. I'll review your option, not quite ready to do the dirty work yet.
Neal Culiner
NC Software, Inc.

Post Reply