"Minor" Search limitations in Office 365

If you’re a SharePoint developer like me, you probably find the Query Throttle in SharePoint an absolute pain. This is a feature where, under an unnecessarily complicated set of conditions, if you try to ask for too many list items in one query, SharePoint refuses.

Now, while I understand why such a limit is necessary – albeit I’d rather it was simpler – it is something of a problem. For example, multi-choice columns cannot be indexed. If you want to query such a column, and there are more than 5000 items in the list, we’ll, you’re outta luck.

That situation is surprisingly common in Document Management systems.

Over the years my colleagues and I have taken to using SharePoint’s search in such scenarios. There are trade-offs – search latency, having to develop your own UI, etc. – but it works, and we can’t be the only ones doing this – there was a codeplex project for this in 2010.

Fine, it works nicely. Except when you’re using Office 365. Then there are some limitations. Hidden away in this page are two quite serious ones:

In SharePoint Online, when you create a new managed property, it will have some limitations. For example, the property can only be of type Text or Yes/No, and it can’t be refinable or sortable.

Yup, no sorting for you, and no refinement panel goodness. And no search queries against date ranges. You can potentially search for a particular date, but not ‘between 1st Feb and 23rd March’.

And that’s a real shame – that kind of advanced query against metadata in SharePoint is powerful. To me, it’s what sets SharePoint search apart from a, dare I say it, more Google-like search. Sorting and refining is something that excites customers, ‘cos it helps them find their content. I get that there are probably technical (i.e. performance) reasons that these options aren’t available, but it does make O365 search feel hamstrung. I do hope that these limitations will be removed in the future.

And for now, I’ll try and avoid having requirements that involve using search (to avoid query throttling, for example) and sorting my results.

"Minor" Search limitations in Office 365

2 thoughts on “"Minor" Search limitations in Office 365

  1. Hi Andy,

    This is what the “RefinableString”, “RefinableInt” etc. properties are for – they are provisioned for you and preset to allow sorting/refining. Instead of creating a new Managed Property, map one of these existing ones to your Crawled Property (and optionally give it an Alias, so you can refer to it as “MyColour” instead of “RefinableString00″).

    There are 50 “RefinableString” properties, and less for the other data types, but that’s often enough.

    The “Refine on managed properties” section on http://office.microsoft.com/en-us/office365-sharepoint-online-enterprise-help/manage-the-search-schema-in-sharepoint-online-HA103628856.aspx has more details.

    Cheers,

    Chris.

    Like

  2. Ah! I did wonder what the heck all those properties were for, and 50 would be certainly enough – indeed, I only need 1 Date column.

    I’ll give that a go, that’d be great if it works – though I now really fail to see why I can’t create my own properties, rather than having to be given this strange set of 50? I presume that is to prevent abuse by customers creating too many managed properties of the ‘wrong’ types?

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s