Add weighting to the query url to bring back more relevant results? RRS feed

  • Question

  • Hi everyone.

    Is there a possibility that I can send extra text through with a link that I created that can add weighting or document promotion to a query? For instance if I want to show results relevant to a certain group in SharePoint? I have already created the link and it works fine but I now have to bring back more relevant results to the lets say I have someone who is in sales and working for the Insurance department....and searches for forms....the results must show the short term sales insurance forms first? Something like "&weight="short term sales insurance" or something like that....??

    So everything comes down to using fql in the url? Can I do this??



    Tuesday, February 8, 2011 12:39 PM

All replies

  • You can create custom scopes with FAST which essentially are fql filters.

    If you have a managed property by the name of "department" the following scope would boost hits from departments ending in "sales" with 10000, thus forcing them to the top.

    New-SPEnterpriseSearchQueryScope -SearchApplication "Fast Query SSA" -Name ShortTermSales -Description "Short Term Sales Boost" -DisplayInAdminUI 1 -ExtendedSearchFilter 'xrank(department:ends-with("sales"), boost=10000)'

    Remember to change the SearchApplication name to suit your installation. You can find more information about scopes and fql at TechNet. You can add scopes to the query string url with the &s=ScopeName parameter.

    Mikael Svenson


    Search Enthusiast - MCTS SharePoint/WCF4/ASP.Net4 -
    Tuesday, February 8, 2011 2:07 PM
  • Hi Mikael

    Thank you for the reply...

    I think this would help me...but what I would like to know is if I can implement this on different parts of the Fast Search center...

    Let me explain the scenario..

    Lets say I have three users all in different groups


    Sales Management
    Sales Team
    Legal Management

    Now I have three different departments where department is a site column and managed property...


    Short Term Insurance
    Business Processes
    Member Services

    Then I have another site column which is also a managed property which is called category



    Now if user one in searches for forms...and he is in sales management he must see the sales forms which is in Short Term insurance first as he is working in sales in the Short Term insurance department...

    I hope this makes sense...?

    Now the info you have given me looks like it could work but how would I connect the scope to either the user or the group...? If I cannot do this I will create different search pages for the groups...could I then connect the scope to the page?



    Tuesday, February 8, 2011 4:32 PM
  • Hi Juran,

    you could also look into using document or site promotions in which can be tied to user context. This way you can create a context which matches your department and boost documents from the different libraries.

    Creating a user context is explained at

    Creating a document/site promotion at

    Attaching the promotion to the context at

    I haven´t tried this myself yet, but it seems to be a viable solution when you have structured your content according to url address hierarchies. You can also tie the promotions to a keyword, thus promoting forms when the user types "forms" etc. But if you want to promote all forms and not just one you need to have forms in a separate library hierarchy, eg. http://site/sales/forms and http://site/sales/templates

    Mikael Svenson


    Search Enthusiast - MCTS SharePoint/WCF4/ASP.Net4 -
    Tuesday, February 8, 2011 6:39 PM