Oak Lucene Indexing issue or partial values removal from multivalued property | Community
Skip to main content
Community Advisor
March 14, 2025

Oak Lucene Indexing issue or partial values removal from multivalued property

  • March 14, 2025
  • 2 replies
  • 547 views

We are encountering an issue related to full-text search and indexing. Here's the observed behavior:

We have a custom multi-valued property indexed for full-text search. Whenever tags are added—either to cq:tags or custom properties—we store the localized tag titles in this property. This approach is intended to enable search functionality for localized tag titles in Omnisearch.

When new tags are added, the multi-valued property is updated via our workflow process, and the newly added values are searchable both in asset search and through queries.

However, when a tag is removed, its corresponding localized value is also removed. Despite this, the asset still appears in search results, which is incorrect. The issue seems to be that the index is not reflecting this change, and the updated asset data is not being properly indexed after the tag removal.


As per our analysis the problem is that the removal of a tag and its localized value (or any new multivalued property) does not trigger the correct update in the search index, leading to incorrect search results.

For example, suppose we have an asset with the tag "summer" (cq:tags). In the corresponding multi-valued property, we store the localized tag title: "summer" in English and "verano" in Spanish. These localized titles are then searchable through Omnisearch, enabling users to search for "summer" or "verano."

When new tags are added, the multi-valued property is updated via our workflow process, and the newly added values are searchable both in asset search and through queries.

For instance, if a new tag "vacation" is added, the property will now include localized values like "vacation" in English and "vacaciones" in Spanish.

However, when a tag is removed, its corresponding localized value is also removed. For example, if the "summer" tag is removed, the localized values "summer" and "verano" should also be removed from the multi-valued property. Despite this, the asset still appears in search results when searching for "summer" or "verano", which is incorrect.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

narendiran_ravi
Level 6
March 14, 2025

Please refer to this documentation to investigate why the reindexing is not happening when the multivalued property is updated. Also, if possible please share the custom index config added for this property

Community Advisor
March 17, 2025

Thanks for the response @narendiran_ravi , I went through the documentation mentioned and everything seems OK. There are not a lot of assets on local as well and neither an overload of updates.

Index definition is

<<property>
jcr:primaryType="nt:unstructured"
analyzed="{Boolean}true"
name="jcr:content/metadata/<property>"
nodeScopeIndex="{Boolean}true"
propertyIndex="{Boolean}true"/>


This is added to damAssetLucene-11-custom-xx on cloud

 

kautuk_sahni
Community Manager
Community Manager
April 1, 2025

@shubhanshusi2 Did you find the suggestion helpful? Please let us know if you need more information. If a response worked, kindly mark it as correct for posterity; alternatively, if you found a solution yourself, we’d appreciate it if you could share it with the community. Thank you!

Kautuk Sahni