We were executing a query with a property is not null in the logs we found that
it is showing it traversed 2000 nodes and suggesting "consider creating an index or changing the query"
Could you please suggest as how could i go with creating an index for this
You can create an index of your query on the Oak Index Definition Generator:
Generating custom indexes on queries:
The following documents can help with Oak Queries & Indexing, as well as following the Best Practices to create efficient indexes: