Have you setup the Mediachase.Search.Filters.config file for your facets?
Regards
/K
Yes I setup the Mediachase.Search.Filters.config in the front end project. Is that the right place or should it be in the commerce manager project?
It looks like below
Color
Red
Blue
Yellow
Gray
Brand
Brand Test
test
Brand 3
Brand 4
Where SearchFacet1 and SearchFacet2 are the meta fields that I am trying to include.
Can you please share the properties of SearchFacet1 Meta Field (Please Rebuild the Index also from commerce mananger after adding those facets in commerce manager also).
/K
Name: SearchFacet1
Friendly Name: SearchFacet1
Type: Short String
Support Multiple Languages: Not checked
Use in Comparison: checked
Allow Null Values: Checked
Use Encryption: Not Checked
Allow Search: Checked
Enable Sorting Search Results: Not Checked
Include Values in Search Results: Not Checked
Tokenize: Checked
Include in Default Search: Checked
I rebuild the index from commerce manager but still no luck. I am getting the results as expected but not facetgroups.
Did you or anyone find a solution to this? I'm having the exact same problem, my SearchResult returns searchhits but the FacetGroup property is empty. I have added records to the configuration file and added the properties to the index.
Could you use this code
ISearchFacetGroup[] facets= sfHelper.SearchEntries(criteria).FacetGroups
instead of
ISearchFacetGroup[] facets= sfHelper.GetFacets(
false
, cacheTimeout)
In GetFacets, it seems that only call SearchEntries with default CreateSearchCriteria with searchquery.
Emelie: Have you set the meta field to searchable? Look in commerce manager, for the meta field sepecified in the mediachase.search.filters.config file. The meta field with the same name sould be set as searchable. This can also be done by code by adding the Searchable attribute to the property.
When this has been set, rerun the index with the "Full Search Index" job.
I have marked the meta fields as searchable and rebuilt the index but still no luck.
[Searchable]
[IncludeInDefaultSearch]
public virtual string ISBN13 { get; set; }
fields with these two attributes makes it search able in CMS Editor mode (Catalog window)
/K
[Searchable]
[IncludeInDefaultSearch]
public virtual string ISBN13 { get; set; }
fields with these two attributes makes it search able in CMS Editor mode (Catalog window)
/K
Still having the same issue. I can see values for the Facet fields in Lucene index but facets are not being returned. I am using Luke to have a look at the luncene index.
Syed: Can you create a support case on this, and send the code to the support team?
I think I found the solution.
The search criteria object I was creating using "new CatalogEntrySearchCriteria()" was always sending query without facets to lucene helper function.
Switching to SearchFilterHelper factory class made it start working.
SearchFilterHelper helper= new SearchFilterHelper();
// Create Entry Criteria
CatalogEntrySearchCriteria criteria = helper.CreateSearchCriteria("",new SearchSort(""));
Thanks,
Syed
I am on Commerce Manager 7.5, using Lucene as search provider. I want to have facets returned by the search provider. I checked that the meta fields are included in the search index. I also matched the field names in the search.filters.config file but still no luck. What am I missing?
I am using the code below