none
Can we sort on two managed properties at a time in OOB of fast search for sharepoint 2010?? RRS feed

  • Question

  • Hi,

    Is  there anyway that we can sort on two managed properties at a time in OOB???If Yes,how can we set the priorities for the sorting?

    I know that we can do it through keyword class and Query web serivce but not sure how to do it OOB??

    Thanks,

    Altaf.


    ALtaf Ali
    Thursday, October 6, 2011 9:05 AM

Answers

  • Hi,

    Out of the box this is not possible. You would have to for example override the CoreResults web part to incorporate something like this.

    Regards,
    Mikael Svenson 


    Search Enthusiast - SharePoint MVP/WCF4/ASP.Net4
    http://techmikael.blogspot.com/
    • Marked as answer by POCCoder Thursday, October 6, 2011 11:31 AM
    Thursday, October 6, 2011 9:54 AM

All replies

  • Hi,

    Out of the box this is not possible. You would have to for example override the CoreResults web part to incorporate something like this.

    Regards,
    Mikael Svenson 


    Search Enthusiast - SharePoint MVP/WCF4/ASP.Net4
    http://techmikael.blogspot.com/
    • Marked as answer by POCCoder Thursday, October 6, 2011 11:31 AM
    Thursday, October 6, 2011 9:54 AM
  • Thanks Svenson for the quick reply. Thanks, Altaf.
    ALtaf Ali
    Thursday, October 6, 2011 11:36 AM
  • Hi Scevenson,

         In FS4SP search center site, we get the results based on Sort by Relevancy, Sort by date.

    Here I need to combine both relevancy and date.

    The keyword is "hhh".

    Now how I want is if I click "Sort By Date": results should come based on date and then sorting should happen based on whether that keyword is present in title.

    Scenario:- If there are three documents

    Doc 1: Title:-abc Body:- "hello hhh" date:-10th September

    Doc 2:Title:-hhh Body:- "hello" date:-11th September

    Doc 3:Title:-jjj Body:- "hello hhh" date:-12th September

    If I type "hhh", If I click Sort by date:- results should be in order doc3,doc2,doc1 based on date.

    But since hhh is there in title, document doc2 should come first.

    Hence the requirement is If i click sort by date:- now results should be in order doc2, doc 3,doc1..

                 Please help me in this issue.


    Sharath Kumar R

    Thursday, September 20, 2012 1:40 PM
  • Hi,

    Order by date will be a hard sort. If you order by relevance the date is already being taken into account, but it will diminish over time as the last modified date gets older compared to todays date.

    Seems to me you want a custom rank model where hits in the title is what counts, and not sort on date. Is this correct? And the possible sort on something else. An yes, you can set a primary and secondary sort key. First sort on A, then if equal, sort on B.

    Thanks,
    Mikael Svenson


    Search Enthusiast - SharePoint MVP/MCT/MCPD
    http://techmikael.blogspot.com/
    Author of Working with FAST Search Server 2010 for SharePoint


    Thursday, September 20, 2012 2:00 PM
  • Hi Svenson,

           Thanks for ur reply.

          Yes Svenson. Please say me a method about how to sort on A and then on B. 

    If there are three documents modified in same date and then if I click "Sort By date", the keyword there in title should come first. Please help me how to do this.


    Sharath Kumar R


    Friday, September 21, 2012 8:03 AM
  • Hi,

    You would need custom code to do this where you add multiple fields for the SortList property which you can find in for example the KeywordQuery class.

    You would first sort on date, then sort on a rank profile which values hits in the title a lot. I have an example in Chapter 10 of the book in my signature which does something similar.

    Thanks,
    Mikael Svenson


    Search Enthusiast - SharePoint MVP/MCT/MCPD
    http://techmikael.blogspot.com/
    Author of Working with FAST Search Server 2010 for SharePoint

    Friday, September 21, 2012 8:27 AM
  • Hi Svenson,

       Can you please explaion us in detail about how you are able to sort on date and then on rank profile of which value hits a title a lot.  Thanks!


    Sharath Kumar R

    Tuesday, September 25, 2012 11:35 AM
  • Hi,

    See my answer to your question at http://social.technet.microsoft.com/Forums/en-US/fastsharepoint/thread/e328a621-f25d-4161-a84c-016571ad3cfd

    Thanks,
    Mikael Svenson


    Search Enthusiast - SharePoint MVP/MCT/MCPD - If you find an answer useful, please up-vote it.
    http://techmikael.blogspot.com/
    Author of Working with FAST Search Server 2010 for SharePoint

    Tuesday, September 25, 2012 11:39 AM
  • Hi,

    Thanks a lot Svenson..


    Sharath Kumar R

    Wednesday, September 26, 2012 5:34 AM
  • Hi Svenson,

         Please help me in how to achieve this (sorting two manage properties) by overriding core results webpart. Thanks!


    Sharath Kumar R

    Monday, October 1, 2012 12:49 PM