You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Robert Muir (Created) (JIRA)" <ji...@apache.org> on 2011/11/25 19:07:39 UTC

[jira] [Created] (SOLR-2919) Localized RangeQuery support

Localized RangeQuery support
----------------------------

                 Key: SOLR-2919
                 URL: https://issues.apache.org/jira/browse/SOLR-2919
             Project: Solr
          Issue Type: New Feature
    Affects Versions: 3.6
            Reporter: Robert Muir


Since SOLR-2438, we can support localized rangequeries if someone has (ICU)CollationKeyFilter in the chain.

I think it might be best to add these automagically, because if you use these filters then not analyzing
with them just means stuff doesn't work at all, since the terms are represented as collation keys.

In trunk this already works, because (ICU)CollationField takes care of it.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Resolved] (SOLR-2919) Localized RangeQuery support

Posted by "Robert Muir (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-2919?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Muir resolved SOLR-2919.
-------------------------------

       Resolution: Fixed
    Fix Version/s: 4.0
                   3.6
    
> Localized RangeQuery support
> ----------------------------
>
>                 Key: SOLR-2919
>                 URL: https://issues.apache.org/jira/browse/SOLR-2919
>             Project: Solr
>          Issue Type: New Feature
>    Affects Versions: 3.6, 4.0
>            Reporter: Robert Muir
>             Fix For: 3.6, 4.0
>
>         Attachments: SOLR-2919.patch
>
>
> Since SOLR-2438, we can support localized rangequeries if someone has (ICU)CollationKeyFilter in the chain.
> I think it might be best to add these automagically, because if you use these filters then not analyzing
> with them just means stuff doesn't work at all, since the terms are represented as collation keys.
> In trunk this already works, because (ICU)CollationField takes care of it.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Updated] (SOLR-2919) Localized RangeQuery support

Posted by "Robert Muir (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-2919?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Muir updated SOLR-2919:
------------------------------

    Affects Version/s: 4.0

Setting 4.0 only because the filters are still supported (deprecated) for index backwards
compatibility and so we should just add the support there for now too in case you are
using the deprecated filters.
                
> Localized RangeQuery support
> ----------------------------
>
>                 Key: SOLR-2919
>                 URL: https://issues.apache.org/jira/browse/SOLR-2919
>             Project: Solr
>          Issue Type: New Feature
>    Affects Versions: 3.6, 4.0
>            Reporter: Robert Muir
>
> Since SOLR-2438, we can support localized rangequeries if someone has (ICU)CollationKeyFilter in the chain.
> I think it might be best to add these automagically, because if you use these filters then not analyzing
> with them just means stuff doesn't work at all, since the terms are represented as collation keys.
> In trunk this already works, because (ICU)CollationField takes care of it.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Updated] (SOLR-2919) Localized RangeQuery support

Posted by "Robert Muir (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-2919?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Muir updated SOLR-2919:
------------------------------

    Attachment: SOLR-2919.patch

Here's a patch turning this on.

I also exposed additional expert sort options for ICUCollationKeyFactory/ICUCollationField and added tests:
 * alternate: 'shifted' or 'non-ignorable'. Can be used to ignore punctuation/whitespace.
 * caseLevel: 'true' or 'false'. Useful with strength=primary to ignore accents but not case.
 * caseFirst: 'lower' or 'upper'. Useful to control which is sorted first when case is not ignored.
 * numeric: 'true' or 'false'. Digits are sorted according to numeric value, e.g. foobar-9 sorts before foobar-10
 * variableTop: single character or contraction. Controls what is variable for 'alternate'

                
> Localized RangeQuery support
> ----------------------------
>
>                 Key: SOLR-2919
>                 URL: https://issues.apache.org/jira/browse/SOLR-2919
>             Project: Solr
>          Issue Type: New Feature
>    Affects Versions: 3.6, 4.0
>            Reporter: Robert Muir
>         Attachments: SOLR-2919.patch
>
>
> Since SOLR-2438, we can support localized rangequeries if someone has (ICU)CollationKeyFilter in the chain.
> I think it might be best to add these automagically, because if you use these filters then not analyzing
> with them just means stuff doesn't work at all, since the terms are represented as collation keys.
> In trunk this already works, because (ICU)CollationField takes care of it.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org