Full Text Search not working on new install

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
Mike718NY
Commodore (COMO)
Commodore (COMO)
Posts: 485
Joined: Wed Jun 18, 2008 5:24 pm

Full Text Search not working on new install

Post by Mike718NY » Tue Oct 27, 2009 8:42 am

I have a new install (VERSION: 7.0.3 BUILD: 12458) and Full Text seach isnt' working.

I checked off "Enable Full Text Searching" and have [[ConLib:SimpleSearch]] in default header.

I was looking in SQL Server and noticed this:
Catalog Size : 0 MB
Default Catalog : False

Am I missing anything?

tomo218
Ensign (ENS)
Ensign (ENS)
Posts: 3
Joined: Mon Oct 26, 2009 1:24 pm

Re: Full Text Search not working on new install

Post by tomo218 » Tue Oct 27, 2009 11:35 am

I have the same problem, did a new install and having this issue..
using sql server 2005.

An error has occured at http://www.itdirec.com/Search.aspx?k=hp, ssd Exception of type 'System.Web.HttpUnhandledException' was thrown.; Syntax error near ',' in the full-text search condition 'hp, ssd'.

tomo218
Ensign (ENS)
Ensign (ENS)
Posts: 3
Joined: Mon Oct 26, 2009 1:24 pm

Re: Full Text Search not working on new install

Post by tomo218 » Tue Oct 27, 2009 11:49 am

updated to the commercebuilder build patch 12912

Exception of type 'System.Web.HttpUnhandledException' was thrown.; Object reference not set to an instance of an object.

Mike718NY
Commodore (COMO)
Commodore (COMO)
Posts: 485
Joined: Wed Jun 18, 2008 5:24 pm

Re: Full Text Search not working on new install

Post by Mike718NY » Thu Oct 29, 2009 7:09 am

My full text search is still not working.
I don't get any errors. When I type in a search word, it just displays all products.
Last edited by Mike718NY on Fri Oct 30, 2009 6:33 am, edited 1 time in total.

Chris Hadden
Commander (CMDR)
Commander (CMDR)
Posts: 182
Joined: Tue Jan 27, 2009 2:29 pm

Re: Full Text Search not working on new install

Post by Chris Hadden » Thu Oct 29, 2009 7:56 am

Do you have "category search" enabled in the side bar? This needed to be on for my text search to work. Otherwise it returned all products.

Mike718NY
Commodore (COMO)
Commodore (COMO)
Posts: 485
Joined: Wed Jun 18, 2008 5:24 pm

Re: Full Text Search not working on new install

Post by Mike718NY » Thu Oct 29, 2009 8:38 am

thanks Chris, . . I remember doing this on my last website but I'm not sure what I did. I had:

Do I put that parameter here:

[[ConLib:Custom/SimpleCategoryList CategoryId="0"]]

Mike718NY
Commodore (COMO)
Commodore (COMO)
Posts: 485
Joined: Wed Jun 18, 2008 5:24 pm

Re: Full Text Search not working on new install

Post by Mike718NY » Fri Oct 30, 2009 6:37 am

How do I find the parameters for the side bar, especially the "category search" enabled one?

Mike718NY
Commodore (COMO)
Commodore (COMO)
Posts: 485
Joined: Wed Jun 18, 2008 5:24 pm

Re: Full Text Search not working on new install

Post by Mike718NY » Mon Nov 02, 2009 12:12 pm

Still can't get this to work.

User avatar
Logan Rhodehamel
Developer
Developer
Posts: 4116
Joined: Wed Dec 10, 2003 5:26 pm

Re: Full Text Search not working on new install

Post by Logan Rhodehamel » Fri Nov 06, 2009 2:56 pm

When you are on the Configure -> Store screen, can you describe what it says under the Full Text Search section?
Cheers,
Logan
Image.com

If I do not respond to an unsolicited private message, it's not because I'm ignoring you. It's because the answer to your question is valuable to others. Try the new topic button.

Mike718NY
Commodore (COMO)
Commodore (COMO)
Posts: 485
Joined: Wed Jun 18, 2008 5:24 pm

Re: Full Text Search not working on new install

Post by Mike718NY » Fri Nov 06, 2009 4:01 pm

Enabling full text search can improve the response times for searches performed on your product catalog.

[Checked] Enable Full Text Searching

User avatar
Logan Rhodehamel
Developer
Developer
Posts: 4116
Joined: Wed Dec 10, 2003 5:26 pm

Re: Full Text Search not working on new install

Post by Logan Rhodehamel » Fri Nov 06, 2009 4:53 pm

What happens when you search on the retail side?
Cheers,
Logan
Image.com

If I do not respond to an unsolicited private message, it's not because I'm ignoring you. It's because the answer to your question is valuable to others. Try the new topic button.

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Full Text Search not working on new install

Post by jmestep » Fri Nov 06, 2009 5:08 pm

If it is enabled, there should be an ac_SearchCatalog in your database-->Storage-->Full Text Catalog. One of the sites I work in is on a HyperV at Drundo and Drundo had it disabled to save resources, but they turned it on when i asked.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

User avatar
Logan Rhodehamel
Developer
Developer
Posts: 4116
Joined: Wed Dec 10, 2003 5:26 pm

Re: Full Text Search not working on new install

Post by Logan Rhodehamel » Fri Nov 06, 2009 5:13 pm

jmestep wrote:If it is enabled, there should be an ac_SearchCatalog in your database-->Storage-->Full Text Catalog. One of the sites I work in is on a HyperV at Drundo and Drundo had it disabled to save resources, but they turned it on when i asked.
When it was disabled, were we able to detect it successfully from the configuration screen though? If not, it might indicate some other way we should be checking for FTS capability.
Cheers,
Logan
Image.com

If I do not respond to an unsolicited private message, it's not because I'm ignoring you. It's because the answer to your question is valuable to others. Try the new topic button.

sdlong02
Lieutenant Commander (LCDR)
Lieutenant Commander (LCDR)
Posts: 95
Joined: Mon Jan 19, 2009 2:33 pm

Re: Full Text Search not working on new install

Post by sdlong02 » Fri Nov 06, 2009 6:25 pm

Logan_AbleCommerce wrote:
jmestep wrote:If it is enabled, there should be an ac_SearchCatalog in your database-->Storage-->Full Text Catalog. One of the sites I work in is on a HyperV at Drundo and Drundo had it disabled to save resources, but they turned it on when i asked.
When it was disabled, were we able to detect it successfully from the configuration screen though? If not, it might indicate some other way we should be checking for FTS capability.
I'm pretty sure there is no indication if it is working or not in the configuration screen. It's just a checkbox to mark whether you want FTS enabled or not. Unless of course mine is setup incorrectly and I'm just figuring that out.

tomo218
Ensign (ENS)
Ensign (ENS)
Posts: 3
Joined: Mon Oct 26, 2009 1:24 pm

Re: Full Text Search not working on new install

Post by tomo218 » Fri Nov 06, 2009 6:30 pm

New Setup...
PLATFORM: ASP.NET
VERSION: 7.0.3
BUILD: 12458
MSSQL v2008
AC SCHEMA v2005

In my 2008 SQL Database i do have the Full Text Catalog and it is populated with something... (says 4389 Unique Key Count, 157 Item Count)
The check box is checked in the admin back end for full text search.

commercebuilder build patch 12912
Multiple Key Word Search Just Breaks.... get errors as follows
Exception of type 'System.Web.HttpUnhandledException' was thrown.; Object reference not set to an instance of an object.

commercebuilder build patch 12624
Multiple Key Word Search passes.. but results arent Full Text Searches... No Results are ever returned when you have more then one word.

I've compared my version vs a freinds and he had version 12624 commerce build patch... tried it and atleast i dont get errors.. is there something im missing.

User avatar
Logan Rhodehamel
Developer
Developer
Posts: 4116
Joined: Wed Dec 10, 2003 5:26 pm

Re: Full Text Search not working on new install

Post by Logan Rhodehamel » Fri Nov 06, 2009 6:42 pm

tomo218 wrote:commercebuilder build patch 12912
Multiple Key Word Search Just Breaks.... get errors as follows
Exception of type 'System.Web.HttpUnhandledException' was thrown.; Object reference not set to an instance of an object.
Build 12912 of the CommerceBuilder assembly was created to deal with multiple keyword searches. I'd have to know more about the error you received when you tried to apply the patch. For instance did it appear when you tried to visit a particular page? Was it only when you tried to search? And if it's only when you try to search, there could be some debug information collected to determine why.
Cheers,
Logan
Image.com

If I do not respond to an unsolicited private message, it's not because I'm ignoring you. It's because the answer to your question is valuable to others. Try the new topic button.

Mike718NY
Commodore (COMO)
Commodore (COMO)
Posts: 485
Joined: Wed Jun 18, 2008 5:24 pm

Re: Full Text Search not working on new install

Post by Mike718NY » Fri Nov 06, 2009 9:11 pm

I think the problem with mine is that the search words are not getting into the Search page.

The " RESULTS FOR : " label is blank. It just returns all the products.

I put a Break point in ConLib\SimpleSearch.ascx

This gets hit:
protected void Page_Init()
{

But this never gets hit, even when I click the Search button:

protected void SearchButton_Click(object sender, EventArgs e)
{
string safeSearchPhrase = StringHelper.StripHtml(SearchPhrase.Text);
if (!string.IsNullOrEmpty(safeSearchPhrase))
Response.Redirect("~/Search.aspx?k=" + Server.UrlEncode(safeSearchPhrase));

So Search.aspx?k= is never getting the search terms into the Search page.

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Full Text Search not working on new install

Post by jmestep » Sat Nov 07, 2009 6:37 am

When it was disabled, were we able to detect it successfully from the configuration screen though? If not, it might indicate some other way we should be checking for FTS capability.
I can't remember that far back (it was yesterday!) and I was working on several sites with FTS. I just checked another site on a HyperV at Drundo and the admin wasn't showing the check box for FTS. I have not asked Drundo to enable FTS on that site.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

User avatar
AlexG
Commander (CMDR)
Commander (CMDR)
Posts: 128
Joined: Mon Mar 03, 2008 9:51 pm
Location: StealDeals.com
Contact:

Re: Full Text Search not working on new install

Post by AlexG » Sat Nov 07, 2009 2:14 pm

The same problem:
I turn off it in AC on admin side and maid it manually in SQL
It's work for me.

User avatar
Logan Rhodehamel
Developer
Developer
Posts: 4116
Joined: Wed Dec 10, 2003 5:26 pm

Re: Full Text Search not working on new install

Post by Logan Rhodehamel » Mon Nov 09, 2009 10:22 am

Mike718NY wrote:So Search.aspx?k= is never getting the search terms into the Search page.
Can you attach your SimpleSearch.aspx.cs file to this thread?
Cheers,
Logan
Image.com

If I do not respond to an unsolicited private message, it's not because I'm ignoring you. It's because the answer to your question is valuable to others. Try the new topic button.

Mike718NY
Commodore (COMO)
Commodore (COMO)
Posts: 485
Joined: Wed Jun 18, 2008 5:24 pm

Re: Full Text Search not working on new install

Post by Mike718NY » Mon Nov 09, 2009 11:35 am

Forget that last issue, I'm an idiot, . . "k= " is showing up in the URL :
localhost/DCPAC7/Search.aspx?k=printer, . . but the breakpoint wasn't going to that event.

I found another interesting clue. If I change the "_Keywords" in SearchPage.ascx.cs:

ProductList.DataSource = ProductDataSource.NarrowSearch(_Keywords, this.CategoryId, _ManufacturerId, ...
TO:
ProductList.DataSource = ProductDataSource.NarrowSearch(Request.QueryString["k"].ToString(), this.CategoryId, _ManufacturerId, ...

the Search works (but the paging and total count don't). So the database end is ok.

I also noticed this. In the Page_Load for SearchPage.aspx, the function RefreshCriteria()
calls a function FindSearchSidebarControl:
private void RefreshCriteria()
{
_SearchSidebar = (ISearchSidebar)PageHelper.FindSearchSidebarControl(this.Page);
............

public static Control FindSearchSidebarControl(Control parent)
{
Control match = null;
foreach (Control childControl in parent.Controls)
{
if (childControl is ISearchSidebar)
................

This function must have looped at least 150 times.
Is the problem related to the Sidebar?
I'm not using any Search features on my Sidebar, so can I just comment the RefreshCriteria() out?

User avatar
Logan Rhodehamel
Developer
Developer
Posts: 4116
Joined: Wed Dec 10, 2003 5:26 pm

Re: Full Text Search not working on new install

Post by Logan Rhodehamel » Mon Nov 09, 2009 11:51 am

Mike718NY wrote:This function must have looped at least 150 times.
Is the problem related to the Sidebar?
I'm not using any Search features on my Sidebar, so can I just comment the RefreshCriteria() out?
It looped all the controls in the page collection to look for a search sidebar. If you comment this out, double check the product finder / advanced search page for functionality.
Cheers,
Logan
Image.com

If I do not respond to an unsolicited private message, it's not because I'm ignoring you. It's because the answer to your question is valuable to others. Try the new topic button.

Mike718NY
Commodore (COMO)
Commodore (COMO)
Posts: 485
Joined: Wed Jun 18, 2008 5:24 pm

Re: Full Text Search not working on new install

Post by Mike718NY » Mon Nov 09, 2009 12:41 pm

The main problem I see is that "_Keywords" comes up an empty string:

ProductList.DataSource = ProductDataSource.NarrowSearch(_Keywords, ........

I noticed "_Keywords = _SearchSidebar.Keyword;" in RefreshCriteria() and figured that was the problem.

I added "_Keywords = Request.QueryString["k"];" in page load and it works now:

protected void Page_Load(object sender, System.EventArgs e)
{
...............
_Keywords = Request.QueryString["k"]; // added

//RefreshCriteria(); // took out
SetPagerIndex(); // this function was in RefreshCriteria(). Do I still need it?
BindSearchResultsPanel();
}

Even though it is working good, is this change ok?

Post Reply