locked
Provide pages with predefined search queries to the user? RRS feed

  • Question

  • Hi,

    I want to use FAST Search for SP 2010 together with SP 2010. Among other things I would like to provide the user a set of pages with predefined search queries inside.

    Example:

    • Show search results based on "Customer B"
    • Show search results based on "Customer B" in the last x days

    Thanks for input.

    Sven

    Sunday, February 19, 2012 9:08 AM

Answers

  • You can express this as an FQL query. You would need to extend the search results webpart to calculate a date query for the last x days. Your FQL would be something like:

    and(customer:microsoft, docdatetime:>2012-01-25)

    I'm not sure what you have tried and where you are stuck. Start by extending the default webparts and take it from there.


    Dan Gøran Lunde

    • Marked as answer by Sven W Thursday, February 23, 2012 9:15 PM
    Thursday, February 23, 2012 3:50 PM

All replies

  • You can express this as an FQL query. You would need to extend the search results webpart to calculate a date query for the last x days. Your FQL would be something like:

    and(customer:microsoft, docdatetime:>2012-01-25)

    I'm not sure what you have tried and where you are stuck. Start by extending the default webparts and take it from there.


    Dan Gøran Lunde

    • Marked as answer by Sven W Thursday, February 23, 2012 9:15 PM
    Thursday, February 23, 2012 3:50 PM
  • Thanks, that will give me a starting point ;-)
    Thursday, February 23, 2012 9:15 PM