Developer forum

Forum » Development » Autocomplete search (CMS)

Autocomplete search (CMS)

Sonni Tost
Reply

Hi all,

Is it possible to attach an 'eCommerce autocomplete like' feature to the CMS Search module? If so - how is this done?

I have been thinking about storing comma separated keywords in a table when a user saves a page and then query that table while the user types in the search terms - or would it be better to query the index server? I have no experience in the latter.

Any feedback is appreciated.


Sonni T.


Replies

 
Mikkel Høst
Reply

Hi Sonni.

Index is the way to go IMO. I don't think this is standard but you can build your own.

http://volpav.wordpress.com/2010/12/22/new-search-in-dynamicweb-creating-your-own-index/

 

 

 

 

 
Sonni Tost
Reply

Hi Mikkel,

 

Thank You for giving me a clue :-) I have read the article and downloaded the example code for making the Index. I have build the dll's an copied them to the bin-folder. The new index appears in the Management Center / Searching - but whenever I try to build the index it fails with the error shown below.

 

Any clues as to what I am doing wrong?

 

-----

 

[501] An error occured while updating an index.

Index: News
Date: 10/2/2013 11:53:00 AM
Solution: local.refa.dk
Error message: SELECT * FROM [NewsCategory] ORDER BY [NewsCategoryName]
Call stack: at Dynamicweb.Modules.Common.DbHandler.GetDataReader(String sql, String db)
at Dynamicweb.Modules.Common.DbHandler.ExecuteList[TCollection,T](String sql, String db)
at Dynamicweb.NewsV2.NewsCategory.GetAllCategoryList()
at CustomModules.Indexers.NewsItemIndexer.Index(IndexerDataRequest request) in C:\@dynamicweb\app.dynamicweb.dk\www.refa.dk\application\CustomModules\RefaIndexer\RefaIndexer\NewsItemIndexer.cs:line 31
at Dynamicweb.Searching.Indexer.PerformIndexModifications(IEnumerable`1 fromEntries, IndexUpdateParameters parameters)
at Dynamicweb.Searching.Indexer.PerformUpdate(IEnumerable`1 data, IndexerQueueContentType expectedContentType, IndexUpdateParameters parameters)
at Dynamicweb.Searching.IndexManager.UpdateIndexInternal(Indexer i, Boolean isFullUpdate)

 

You must be logged in to post in the forum