Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


These support forums are now closed for new topics and comments.
Please head on over to http://eureka.ucommerce.net/ for support.

  • Business Media 6 posts 26 karma points
    May 26, 2014 @ 16:15
    Business Media
    0

    faceted on search page

    Hi,

    I just installed UCommerce for umbraco on my fresh umbraco 7.1.3 install.
    I Also installed the demo shop. What i'm trying to do is get faceted search available on the free search page.
    On the category pages it works right out of the box, but for free search it doesn't.

    Can anybody help me out?

    Got my inspiration of: http://www.bikersbest.dk/en-gb/search#!/Term=/chain

    regards,

    Jeroen

  • Morten Skjoldager 440 posts 1499 karma points
    May 27, 2014 @ 14:52
    Morten Skjoldager
    0

    Hi Jeroen,

    What you need to do is use a FacetedQueryable from the SearchLibrary. You can specify the initial filter with type safe linq and then go .ToFacets() to get the facets or ToList() to get products. 

    Docs on the matter can be found here: http://docs.ucommerce.net/ucommerce/v6/getting-started/search-foundation/search-library.html

    Hope that helps.

    Regards

    Morten

  • Jeroen Ribbink 21 posts 50 karma points
    May 27, 2014 @ 15:18
    Jeroen Ribbink
    0

    Hi Morten,

    Thanks for responding quickly. I'll try to figure it out with your tips.

    regards,

    Jeroen

  • Jeroen Ribbink 21 posts 50 karma points
    May 28, 2014 @ 14:52
    Jeroen Ribbink
    0

    Good afternoon,

    i've tried to develop a sollution for my problem. It hasn't be succesful. it seems that ravendb couldn't understand my lambda expression.

    I was trying to do a free search with a keyword, so I build a lambda expression to filter the result of FacetedQueryable(). this is what is was trying to do:

    var query = SearchLibrary.FacetedQuery().Where(
                    p=>p.VariantSku == null
                                    && p.DisplayOnSite
                                    &&
                                    (
                                        (p.Sku.IndexOf(keyword) > -1)
                                        || (p.Name.IndexOf(keyword) > -1)
                                    )
                    );
    

    and also tried:

                var query = SearchLibrary.FacetedQuery().Where(
                    p=>p.VariantSku == null
                                    && p.DisplayOnSite
                                    &&
                                    (
                                        p.Sku.Contains(keyword)
                                        || p.Name.Contains(keyword)
                                    )
                    );
    

    With both implementation I got the error of ravendb that he could understand my expression.

    any idea what I might do wrong?

    Am I correct that UCommerce is offering development support to (paying)customers?

    Regards,

    Jeroen

  • Morten Skjoldager 440 posts 1499 karma points
    Jun 04, 2014 @ 16:51
    Morten Skjoldager
    1

    Hi, We've a buddy program for paying customers. That doesn't include development support though. That is a starter pack which you can read about here: http://www.ucommerce.net/en/support/starter-pack.aspx

    Why do you need to query on Sku ? 

Please Sign in or register to post replies

Write your reply to:

Draft