This project demonstrates some gotchas when using Oak Search & Indexing.
First you must install the codebase into your local AEM instance.
mvn clean install sling:install
There are five tests which demonstrate various challenges in defining Oak indexes.
Follow the instructions below to run the tests. Each test is expected to fail until you make the changes described in the test file.
- Run Command:
mvn clean verify -Prun-it,test-01
- Test: src/test/java/com/danklco/blog/oaksearch/it/tests/OakSearchTest_01_QueryNodeType.java
- Index Definition: src/test/resources/01_QueryNodeType/indexDef.json
- Run Command:
mvn clean verify -Prun-it,test-02
- Test: src/test/java/com/danklco/blog/oaksearch/it/tests/OakSearchTest_02_QueryProperties.java
- Index Definition: src/test/resources/02_QueryProperties/indexDef.json
- Run Command:
mvn clean verify -Prun-it,test-03
- Test: src/test/java/com/danklco/blog/oaksearch/it/tests/OakSearchTest_03_Ordering.java
- Index Definition: src/test/resources/03_Ordering/indexDef.json
- Run Command:
mvn clean verify -Prun-it,test-04
- Test: src/test/java/com/danklco/blog/oaksearch/it/tests/OakSearchTest_04_Nulls.java
- Index Definition: src/test/resources/04_NullProperties/indexDef.json
- Run Command:
mvn clean verify -Prun-it,test-05
- Test: src/test/java/com/danklco/blog/oaksearch/it/tests/OakSearchTest_05_Permissions.java