title: Alfresco: Lucene query by ID returns 2 rows
body: <p>I'm using Alfresco 3.4d and imported some nodes as well as created a few with <code>NodeService</code>. Today I noticed that a Lucene query by ID does sometimes return two rows instead of just one. Not all nodes show this kind of behavior.</p>
  
  <p>For example, when I execute the following Lucene query in the Alfresco Node Browser, I get the result shown below: <code>ID:"workspace://SpacesStore/96c0cc27-cb8c-49cf-977d-a966e5c5e9ca"</code></p>
  
  <p><img src="https://i.stack.imgur.com/sjgfv.png" alt="enter image description here"></p>
  
  <p>How is it even possible that a query by ID can return more than one row? I tried rebuilding the Lucene index, but it didn't help. When I delete the node, the query returns 0 rows. What can I do to remove those "ghost" nodes from the query result?</p>