none
Relevance - docs before folders RRS feed

  • Question

  • How can I tune the relevance so that

    • file share documents always come before file share folders with file share documents containing most hits highest in list
    • file share folders always come after file share documents with file share folders containing most hits highest in 2nd part of list

    Thanks, Shane

    Tuesday, July 26, 2011 2:46 PM

All replies

  • Hi Shane,

    It sounds like you are looking for what is known as XRANK operator in FSIA/ESP 5.3.  XRANK is available if you are using FQL.  It unfortunately is not available with the default web parts, and a custom web part would be needed to accomplish this.

    Thanks!

    Rob Vazzana | Microsoft | Enterprise Search Group | Sr Support Escalation Engineer |  http://www.microsoft.com/enterprisesearch 

    • Proposed as answer by Rob Va - MSFT Wednesday, July 27, 2011 9:28 PM
    • Unproposed as answer by Rob Va - MSFT Friday, July 29, 2011 12:53 PM
    Wednesday, July 27, 2011 9:24 PM
  • Hi Rob,

    I have an FQL-enabled core results web-part. Could I could I add some standard FQL code the 'Append Text To Query' option and if so, what would that syntax be?

    Thanks, Shane

    Thursday, July 28, 2011 3:24 PM
  • Hello Rob,

    Not entirely true that you need a custom web part. You can create a scope which adds the required fql. Somethink along the lines of:

    xrank(meta.collection:"sp", isdocument:string("true"), boost=10000)

    This would boost documents above folders (and above other SharePoint list items etc). The documents and folders with the most matches should most likely be sorted appropriately.

    Regards,
    Mikael Svenson 

     


    Search Enthusiast - SharePoint MVP/WCF4/ASP.Net4
    http://techmikael.blogspot.com/
    • Proposed as answer by Rob Va - MSFT Friday, July 29, 2011 12:53 PM
    Thursday, July 28, 2011 6:51 PM
  • Hi Mikael,

    Thanks for posting that!  We considered the possiblity of using scopes, but we were not certain it would be suitable to work in the desired way.  I am hoping Shane tries this out and lets us know his results!

    Thanks!

    Rob Vazzana | Microsoft | Enterprise Search Group | Sr Support Escalation Engineer |  http://www.microsoft.com/enterprisesearch 

    Friday, July 29, 2011 12:53 PM
  • Hi Rob,

    If you include other sources than file shares, then it probably won't work that well, as all SP items are pushed below files, and ranked in no particular item type order compared to file share folders. But if you limit it to files and folders from a file share it seemed to work perfect on my test image.

    And as I'm a programmer at heart, I would in most cases develop a custom search page after analyzing the search needs of different user groups. A general search page is ok, but it won't be right for everyone. I guess the threshold for moving from configuration to developing is shorter when you know how ;)

    Regards,
    Mikael Svenson 


    Search Enthusiast - SharePoint MVP/WCF4/ASP.Net4
    http://techmikael.blogspot.com/
    Friday, July 29, 2011 7:01 PM
  • Thanks for sharing those test results Mikael!  Sounds like this is a great method if one is limited to files and folders from a file share.

    Thanks!

    Rob Vazzana | Microsoft | Enterprise Search Group | Sr Support Escalation Engineer |  http://www.microsoft.com/enterprisesearch 

    Friday, July 29, 2011 9:41 PM