[ 
https://issues.apache.org/jira/browse/OAK-3149?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tommaso Teofili updated OAK-3149:
---------------------------------
    Attachment: OAK-3149.patch

attached patch that implements the proposed approach.

Current behaviour in suggestions is kept (whole indexed values are returned as 
against single terms, see OAK-3404) via {{AnalyzingInfixSuggester}} 
implementation that writes its own index into an {{OakDirectory}} sitting under 
_/path/to/indexNode/:suggest-data_. Each {{IndexNode}} has its own instance of 
the suggester, created from its own suggest {{OakDirectory}}.
Previously stored values for _:suggest_ field are not stored anymore as indexed 
values are enough now (saving some space).

Additionally we get infix suggestions working, e.g.: having an indexed value of 
_"in 2015 my fox is red, like mike's fox and john's fox"_ for a certain 
property, that's suggested if one requires suggestions for text "like mike".

> SuggestHelper should manage a suggestor per index definition
> ------------------------------------------------------------
>
>                 Key: OAK-3149
>                 URL: https://issues.apache.org/jira/browse/OAK-3149
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: lucene
>            Reporter: Chetan Mehrotra
>            Assignee: Tommaso Teofili
>             Fix For: 1.3.12
>
>         Attachments: OAK-3149.patch
>
>
> {{SuggestHelper}} currently keeps a static reference to suggestor and thus 
> have a singleton suggestor for whole repo. Instead it should be implemented 
> in such a way that a suggestor instance is associated with index definition. 
> Logically the suggestor instance should be part of IndexNode similar to how 
> {{IndexSearcher}} instances are managed



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to