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 "Amit Jain (JIRA)" <ji...@apache.org> on 2014/09/30 09:42:49 UTC

[jira] [Updated] (OAK-1718) Avoid expanding empty property restrictions if not needed

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

Amit Jain updated OAK-1718:
---------------------------
    Fix Version/s:     (was: 1.1)
                   1.1.0

> Avoid expanding empty property restrictions if not needed
> ---------------------------------------------------------
>
>                 Key: OAK-1718
>                 URL: https://issues.apache.org/jira/browse/OAK-1718
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: oak-solr
>    Affects Versions: 0.20
>            Reporter: Tommaso Teofili
>            Assignee: Tommaso Teofili
>             Fix For: 1.1.0
>
>
> Empty property restrictions end up being expanded as a wildcard query on a a field with the property name (e.g. text:*) but that is not good when there're already full text queries running on that property (text:(a b)) as the resulting query, in AND, has a useless and costly clause that could be avoided.
> To get rid of that the trivial fix is to expand full text expressions first and check if a query on that property already exists before creating the wildcard query.



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