I have a basic Umbraco site which shows some of the products the client sells. No E-Commerce functionality or anything as such
Is there a search component which i could use to search for the product which in turn returns a page showing the product page along with the image, price and description?
What's important there is the IndexAttributeFields, these are property aliases on the document type you want to search on. And IncludeNodeTypes, these are the Document Type aliases (or media type aliases) that you want to show up in the search results. You can also explicitly exclude node types from the search results.
var Searcher = ExamineManager.Instance.SearchProviderCollection["ProductSearch"];
var query = searchCriteria.Field("nodeName","hello").Or().Field("metaTitle","hello").Compile();
var searchResults = Searcher.Search(query);
Then just transform your searchResults in ASPX or CSHTML (web forms or Razor w/e you are using).
Umbraco site search options
I have a basic Umbraco site which shows some of the products the client sells. No E-Commerce functionality or anything as such
Is there a search component which i could use to search for the product which in turn returns a page showing the product page along with the image, price and description?
Umbraco use Examine,
You can add a search index to your examine config file,
e.g.
What's important there is the IndexAttributeFields, these are property aliases on the document type you want to search on. And IncludeNodeTypes, these are the Document Type aliases (or media type aliases) that you want to show up in the search results. You can also explicitly exclude node types from the search results.
Documentation here
To use the search,
Then just transform your searchResults in ASPX or CSHTML (web forms or Razor w/e you are using).
is working on a reply...