Expand my Community achievements bar.

SOLVED

AEM 6.1 OOB Search component

Avatar

Former Community Member

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. :(

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

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

View solution in original post

4 Replies

Avatar

Employee Advisor

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

Avatar

Level 8

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.

Avatar

Former Community Member

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. 

Avatar

Correct answer by
Employee Advisor

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