[opencms-dev] Weird behavior when indexing resources on Solr

Daniel Seidel d.seidel at alkacon.com
Thu Jun 8 12:07:24 CEST 2017


Hi Ramón,

we experienced that problem as well. It may happen mainly with things 
you add/delete in lists. For some reason, a content that is deleted in 
OpenCms does not get deleted in the index in some situation. We fixed 
the problem, but it's not part of a released version yet. Getting rid of 
the content that is not in OpenCms, but left in the index, works either 
by rebuilding the index or importing a single content with exactly the 
same uuid as the one left over in the index.

You may still wonder why the content appears either not or twice. If you 
do not have a content with the same uuid or path in OpenCms, the search 
result will be filtered when permissions are checked.

Best, Daniel.


Am 08.06.2017 um 11:46 schrieb Ramon Gavira:
> I forgot to say that this behavior only happen with some resources 
> types and not with all resources.
>
> thanks
>
> El 08/06/2017 a las 10:55, Ramon Gavira escribió:
>> Weird behavior when indexing resources.
>>
>> Solr index contains two or more entries of the same resource, the 
>> scenario is this:
>>
>>   * We have one resource in offline project:
>>     */sites/xxx/es/estudios/.content/uahestudios/GR_Unico_G791.html*
>>   * The query
>>     *http://www.xxx.es/handleSolrSelect?fq=path:"/sites/xxx/es/estudios/.content/uahestudios/GR_Unico_G791.html"
>>     *brings back 2 documents (2 ids: a , b)
>>   * We delete the resource
>>   * Then
>>     *http://www.xxx.es/handleSolrSelect?fq=path:"/sites/xxx/es/estudios/.content/uahestudios/GR_Unico_G791.html
>>     *brings back 0 document as expected
>>   * Now, I create a new resource with the same path
>>   * Then
>>     *http://www.xxx.es/handleSolrSelect?fq=path:"/sites/xxx/es/estudios/.content/uahestudios/GR_Unico_G791.html
>>     *brings back 2 documents (2 ids: c, b)
>>
>>
>> Has anyone experimented something similar or has any clue??
>>
>> Thanks!
>> -- 
>> Ramón G.
>>
>>
>> _______________________________________________
>> This mail is sent to you from the opencms-dev mailing list
>> To change your list options, or to unsubscribe from the list, please visit
>> http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>>
>>
>>
>
> -- 
> Ramón Gavira
> */Ramón Gavira Sáenz/*
> /Socio Director de Operaciones y Proyectos/
>
> Mov: 687 543 161 | Tel: 954 45 72 75 |fax: 954 45 75 72
>
> Logotipo de Saga Soluciones
> QR Code de tarjeta de visita 	
>
> www.sagasoluciones.com <http://www.sagasoluciones.com>
>
> www.templatesaga.com <http://www.templatesaga.com/>
>
> Facebook <http://www.facebook.com/sagasoluciones> Twitter 
> <https://twitter.com/SagaSoluciones>
>
> Este correo electrónico y, en su caso, cualquier fichero anexo al 
> mismo, contiene información de carácter confidencial exclusivamente 
> dirigida a su destinatario o destinatarios. Queda prohibida su 
> divulgación, copia o distribución a terceros sin la previa 
> autorización escrita de SaGa Consulting. En el caso de haber recibido 
> este correo electrónico por error, se ruega notifóquese inmediatamente 
> esta circunstancia mediante reenvóo a la dirección electrónica del 
> remitente.
>
> The information in this e-mail and in any attachments is confidential 
> and solely for the attention and use of the named addressee(s). You 
> are hereby notified that any dissemination, distribution or copy of 
> this communication is prohibited without the prior written consent of 
> SaGa Consulting. If you have received this communication in error, 
> please, notify the sender by reply e-mail.
>
> Medio ambiente *Antes de imprimir este mensaje, asegúrate de que es 
> necesario. El medio ambiente está en nuestras manos*
>
> Medio ambiente *Wasting paper is harmful to the enviroment. Please 
> consider that before printing this message.*
>
>
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>
>
>
-- 
Kind Regards,
Daniel.
  
-------------------

Daniel Seidel

Alkacon Software GmbH & Co. KG - The OpenCms Experts
http://www.alkacon.com - http://www.opencms.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20170608/92e96cec/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: logo_saga.png
Type: image/png
Size: 4428 bytes
Desc: not available
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20170608/92e96cec/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ramon.png
Type: image/png
Size: 376 bytes
Desc: not available
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20170608/92e96cec/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: facebook.png
Type: image/png
Size: 1099 bytes
Desc: not available
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20170608/92e96cec/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: twitter.png
Type: image/png
Size: 1180 bytes
Desc: not available
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20170608/92e96cec/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: environment-icon.png
Type: image/png
Size: 1949 bytes
Desc: not available
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20170608/92e96cec/attachment-0004.png>


More information about the opencms-dev mailing list