Wednesday, February 26, 2014

FQL field search with a question mark '?'

I was trying to return a item by a query to the path


I could search for http://sometext/page.aspx or id=123 but the question mark would cause the query not to find the item.

The solution:
replace the ? with a space.  apparently the ? is a noise word and replaced with a space during indexing.  It is an odd issue, since the ? is show on the qr server.

such is life

Monday, February 24, 2014

Adding Controls to the Additional Page Head in Sharepoint 2010

I wanted to add a control that would add some html to site collection administration pages.  These pages are not directly editable.

I looked at adding controls to the additional page head tag within the master page.  The control in the master page looks like

<asp:ContentPlaceHolder id="PlaceHolderAdditionalPageHead" runat="server"/>

To the project add a new module

edit the elements.xml and add in your control

 <Control Id="AdditionalPageHead" ControlSrc="~/_CONTROLTEMPLATES/yourcontrol" Sequence="15100" xmlns="" />

The sequence number is just a random number.

Now your control will be added to all pages that use the masterpage.  Just place some conditional logic in your control looking for the site collection addition page and there you have it

Wednesday, February 12, 2014

Windows 2008 R2 and fast search for sharepoint SAM worker dead issue

First few days on the job and I was banging my head against the wall.  I was seeing a communication error  between the content ssa and the sam worker.  In the log files I saw the following message

AdminLibrary.dll:MakeRemoteRequestToWorker - Unable to complete request to sam worker node

But the samworker was running when doing a nctrl status.  But when looking further and doing a

get fastsearchsecurityworkernode

the process was dead

It is caused by a loopback check during authentication in windows 2008r2.  It will happen when you are running fast on a standalone machine.

To fix the issue run

setspn -A http/ domain\username

Live and learn