Developer forum
E-mail notifications
New eCom Search - How to do..
Lars Bruun
Posted on 13/07/2011 16:03:57
We have made our own eCom search function with similar functions as the new one from Dynamicweb.
We are basing it on reading the database directly instead of an indexing feature.
It's not complete, and as such we would like til shift to the new standard index search from Dynamicweb.
However we have quite a few struggles making the new eCom search meet the client ekspectations such as:
1. How to make it search also in itemgroup names and descriptions?
2. How to list 15 lines instead of 5 ?
3. How to sort the result lines f.ex alphabetical ?
4. How to make it show total number of search results ?
5. How to make page scrolls in search results ?
6. The resultlines ar not clickable - how to ?
It may already be possible, but then we just need documentation and guidance on how to do this.
We have made this testpage in order to compare the two search functions: http://bohweb.net.dynamicweb.dk/da-DK/CONtest.aspx
And we where wondering if we just should reprogram our own function to use the new index instead of the database directly.
How would that be done ?
/Lars
Replies
Lars Bruun
Posted on 13/07/2011 16:14:13
Oh, and i may add that you shout try to search for the following:
1. "Rør" - both search functions will list but differently.
2. "Køleskab" - DW function returns nothing..
/Lars
1. "Rør" - both search functions will list but differently.
2. "Køleskab" - DW function returns nothing..
/Lars
Pavel Volgarev
Posted on 15/07/2011 11:17:15
This post has been marked as an answer
Hi Lars,
First of all, are you talking about the suggestion box (the drop-down list that appears when you start typing something in a text box) ? If so:
Hope this helps.
-- Pavel
First of all, are you talking about the suggestion box (the drop-down list that appears when you start typing something in a text box) ? If so:
- You cannot do that. The only information regarding product groups that is indexed is the group ID.
- You cannot do that yet. There is a way to query more suggestions using the API but the amount of five suggestions is hardcoded at the web-service end.
- You can subscribe to "complete" client-side event and reoder the results as you like. Read more here: http://developer.dynamicweb-cms.com/forum/templates/instantsearch-inline-styling.aspx.
- Not possible.
- Not sure what you mean, but it's apparently a matter of styling. All styles for instant search reside at /Files/System/InstantSearch.css. Feel free to modify this file.
- The results that you get don't nesesarily represent actual products - these are just a query suggestions based on what you already entered.
- Might be a bug, need more information.
using Dynamicweb.Searching; using Dynamicweb.Extensibility.Searching.eCommerce; using Dynamicweb.eCommerce.Frontend; // ... // Getting module settings var moduleSettings = new ProductCatalogSettings(/* Paragraph ID with eCom catalog module */); // Building global query constraint (language, "in stock" state, groups, etc.) var constraint = FilterManager.GetGlobalQueryConstraint(moduleSettings); // Retrieving a list of suggestions var suggestions = IndexManager.Current.SuggestTerms("Products", new string[] { "test" }, constraint);
Hope this helps.
-- Pavel
Votes for this answer: 1
You must be logged in to post in the forum