AEM 6.1 OOB Search component | Community
Skip to main content
October 16, 2015
Solved

AEM 6.1 OOB Search component

  • October 16, 2015
  • 4 replies
  • 1802 views

In which order does OOB search component fetches the result??  like last modified or ascending order or descending or page creation date ?? I am so confused. :(

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

The above documentation is relevant for OOB search component as it uses GQL full text query language for querying the Lucene indexes -  https://jackrabbit.apache.org/api/1.5/org/apache/jackrabbit/commons/query/GQL.html

4 replies

Kunal_Gaba_
New Participant
October 16, 2015

The search results are ordered by the pseudo property "jcr:score" which is calculated by Lucene.  Whenever you do full text search, the results returned are scored according to their relevancy and all of it is done by Lucene under the hood. You can boost (impact the ranking)  the ranking of the nodes in the search results by configuring the Lucene index definitions with boost property. 

Check the following documentation - 

https://jackrabbit.apache.org/oak/docs/query/lucene.html#boost

http://lucene.apache.org/core/3_0_3/scoring.html

New Participant
October 16, 2015

lokesh waran wrote...

In which order does OOB search component fetches the result??  like last modified or ascending order or descending or page creation date ?? I am so confused. :(

 

I believe OOTB orders by best match, which is determined by the Lucene Index.

October 16, 2015

I believe OOB search component does not use AEM query builder. Correct me if I am wrong. So the above mentioned documentation works only with query builder and not search component. 

Kunal_Gaba_
Kunal_Gaba_Accepted solution
New Participant
October 16, 2015

The above documentation is relevant for OOB search component as it uses GQL full text query language for querying the Lucene indexes -  https://jackrabbit.apache.org/api/1.5/org/apache/jackrabbit/commons/query/GQL.html