[jira] [Created] (OAK-9194) oak-search-elastic: propertyIndex with nodeScopeIndex should be stored in :fulltext only

2020-09-02 Thread Fabrizio Fortino (Jira)
Fabrizio Fortino created OAK-9194:
-

 Summary: oak-search-elastic: propertyIndex with nodeScopeIndex 
should be stored in :fulltext only
 Key: OAK-9194
 URL: https://issues.apache.org/jira/browse/OAK-9194
 Project: Jackrabbit Oak
  Issue Type: Improvement
  Components: elastic-search, oak-search
Reporter: Fabrizio Fortino
Assignee: Fabrizio Fortino


A property with the following config
{code:java}
+ propA
propertyIndex=true
analyzed=false
nodeScopeIndex=true{code}
is currently analyzed in two places: _index.propA_ & _index.:fulltext_

We can avoid analyzing the former field to reduce index size and improve 
indexing performance.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Created] (OAK-9193) Allow to build Jcr with a PostValidationHook

2020-09-02 Thread Timothee Maret (Jira)
Timothee Maret created OAK-9193:
---

 Summary: Allow to build Jcr with a PostValidationHook
 Key: OAK-9193
 URL: https://issues.apache.org/jira/browse/OAK-9193
 Project: Jackrabbit Oak
  Issue Type: Improvement
  Components: jcr
Affects Versions: 1.32.0
Reporter: Timothee Maret


Oak store SPI exports a 
[PostValidationHook|https://github.com/apache/jackrabbit-oak/blob/trunk/oak-store-spi/src/main/java/org/apache/jackrabbit/oak/spi/commit/PostValidationHook.java]
 that extends CommitHook. According to the Javadoc, post validation hooks are 
meant to be executed after validation hooks. The [Jcr 
builder|https://github.com/apache/jackrabbit-oak/blob/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/Jcr.java]
 should allow specifying a 
[PostValidationHook|https://github.com/apache/jackrabbit-oak/blob/trunk/oak-store-spi/src/main/java/org/apache/jackrabbit/oak/spi/commit/PostValidationHook.java]
 to be placed after the built in ACL validations.

The following signature would be added to the Jcr class
{code:java}
public Jcr with(@NotNull PostValidationHook postValidationHook)
{code}
The provided hook would be included after the security provider hooks via the 
[MutableRoot|https://github.com/apache/jackrabbit-oak/blob/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/core/MutableRoot.java#L291].



--
This message was sent by Atlassian Jira
(v8.3.4#803005)