Have a question regarding the search functionality within AEM Assets. When conducting a search that returns say 100 assets, how are those assets sorted by default? For example, is it number of times that my search criteria appeared in each assets' entire metadata? Does AEM look at certain fields first before moving on to the entire schema (i.e. Title/Description first)?
Solved! Go to Solution.
The default sort order is decided on the basis of relevance score calculated by Lucene.
See https://lucene.apache.org/core/3_6_0/scoring.html for more info about Lucene scoring.
I checked with internal Adobe experts - they stated:
CALLER: com.day.cq.search.impl.builder.QueryImpl.executeXpath(QueryImpl.java:391)
QUERY: /jcr:root/content/dam//element(*, dam:Asset)[jcr:contains(., 'square')]
PLAN: [dam:Asset] as [a] /* lucene:damAssetLucene(/oak:index/damAssetLucene) +(full:jcr:content/metadata/dc:title:square^2.0 :fulltext:square) +:ancestors:/content/dam ft:("square") where (contains([a].[*], 'square')) and (isdescendantnode([a], [/content/dam])) */
Shameless plug for AEM Chrome Plug-in [1] … makes it really easy to data-mine this info.
[1] http://adobe-consulting-services.github.io/acs-aem-tools/aem-chrome-plugin/
The default sort order is decided on the basis of relevance score calculated by Lucene.
See https://lucene.apache.org/core/3_6_0/scoring.html for more info about Lucene scoring.
Views
Likes
Replies