2010, Development Blog, SharePoint
XML Structure for FAST Search Core Results Web part
If you’re an XSLT guru, you need to know the XML structure you’re working with. Getting into the guts of SharePoint isn’t always a walk in the park, but Microsoft has made it easy to view the XML structure in FAST.
You basically have 2 options:
- Navigate to your Search Center’s Result page (you can do a search to get there quickly)
- Place the page in Edit Mode (Site Actions > Edit Page)
- Open the Web Part Properties for the Search Core Results web part. (little arrow on the right, Edit Web Part)
- Under the Display Properties heading, uncheck the Use Location Visualization checkbox (this enables the XSL Editor button)
- Hit XSL Editor…
- Highlight everything in the popup and save it in a text file (you need to keep this as a starting point for XSLT customization anyway)
- Replace it with the following piece of XSLT:
- Hit OK on the Web Part Properties, and save the page.
You should see something similar to this structure (I replaced the data with ‘….’ so it’s easier to view)):
.... .... .... .... .... .... .... .... .... .... ........ .... ........ .... .... .... .... .... .... .... .... .... .... .... ... ...
This is a pretty simple hierarchy, but if you don’t know what fields are called, you’re still stabbing in the dark with your XSL Transform. Knowing the structure and what fields are called is half the battle.
Here’s a link to the full article: http://msdn.microsoft.com/en-us/library/ms546985.aspx
You can view Fetched Properties (under the Display Properties heading) – just click into the field, CTRL-A (select all), and paste it into an editor. This is easier to read if you’re purely interested in what FAST Search is pulling in, but less helpful in that you do not get sample data, or the nested hierarchy. It should look something like this:
Comments are closed