Is there a search API for getting a short text containing the search terms so that I can use to display to users?
R – Is Sharepoint 2003/MOSS 2007 able to return a document snippet containing search terms
full-text-searchmosssharepoint
Related Topic
- SharePoint (MOSS 2007) remove user
- R – Highlighting search terms in an MS Word document
- Vim clear last search highlighting
- R – MOSS 2007 Search Center. Altering Scope of a Search
- Mysql – Comparison of full text search engine – Lucene, Sphinx, Postgresql, MySQL
- R – programmatic way to influence the rank of search results in MOSS (Sharepoint) 2007
- R – Aggregating news with Sharepoint MOSS 2007
- R – Changing ONET.XML set properties after provisioning in Sharepoint/MOSS 2007
Best Answer
There's properties that can be returned from a search - HitHighlightedSummary & HitHighlightedFields.
If you're building a search in code you can request these in the same way as other fields - they should contain what you're after.
If you take a look at the configuration for the standard results web part, you can see there's an XML property which is the fields requested which includes these by default.