Support for Collections/Topics
------------------------------

This tests tries to make sure Solr-based queries can also be used with
Plone's "Collection" content type.  We'll use a testbrowser to created such
a stored search and then view it's matches.  First we need to activate Solr
support and reindex the site's content:

  >>> self.activateAndReindex()
  >>> self.setRoles(('Manager',))

  >>> browser = self.getBrowser()
  >>> browser.open('http://nohost/plone/')
  >>> browser.getLink('Collection').click()
  >>> browser.getControl(name='title').value = 'Foo'
  >>> browser.handleErrors = False
  >>> browser.getControl('Save').click()
  >>> query = [{'i': 'SearchableText',
  ...           'o': 'plone.app.querystring.operation.string.contains',
  ...           'v': 'new'}]
  >>> self.portal.foo.setQuery(query)
  >>> import transaction
  >>> transaction.commit()

  >>> browser.getLink('View').click()
  >>> browser.url
  'http://nohost/plone/foo/'
  >>> browser.contents
  '...Foo...
   ...News...Site News...
   ...News...Site News...'
