Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have two requirement is related to sharepoint2007 search

Want to sort the results by custom property, passing value to the parameter v1 did not help, is there any other way of doing it?

Want control the number of search results, say if i click on the X, it should display 10 items but if i click on Y should display 20 items? Is it possible to do without much of coding?

share|improve this question
    
You should be able to customise the data view webpart to do that.Try doing some googling –  Patrick Jan 18 '11 at 12:03
    
see this philwicklund.com/blog/Pages/… –  Patrick Jan 18 '11 at 12:06
add comment

2 Answers

Unfortunately no! Neither is possible without coding your own search results Web part or purchasing a third-party search add-on. The SharePoint search results Web part can only sort results by relevance or date - this is hard coded by Microsoft. I suspect this is because the SharePoint search engine is not really good at sorting by other managed properties. You can do it in code but you may experience strange behavior like missing results.

Changing the number of display results on the fly is also not possible without code as this is a Web part setting that can only be changed when you edit the Web part. However, with code you could probably add a hidden Web part that looks up the search results Web part on the page and adjusts the setting on each request without saving the change to the Web part.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.