You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Thomas Mueller (Jira)" <ji...@apache.org> on 2022/01/03 16:47:00 UTC

[jira] [Commented] (OAK-8971) Indexing: dynamic boost, as an alternative to IndexFieldProvider

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

Thomas Mueller commented on OAK-8971:
-------------------------------------

> if there is a property that is delimited with %%, we will save that as a separate lucene property

[~royteeuwen] do you have an escape character? What if the text to index contains "%%"?

> we will save that as a separate lucene property.

What property name do you use?

> give every node that has "%%company%%" in it

OK. You could also do a fulltext search on "company", and then use "like" to further reduce the result, as in:

{noformat}
where contains([abc], 'company') 
and [abc] like '\%\%company\%\%'
{noformat}

(I added "\" as that's the escape character for "like" conditions).

It would be the same behavior, right?

Please note we have a "value regex" feature (valueRegex), in https://issues.apache.org/jira/browse/OAK-8934 - this might be used for this case, to shrink the index.

> the default lucene index is even deprecated nowadays to use

Indexes of type "lucene" are not deprecated, no.

> Indexing: dynamic boost, as an alternative to IndexFieldProvider
> ----------------------------------------------------------------
>
>                 Key: OAK-8971
>                 URL: https://issues.apache.org/jira/browse/OAK-8971
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: indexing
>            Reporter: Thomas Mueller
>            Assignee: Thomas Mueller
>            Priority: Major
>             Fix For: 1.30.0
>
>         Attachments: OAK-8971.patch
>
>
> The org.apache.jackrabbit.oak.plugins.index.lucene.spi.IndexFieldProvider is a callback that allows to change the behavior of indexing. There are multiple problems:
> * (1) Not available using oak-run
> * (2) Only available for Lucene indexes
> Instead of a callback, a configuration option in the index property should be added, such that the most commonly used features are available in oak-run, and can be implemented in other indexes (e.g. Elastisearch, Solr).



--
This message was sent by Atlassian Jira
(v8.20.1#820001)