Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

custom index for date

Avatar

Level 3

Hello

I basically want to create a custom index where in I want to run a query on entire repository ("/content" for example) and take only nodes (pages/contents) between two different dates.

Right now, its traversing the entire repository, can a custom index on date reduce, if so how can I do that ?

Thank you,

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Use Oak Utilities : Index Definition Generator  to generate appropriate index per your query

Tweak the index, if required per Jackrabbit Oak – Lucene Index 

View solution in original post

4 Replies

Avatar

Correct answer by
Community Advisor

Use Oak Utilities : Index Definition Generator  to generate appropriate index per your query

Tweak the index, if required per Jackrabbit Oak – Lucene Index 

Avatar

Level 10

In addition to Gaurav response - for those reading this thread and wanting to know more about Indexing - please watch this GEMS session - Best Practices for Indexing and Queries in AEM

Avatar

Level 3

thanks both,

how about new contents which got created, do they automatically be added in index or a reindex is needed everytime ?

Avatar

Community Advisor
Use 'nrt' for same or otherwise manually reindex based on your use case. 
- async = ['async', 'nrt']

Try to go through the docs to understand how it works - Jackrabbit Oak – Indexing