<?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 Re: searchService returns same nodeRef twice (duplicate index in solr)  in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/searchservice-returns-same-noderef-twice-duplicate-index-in-solr/m-p/9537#M4248</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is technically no need for a downtime during re-indexing. You can always create a new SOLR core to build a new index while you keep the old core around for continued search availability. Once the new SOLR core is done indexing, you can simply switch out the index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vincent, did you check your historical SOLR logs for any indexing errors? Often I find that index inconsistencies are the result of exceptions that people - for some reason - keep ignoring.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The 10 million documents in 2 days that Martin mentions sounds like a reasonable amount for a "standard" (non-optimised) system. There are a lot of factors that affect the duration, e.g. number/size of transactions, ACLs etc. The best I have seen without extreme resources / scaling is about 300.000 - 400.000 documents per hour.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Queries like =cm:name:"myFileName.txt" are DB-compatible and by default Alfresco is set to the query consistency TRANSACTIONAL_IF_POSSIBLE. Martin is correct that additional indices have to be created on the DB and unfortunately Alfresco by default does not do this unless you configure:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;system.metadata-query-indexes.ignored=false&lt;BR /&gt;system.metadata-query-indexes-more.ignored=false&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At BeeCon I did a &lt;A href="https://www.youtube.com/watch?v=D_C_x8i14H8" rel="nofollow noopener noreferrer"&gt;full session about transactional metadata queries&lt;/A&gt; for more information. (&lt;A href="http://beecon.buzz/2017/assets/files/E10/Making%20proper%20use%20of%20transactional%20metadata%20queries.pdf" rel="nofollow noopener noreferrer"&gt;slides&lt;/A&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Jun 2017 10:15:54 GMT</pubDate>
    <dc:creator>afaust</dc:creator>
    <dc:date>2017-06-16T10:15:54Z</dc:date>
    <item>
      <title>searchService returns same nodeRef twice (duplicate index in solr)</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/searchservice-returns-same-noderef-twice-duplicate-index-in-solr/m-p/9533#M4244</link>
      <description>Dear all,For some reason, we're&amp;nbsp;using a custom REST API to perform searches on repo (alf community 5.1.g). We discovered that "sometimes", this custom API returns&amp;nbsp;the same nodeRef more than once.Search code is below:&amp;lt;code&amp;gt; ResultSet resultSet = null;&amp;nbsp;List&amp;lt;NodeRef&amp;gt; results = null;&amp;nbsp;try{&amp;nbsp;&amp;nbsp;&amp;nbsp;</description>
      <pubDate>Wed, 14 Jun 2017 15:40:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/searchservice-returns-same-noderef-twice-duplicate-index-in-solr/m-p/9533#M4244</guid>
      <dc:creator>vincent-kali</dc:creator>
      <dc:date>2017-06-14T15:40:26Z</dc:date>
    </item>
    <item>
      <title>Re: searchService returns same nodeRef twice (duplicate index in solr)</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/searchservice-returns-same-noderef-twice-duplicate-index-in-solr/m-p/9534#M4245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had a similar problem with 5.0.?, there was also a JIRA for this&amp;nbsp;&lt;A class="link-titled" href="https://issues.alfresco.com/jira/browse/MNT-13767" title="https://issues.alfresco.com/jira/browse/MNT-13767" rel="nofollow noopener noreferrer"&gt;[MNT-13767] Using disjunction "OR" in CMIS query returns wrong number of results when SOLR 4 is used - Alfresco JIRA&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To get rid of the duplicates, you should reindex your repo (see JIRA) or use the fix option described in&amp;nbsp;&lt;A class="link-titled" href="http://docs.alfresco.com/community/concepts/solr-index-fix.html" title="http://docs.alfresco.com/community/concepts/solr-index-fix.html" rel="nofollow noopener noreferrer"&gt;Troubleshooting Solr Index | Alfresco Documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If your system creates new duplicates,&amp;nbsp;you could try an update to a newer version - if not bound to the older version for some reason.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jun 2017 16:18:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/searchservice-returns-same-noderef-twice-duplicate-index-in-solr/m-p/9534#M4245</guid>
      <dc:creator>mehe</dc:creator>
      <dc:date>2017-06-15T16:18:11Z</dc:date>
    </item>
    <item>
      <title>Re: searchService returns same nodeRef twice (duplicate index in solr)</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/searchservice-returns-same-noderef-twice-duplicate-index-in-solr/m-p/9535#M4246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;The repo contains millions of documents.... It may takes days for a complete reindexing ? Do you have any benchmark on this ?&lt;/P&gt;&lt;P&gt;Is&amp;nbsp;solr available for query during the reindex period&amp;nbsp;? Does alfresco repo have to retransform the whole content to post to solr ? (which would be unacceptable during production)&lt;/P&gt;&lt;P&gt;I also noticed that some duplicate are cleaned automatically by SOLR.... Is there any background process in solr that clean this kind of errors ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I finally found that NodeBrowser/Standard search&amp;nbsp;API&amp;nbsp;is performing DB query, while my code is performing SOLR query (that's why I get some duplicate in my API, but not in NodeBrowser).&amp;nbsp;&lt;/P&gt;&lt;P&gt;Even when setting query consistency to "&lt;SPAN&gt;QueryConsistency.&lt;/SPAN&gt;&lt;SPAN&gt;TRANSACTIONAL_IF_POSSIBLE" in my code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I was expecting&amp;nbsp;a query like =cm\:name:myFileName.txt to go to&amp;nbsp;DB instead&amp;nbsp;of SOLR.... Am'I wrong ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks for your comments/advises&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Vincent&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jun 2017 08:04:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/searchservice-returns-same-noderef-twice-duplicate-index-in-solr/m-p/9535#M4246</guid>
      <dc:creator>vincent-kali</dc:creator>
      <dc:date>2017-06-16T08:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: searchService returns same nodeRef twice (duplicate index in solr)</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/searchservice-returns-same-noderef-twice-duplicate-index-in-solr/m-p/9536#M4247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solr reindexing is a "destructive" operation (until now) &amp;nbsp;- you have to delete (I always rename the index dir, in case of the planned downtime is too short to rebuild, so I can switch back to the old index) the index and restart alfresco. Then alfresco will rebuild the index and, as you feared - also the content will be transformed and reindexed. In the newer alfresco versions, there &amp;nbsp;are a kind of "content segments" in the solr data store maybe there is a way to prevent the indexing process from the necessity of transforming every document again - but I don't know.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Solr is available during reindex, but you can only "see" the data that is already processed - and solr is under heavy load while reindexing. So you should only reindex when nobody is working with alfresco (Weekend, planned downtime)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Auto cleaning? Don't know... &amp;nbsp; But you can use the described "fix" option as a first try to eliminate the duplicates, that won't be so harmful to your users - but on big repos I do that at night.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reindexing time is also dependent on the size of your content and your server hardware. Reindexing took me 2 days for a repo with about 10.000.000 Docs at 3TB content. You can tune your reindexing process with solrcore.properties (batch size, number of threads and so on). (storing the index on SSD?)&lt;/P&gt;&lt;P&gt;If there is no possibility for a reindex on your production system, you can clone your system from a backup (DB and content), reindex the clone and transfer the new index to your production system and switch solr to the new index (stop solr, move the index data dir and start it again). The index tracker will recognize the missing transactions and catchup in a short(er) time. This minimizes your alfresco downtime.&lt;/P&gt;&lt;P&gt;You can also use the clone for a benchmark of your reindexing process.&lt;/P&gt;&lt;P&gt;Are you using the same tomcat for alfresco and solr?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I think queries like&amp;nbsp;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;=cm\:name:myFileName.txt&amp;nbsp;&lt;/SPAN&gt;are FTS (Fulltext) queries that always operate on the index - but I haven't tried the&amp;nbsp;&lt;SPAN style="color: #727174; border: 0px;"&gt;QueryConsistency.&lt;/SPAN&gt;&lt;SPAN style="color: #727174; border: 0px;"&gt;TRANSACTIONAL_IF_POSSIBLE&amp;nbsp;&lt;/SPAN&gt;until know. I thought this had to be configured in the repo too and some extra db indexes have to be created when using this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jun 2017 08:38:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/searchservice-returns-same-noderef-twice-duplicate-index-in-solr/m-p/9536#M4247</guid>
      <dc:creator>mehe</dc:creator>
      <dc:date>2017-06-16T08:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: searchService returns same nodeRef twice (duplicate index in solr)</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/searchservice-returns-same-noderef-twice-duplicate-index-in-solr/m-p/9537#M4248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is technically no need for a downtime during re-indexing. You can always create a new SOLR core to build a new index while you keep the old core around for continued search availability. Once the new SOLR core is done indexing, you can simply switch out the index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vincent, did you check your historical SOLR logs for any indexing errors? Often I find that index inconsistencies are the result of exceptions that people - for some reason - keep ignoring.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The 10 million documents in 2 days that Martin mentions sounds like a reasonable amount for a "standard" (non-optimised) system. There are a lot of factors that affect the duration, e.g. number/size of transactions, ACLs etc. The best I have seen without extreme resources / scaling is about 300.000 - 400.000 documents per hour.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Queries like =cm:name:"myFileName.txt" are DB-compatible and by default Alfresco is set to the query consistency TRANSACTIONAL_IF_POSSIBLE. Martin is correct that additional indices have to be created on the DB and unfortunately Alfresco by default does not do this unless you configure:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;system.metadata-query-indexes.ignored=false&lt;BR /&gt;system.metadata-query-indexes-more.ignored=false&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At BeeCon I did a &lt;A href="https://www.youtube.com/watch?v=D_C_x8i14H8" rel="nofollow noopener noreferrer"&gt;full session about transactional metadata queries&lt;/A&gt; for more information. (&lt;A href="http://beecon.buzz/2017/assets/files/E10/Making%20proper%20use%20of%20transactional%20metadata%20queries.pdf" rel="nofollow noopener noreferrer"&gt;slides&lt;/A&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jun 2017 10:15:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/searchservice-returns-same-noderef-twice-duplicate-index-in-solr/m-p/9537#M4248</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2017-06-16T10:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: searchService returns same nodeRef twice (duplicate index in solr)</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/searchservice-returns-same-noderef-twice-duplicate-index-in-solr/m-p/9538#M4249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;Hi Axel,&lt;/P&gt;&lt;P class=""&gt;Have you tried indexing a new core with a big repo and solr4? I had a very slow, nearly inaccessible system when trying this with the users online. Also the libreoffice conversion was a bottleneck (no jod converter on community).&lt;/P&gt;&lt;P class=""&gt;So I decided to use a planned downtime...&lt;/P&gt;&lt;P class=""&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class=""&gt;Regards,&lt;/P&gt;&lt;P class=""&gt;Martin&lt;/P&gt;&lt;P class=""&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jun 2017 10:27:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/searchservice-returns-same-noderef-twice-duplicate-index-in-solr/m-p/9538#M4249</guid>
      <dc:creator>mehe</dc:creator>
      <dc:date>2017-06-16T10:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: searchService returns same nodeRef twice (duplicate index in solr)</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/searchservice-returns-same-noderef-twice-duplicate-index-in-solr/m-p/9539#M4250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;B&gt;Martin Ehe&lt;/B&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In these cases, I reindex in parallel with a dedicated SOLR barebone machine (with as many resources as possible CPU, SSD disks for a shorter reindex time) and alfresco.war in it, for doing the indexation process in the local machine only disturbing database resources (but no other Alfresco nodes and the corresponding service). When indices are ready, I copy them to the original SOLR machine(s), using the barebone machine as the replacement in the&amp;nbsp;SOLR balancer (if any). So downtime it's not strictly necessary. But it may be a long time depending on your CPU and disk resources.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Autocleaning is not the case exactly, but reindexing always obtains a healthier index, without "deleted files" that may degrade your searches and have bigger indices size.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;--C.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jun 2017 12:19:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/searchservice-returns-same-noderef-twice-duplicate-index-in-solr/m-p/9539#M4250</guid>
      <dc:creator>cesarista</dc:creator>
      <dc:date>2017-06-16T12:19:37Z</dc:date>
    </item>
    <item>
      <title>Re: searchService returns same nodeRef twice (duplicate index in solr)</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/searchservice-returns-same-noderef-twice-duplicate-index-in-solr/m-p/9540#M4251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;Hi&amp;nbsp;&lt;A _jive_internal="true" class="jive-link-profile-small jive_macro jive_macro_user" href="https://community.alfresco.com/people/cesarista" rel="nofollow noopener noreferrer"&gt;Cesar Capillas&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P class=""&gt;Thank you for this recommendation! I was able to reindex only enterprise systems without downtime, having a spare Solr/alfresco.war node.&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;I didn't dare to spin up a second node in the community version.&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;So the proposed setup would be:&lt;/P&gt;&lt;P class=""&gt;- temporary server with alfresco.war (from prod system, in case there are models applied) and Solr&lt;/P&gt;&lt;P class=""&gt;- connect the temporary server to prod DB and prod filesystem&lt;/P&gt;&lt;P class=""&gt;- reindex on temp system&lt;/P&gt;&lt;P class=""&gt;Do I have to take care of disabling some cleanup jobs or something like this?&lt;/P&gt;&lt;P class=""&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jun 2017 12:31:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/searchservice-returns-same-noderef-twice-duplicate-index-in-solr/m-p/9540#M4251</guid>
      <dc:creator>mehe</dc:creator>
      <dc:date>2017-06-16T12:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: searchService returns same nodeRef twice (duplicate index in solr)</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/searchservice-returns-same-noderef-twice-duplicate-index-in-solr/m-p/9541#M4252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, I did It for enterprise edition. Not sure if applies exactly for Community edition.&lt;/P&gt;&lt;P&gt;--C.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jun 2017 12:42:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/searchservice-returns-same-noderef-twice-duplicate-index-in-solr/m-p/9541#M4252</guid>
      <dc:creator>cesarista</dc:creator>
      <dc:date>2017-06-16T12:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: searchService returns same nodeRef twice (duplicate index in solr)</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/searchservice-returns-same-noderef-twice-duplicate-index-in-solr/m-p/9542#M4253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok, on Enterprise Systems I always use 2 solr nodes with alfresco in the cluster and don't have a downtime when reindexing one of the machines - conversion of documents to text is also better on enterprise versions, because they can scale the libreoffice conversion via jod converter.&lt;/P&gt;&lt;P&gt;The original question was in context of alfresco 5 community, which has no cluster option.&lt;/P&gt;&lt;P&gt;But the scenario could work with community, even if it's not cluster aware, because the index-tracker just asks the db about the transactions and reindexes metadata and reads content... &amp;nbsp;have to test that... &amp;nbsp;would make the clone unnecessary... hmmm...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;B&gt;Axel Faust&lt;/B&gt;‌ have you ever tried something like &lt;B&gt;Cesar Capillas&lt;/B&gt;&amp;nbsp;proposed for enterprise&amp;nbsp;on the community edition? Or is there an easier way (besides the extra core) &amp;nbsp;(could be a poor mans solr cluster &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;)&lt;/P&gt;&lt;P&gt;Is it possible to set the "second" alfresco in readonly mode and nevertheless do a full solr reindex?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jun 2017 13:00:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/searchservice-returns-same-noderef-twice-duplicate-index-in-solr/m-p/9542#M4253</guid>
      <dc:creator>mehe</dc:creator>
      <dc:date>2017-06-16T13:00:03Z</dc:date>
    </item>
    <item>
      <title>Re: searchService returns same nodeRef twice (duplicate index in solr)</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/searchservice-returns-same-noderef-twice-duplicate-index-in-solr/m-p/9543#M4254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no difference between Enterprise and Community Edition regarding the approach of using a separate core (on same system or a separate SOLR does not matter either). Actually, Community Edition is way more flexible here due to the SOLR licensing for Enterprise.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The conversion via JODConverter is not "better" per se, e.g. it is not faster in any way. The only improvement it brings is that JODConverter can be used to utilise parallel instances of LibreOffice and helps with LibreOffice process health by restarting the processes automatically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Setting Alfresco in 100% read-only mode is impossible unless you use a DB user with only read-access privileges. There are various code pieces during startup that overrule any read-only setting configured via alfresco-global.properties (e.g. the default transaction mode which you can set). And I assume those functions will fail if you use a database user with read-only access. But it is possible to have a 98% read-only mode Alfresco that is shielded from any user requests that supports only SOLR. A couple of my customers are doing that.&lt;/P&gt;&lt;P&gt;In Community Edition you'd either have to use a 3rd-party clustering module to ensure its caches are consistent or disable the core caches for nodes to make sure that you always read the consistent state from the database.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jun 2017 13:49:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/searchservice-returns-same-noderef-twice-duplicate-index-in-solr/m-p/9543#M4254</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2017-06-16T13:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: searchService returns same nodeRef twice (duplicate index in solr)</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/searchservice-returns-same-noderef-twice-duplicate-index-in-solr/m-p/9544#M4255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I thought the JOD converter is much faster, because you can use parallel instances of libreoffice conversions (as long as you have CPU cores, normally I use 4 to 6 instances on different ports if there many Office conversions to do). Since the Indexer is no more single threaded, it can use also the parallel instances to complex-convert to text, so I thought this would be better than the single libre office thread on community. Am I missing something or did I misunderstand the whole thing? &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jun 2017 14:09:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/searchservice-returns-same-noderef-twice-duplicate-index-in-solr/m-p/9544#M4255</guid>
      <dc:creator>mehe</dc:creator>
      <dc:date>2017-06-16T14:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: searchService returns same nodeRef twice (duplicate index in solr)</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/searchservice-returns-same-noderef-twice-duplicate-index-in-solr/m-p/9545#M4256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many thanks for&amp;nbsp;all your&amp;nbsp;advises and comments.&lt;/P&gt;&lt;P&gt;Axel, when you say "using a separate core on same system" do you mean running two separate solr cores running in parrallele and both connected&amp;nbsp;to a single alfresco instance ? Is it possible ? I've no clue how to do that...&lt;/P&gt;&lt;P&gt;The easiest way (but not the shortest one) for me would be to clone the full system as Martin says...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The link to your TMQ session looks very helpful, I'll check that !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jun 2017 14:32:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/searchservice-returns-same-noderef-twice-duplicate-index-in-solr/m-p/9545#M4256</guid>
      <dc:creator>vincent-kali</dc:creator>
      <dc:date>2017-06-16T14:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: searchService returns same nodeRef twice (duplicate index in solr)</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/searchservice-returns-same-noderef-twice-duplicate-index-in-solr/m-p/9546#M4257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am just saying that the transformation via JODConverter is not faster when comparing single-process to single-process. If you have the resources to parallelize JODConverter will of course be more efficient overall.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jun 2017 15:09:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/searchservice-returns-same-noderef-twice-duplicate-index-in-solr/m-p/9546#M4257</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2017-06-16T15:09:12Z</dc:date>
    </item>
    <item>
      <title>Re: searchService returns same nodeRef twice (duplicate index in solr)</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/searchservice-returns-same-noderef-twice-duplicate-index-in-solr/m-p/9547#M4258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I do mean running separate cores in parallel. Since a core is made up by the configuration folders in solrHome that containing a core.properties file, you can simply just duplicate one of the existing folders (e.g. workspace-SpacesStore or alfresco - depending on how they are called in your system), give it a distinct name and also configure its solrcore.properties to use a distinct storage location for its index. Next time you start SOLR, the new core config folder will be picked up and that core will start tracking Alfresco as per its configuration.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jun 2017 15:12:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/searchservice-returns-same-noderef-twice-duplicate-index-in-solr/m-p/9547#M4258</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2017-06-16T15:12:24Z</dc:date>
    </item>
    <item>
      <title>Re: searchService returns same nodeRef twice (duplicate index in solr)</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/searchservice-returns-same-noderef-twice-duplicate-index-in-solr/m-p/9548#M4259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use JOD converter on Community now.&lt;/P&gt;&lt;P&gt;Check this out&amp;nbsp;&lt;A class="link-titled" href="https://bitbucket.org/dgcloud/alfresco-remote-jodconverter" title="https://bitbucket.org/dgcloud/alfresco-remote-jodconverter" rel="nofollow noopener noreferrer"&gt;dgcloud / alfresco-remote-jodconverter — Bitbucket&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jun 2017 17:14:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/searchservice-returns-same-noderef-twice-duplicate-index-in-solr/m-p/9548#M4259</guid>
      <dc:creator>douglascrp</dc:creator>
      <dc:date>2017-06-16T17:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: searchService returns same nodeRef twice (duplicate index in solr)</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/searchservice-returns-same-noderef-twice-duplicate-index-in-solr/m-p/9549#M4260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;Hi Douglas,&lt;/P&gt;&lt;P class=""&gt;Cool project - looks like you are involved &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P class=""&gt;Thank you for the link, I'll give a try in the nearest future. I was looking for something like that for a long time.&lt;/P&gt;&lt;P class=""&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class=""&gt;cu, Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jun 2017 17:21:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/searchservice-returns-same-noderef-twice-duplicate-index-in-solr/m-p/9549#M4260</guid>
      <dc:creator>mehe</dc:creator>
      <dc:date>2017-06-16T17:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: searchService returns same nodeRef twice (duplicate index in solr)</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/searchservice-returns-same-noderef-twice-duplicate-index-in-solr/m-p/9550#M4261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, I am not involved in the project.&lt;/P&gt;&lt;P&gt;All I did was to test it, and it works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jun 2017 20:08:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/searchservice-returns-same-noderef-twice-duplicate-index-in-solr/m-p/9550#M4261</guid>
      <dc:creator>douglascrp</dc:creator>
      <dc:date>2017-06-16T20:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: searchService returns same nodeRef twice (duplicate index in solr)</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/searchservice-returns-same-noderef-twice-duplicate-index-in-solr/m-p/9551#M4262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK I'll test the method you mentionned, and potentially put solr on a new server for better performances.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW, I confirm&amp;nbsp;that some duplicate index in solr are automatically fixed (a query that return duplicate DBID day X will return single node a day after). Does it make sense for you ? (We're running massive bulk loading on this Platform).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;vincent&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jun 2017 10:06:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/searchservice-returns-same-noderef-twice-duplicate-index-in-solr/m-p/9551#M4262</guid>
      <dc:creator>vincent-kali</dc:creator>
      <dc:date>2017-06-19T10:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: searchService returns same nodeRef twice (duplicate index in solr)</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/searchservice-returns-same-noderef-twice-duplicate-index-in-solr/m-p/9552#M4263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SOLR index can fix itself for many issue without reindexing everything.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;localhost:8080/solr/admin/cores?action=FIX&amp;amp;wt=json&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;It should fix any duplicates, stuff that is missing, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also reindex nodes that match a query - or just do them one at a time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As &lt;A __default_attr="73554" __jive_macro_name="user" _jive_internal="true" data-id="73554" data-objecttype="3" data-type="person" href="https://community.alfresco.com/people/afaust" rel="nofollow noopener noreferrer"&gt;&lt;/A&gt;‌ has said, there is no reason you can not have more than one solr index built from alfresco.&lt;/P&gt;&lt;P&gt;With community you can define one index to use. The second one you are building will be ignored - it will add some extra load. Once you are done you just need to flip over the configuration and use the new index. There are no helpful admin screens to do this in community and you will have to stop and restart to pick up the property changes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If we can nail the route cause of anything like this it will be at the top of the fix list !&lt;/P&gt;&lt;P&gt;It really helps everyone if you can describe what you think the cause may be and raise it in ALF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In general the fraction of deleted nodes in the index is not an issue. The background merge operations in lucene consider this along with other stuff when they decide which segments to merge. Index optimisation is not required as at was years ago and you will in fact throw away some segment level caches. Lucene improved support for lots of segments quite some time ago. Yes a few things scale with doc count - not enough to worry about.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For index rebuild time it depends what you measure. In SOLR 4 and 6 metadata is indexed ahead of content. SOLR caches the docs it adds to the repository for a number of reasons - one is to avoid content transformation at rebuild. Sharing the content is not good as two indexes may both try to write to the cache - you would have to copy it -&amp;nbsp; I will give this some more thought. It would be easy enough to have one to use the cache read only for example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Sep 2017 09:07:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/searchservice-returns-same-noderef-twice-duplicate-index-in-solr/m-p/9552#M4263</guid>
      <dc:creator>andy1</dc:creator>
      <dc:date>2017-09-15T09:07:18Z</dc:date>
    </item>
  </channel>
</rss>

