[ 
https://issues.apache.org/jira/browse/OAK-828?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13732101#comment-13732101
 ] 

Thomas Mueller commented on OAK-828:
------------------------------------

There are multiple way to implement it:

* Aggregate the data when indexing. This is what Jackrabbit 2.x does. The 
disadvantage is that if filtering is needed (see also JCR-3611), then this 
needs to be done at indexing time; and filtering at query time might be hard to 
achieve.

* Aggregate the data when querying. In this case, filtering can be implemented 
at query execution time.

Alex, Marcel and me yesterday briefly discussed the options and came to the 
conclusion that we try use the second approach for Oak, that is, aggregate the 
data when querying. One way to achieve that is by adding a new 
FulltextQueryIndex which does the filtering and aggregation. This index 
internally uses a FulltextQueryIndex similar to how the NodeTypeIndex uses a 
PropertyIndex. This "aggregating full-text index" can then be used for any kind 
of full-text index (Lucene, Solr,...). 

To allow more flexibility in aggregate filtering, we will extend the Filter 
interface to allow reading from the repository (using the Tree interface).

                
> Lucene support for index aggregates
> -----------------------------------
>
>                 Key: OAK-828
>                 URL: https://issues.apache.org/jira/browse/OAK-828
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: oak-lucene
>            Reporter: Alex Parvulescu
>            Assignee: Alex Parvulescu
>
> There's no support for indexing aggregates in Oak [0]
> I'd like to start slowly rolling some basic support in, so that at least 
> assumptions like fulltext search on files work properly.
> [0] http://wiki.apache.org/jackrabbit/IndexingConfiguration

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to