<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Is there any difference between SiteService methods listSites and findSites in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/is-there-any-difference-between-siteservice-methods-listsites/m-p/287059#M240189</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Could someone explain if there is any difference between the &lt;STRONG&gt;listSites&lt;/STRONG&gt; and &lt;STRONG&gt;findSites&lt;/STRONG&gt; methods in &lt;STRONG&gt;SiteService&lt;/STRONG&gt; when I want to list ALL sites:&lt;/P&gt;&lt;P&gt;List&amp;lt;SiteInfo&amp;gt; listSites = this.siteService.listSites(null, null);&lt;/P&gt;&lt;P&gt;List&amp;lt;SiteInfo&amp;gt; findSites = this.siteService.findSites("*", 0);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible&amp;nbsp;&lt;SPAN&gt;find&lt;/SPAN&gt;&lt;SPAN&gt;Sites not&amp;nbsp;to return sometimes all sites?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I used that method but when I created a new Site programatically before calling that method, it doesn't find it at all.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is it possible the result between listSites and findSites to be different in the above example?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Nov 2016 13:59:43 GMT</pubDate>
    <dc:creator>mbel</dc:creator>
    <dc:date>2016-11-14T13:59:43Z</dc:date>
    <item>
      <title>Is there any difference between SiteService methods listSites and findSites</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/is-there-any-difference-between-siteservice-methods-listsites/m-p/287059#M240189</link>
      <description>Hello,Could someone explain if there is any difference between the listSites and findSites methods in SiteService when I want to list ALL sites:List&amp;lt;SiteInfo&amp;gt; listSites = this.siteService.listSites(null, null);List&amp;lt;SiteInfo&amp;gt; findSites = this.siteService.findSites("*", 0);Is it possible&amp;nbsp;f</description>
      <pubDate>Mon, 14 Nov 2016 13:59:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/is-there-any-difference-between-siteservice-methods-listsites/m-p/287059#M240189</guid>
      <dc:creator>mbel</dc:creator>
      <dc:date>2016-11-14T13:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any difference between SiteService methods listSites and findSites</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/is-there-any-difference-between-siteservice-methods-listsites/m-p/287060#M240190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The main difference is in how the filter is applied. listSites only supports retrieving sites where the name / title starts with a specific value where as findSites supports a any-match use case. listSites is designed to make use of DB-based lookups whereas findSites may use index-based queries. This would explain the behaviour you are seeing - since SOLR indexing is asynchronous you may not immediately find a newly created site via findSites.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2016 14:39:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/is-there-any-difference-between-siteservice-methods-listsites/m-p/287060#M240190</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2016-11-14T14:39:44Z</dc:date>
    </item>
  </channel>
</rss>

